mirrord
AGENTS.md5.4k starsChanged 5 months agoMITView on GitHub
mirrord is a tool that lets developers run local processes in the context of their Kubernetes cloud environment. - mirrord-layer: gets loaded into the user's process via LD_PRELOAD/DYLD_INSERT_LIBRARIES. Intercepts libc calls (files, networking, DNS, env, ...) and turns them into protocol messages sent to the intproxy. - mirrord-intproxy: a local process spawned by the CLI that bridges N layers and 1 agent. Matches requests to responses, handles reconnects, and routes messages to the right feature proxy. - mirrord-agent: the in-cluster…
Trending
Quiet since September.about the whole repository
Who's talking about metalbear-co/mirrord
- A Hacker News story“Mirrord – mirror production traffic to your development environment”Hacker News · Jun 5, 2022 · 184 points
- NixOS/nixpkgs“adding mirrord dev tool”GitHub · May 9, 2024 · 9 reactions
- intellij-rust/intellij-rust“runConfigurationExtension doesn't work”GitHub · Jan 23, 2023 · 7 reactions
- NixOS/nixpkgs“Package request: mirrord”GitHub · Apr 19, 2024 · 6 reactions
- A Hacker News story“Show HN: Mirrord – Debug locally using mirrored traffic from Kubernetes”Hacker News · Feb 25, 2022 · 5 points
The biggest 5 of 28 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 28
Talked about on GitHub, Bluesky and Hacker News (28 times).
On GitHub · 19
- May 9, 2024adding mirrord dev tool — NixOS/nixpkgs9 reactions · 3 comments
- Jan 23, 2023runConfigurationExtension doesn't work — intellij-rust/intellij-rust7 reactions · 2 comments
- Apr 19, 2024Package request: mirrord — NixOS/nixpkgs6 reactions · 2 comments
- Jul 12, 2024SQS: add support for passing MessageAttributes — celery/kombu3 reactions · 3 comments
- Aug 18, 2023`/proc/pid/maps` shows host path when using virtiofs — docker/for-mac2 reactions · 4 comments
14 more on GitHub
- Sep 30, 2026Requirements: Document the minimum Kubernetes version — metalbear-co/docs1 reaction · 4 comments
- Sep 14, 2026Fetch schema from mirrord CLI — metalbear-co/mirrord-vscode1 reaction · 2 comments
- Sep 11, 2026up: add mirror service mode — metalbear-co/docs1 reaction · 2 comments
- Sep 2, 2026docs: remove note from issue #4672 — metalbear-co/docs1 reaction · 1 comment
- Aug 10, 2026Fix some missing target docs, and add label target. — metalbear-co/docs1 reaction · 3 comments
- Aug 7, 2026up: add details for setting context via arg or config file — metalbear-co/docs1 reaction · 2 comments
- Apr 7, 2026Document the fact that preview pods will never be `"Ready"` — metalbear-co/docs1 reaction
- Jan 8, 2026Consider adding a client level `RetryLayer` — kube-rs/kube1 reaction · 3 comments
- Dec 2, 2025win-38 <...> IDE windows support 《draft》 — metalbear-co/mirrord-vscode1 reaction
- May 21, 2024doc: Load symbol table and debug information with `go run` — metalbear-co/mirrord.dev1 reaction · 1 comment
- Aug 17, 2023Can't find Go binary symbols when running in Linux using Docker + Virtiofs + macOS host — frida/frida-gum1 reaction · 3 comments
- Feb 28, 2023Research integration tests makeover for Gateway Discovery testing — Kong/kubernetes-ingress-controllersays it tested it1 reaction · 5 comments
- Jun 7, 2022significant-drop-in-scrutinee when false positive — rust-lang/rust-clippy1 reaction · 4 comments
- Sep 30, 2026INT-790 postgres: multi-database branch e2e + cli:build layout fix — metalbear-co/local-sandbox0 reactions · 2 comments
On Bluesky · 6
- Aug 4, 2025metalbear-co / mirrord: Connect your local process and your cloud environment, and run local code in cloud conditions. ★4414… — @rusttrending.bsky.social2 likes and reposts
- Jun 29, 2026metalbear-co / mirrord: Run any process, on your machine or in an AI agent's environment, as if it were a pod in your Kubernetes cluster:… — @rusttrending.bsky.social1 likes and repost
- Jun 4, 2026🚀 GitHub Intelligence Drop start-server-and-test (JavaScript • 🟢) ⭐ 1.6K → https://github.com/bahmutov/start-server-and-test mirrord… — @githubfeed.bsky.social1 likes and repost
- Mar 25, 2026metalbear-co/mirrord: Connect your local process and your cloud environment, and run local code in cloud conditions. #devopsish — @chrisshort.net1 likes and repost
- Sep 19, 2023metalbear-co / mirrord: Connect your local process and your cloud environment, and run local code in cloud conditions. ★2883… — @rusttrending.bsky.social1 likes and repost
1 more on Bluesky
- Jul 13, 2023metalbear-co / mirrord: Connect your local process and your cloud environment, and run local code in cloud conditions. ★2609… — @rusttrending.bsky.social1 likes and repost
On Hacker News · 3
- Jun 5, 2022Mirrord – mirror production traffic to your development environment184 points · 42 comments
- Feb 25, 2022Show HN: Mirrord – Debug locally using mirrored traffic from Kubernetes5 points · 1 comment
- Dec 1, 2022Release 3.12.0 · Mirrord4 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Use --keep-going to surface all errors at once.
- Distinctive: line 74
Avoid extracting trivial, self-contained logic into a function used only once.
- Distinctive: line 81
Don't write comments explaining what code does, the code should speak for itself.
- Distinctive: line 87
Write comments for readers of the resulting code, not reviewers of the patch.
- Very specific: line 95
Keep imports at file top (no function-local use).
- Very specific: line 96
Prefer to_owned for &str → String.
- Very specific: line 97
Always use foo.rs instead of foo/mod.rs for module roots.
- Distinctive: line 98
Run styling commands after every edit.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
mirrord
Overview
mirrord is a tool that lets developers run local processes in the context of their Kubernetes cloud environment.
Core Crates
mirrord-layer: gets loaded into the user's process viaLD_PRELOAD/DYLD_INSERT_LIBRARIES. Intercepts libc calls (files, networking, DNS, env, ...) and turns them into protocol messages sent to the intproxy.mirrord-intproxy: a local process spawned by the CLI that bridges N layers and 1 agent. Matches requests to responses, handles reconnects, and routes messages to the right feature proxy.mirrord-agent: the in-cluster component of mirrord. Runs in the target pods' context and network namespace. Does the actual I/O work requested by the layers.mirrord-protocol: defines the shared messages (ClientMessage,DaemonMessage) sent between layer/intproxy/agent.mirrord-config: config types and validation. Used by the CLI and layer to decide what features are enabled and what target to use.mirrord: the CLI that resolves configuration, creates or connects to the agent, starts the intproxy, and launches the user's local process with the mirrord layer loaded.mirrord-mcp: the MCP server behindmirrord mcp, which exposes mirrord to AI agents over stdio. Tools are registered in itstoolsmodule and must be answered offline, from what is compiled into the binary. Usage is reported throughmirrord-analytics, and every new tool needs a variant in itsMcpTooltelemetry enum.
Command Reference
Compiling
# check the entire workspace at once
# always use when a change spans multiple crates instead of checking each crate individually
CARGO_BUILD_WARNINGS=deny cargo clippy --all-targets --all-features --keep-going
# check a specific crate
# the agent is linux only
CARGO_BUILD_WARNINGS=deny cargo clippy -p mirrord-agent --target x86_64-unknown-linux-gnu --keep-going
# layer and cli bundled with the new layer
# use only when a fresh mirrord + layer binary is needed for testing
cargo xtask build-cliUse --keep-going to surface all errors at once. Use clippy instead of check to lint + compile simultaneously.
Testing
# integration tests
# requires building the cli first with `xtask build-cli`
cargo xtask test-integration
# filtered integration tests
cargo xtask test-integration -- outgoing_udp --nocapture
# unit tests
cargo xtask test-ut
# filtered unit tests
cargo xtask test-ut -- resolve_url_happy_path -- --nocaptureStyling
# Formatting
cargo fmtSimplicity and Reuse
mirrord is actively maintained by dozens of people, it is not a greenfield project. When adding or changing things, maximize simplicity. Reuse existing abstractions and codepaths instead of introducing new ones. Every new path is something someone has to understand, maintain, and keep compatible.
Avoid extracting trivial, self-contained logic into a function used only once. Keep it near its point of use when the helper would merely add indirection or exist to make a tiny test possible. Extract a function when it is reused or hides non-obvious details that would distract from the surrounding flow. Test meaningful behavior rather than trivial wrappers around a library API.
Comments and Documentation
Don't write comments explaining what code does, the code should speak for itself. Instead, focus on why something exists: doc comments that explain the problem a function or struct solves and how it fits into the bigger picture are far more valuable than ones that restate the type signature. Module-level doc comments that give a high-level overview of what a file is responsible for are also very helpful, as they give readers the context to understand the code below. mirrord has a lot of moving pieces and stability is critical, so document tricky or non-obvious behavior clearly.
Write comments for readers of the resulting code, not reviewers of the patch. Comments must stand alone after merge and
describe the current behavior, intent, invariant, or non-obvious tradeoff. Don't narrate the edit or use patch-relative
language such as the existing implementation, the new approach, now, previously, this change, or
we added/removed. Include historical context only when it is necessary to explain why the current code deliberately
differs from an otherwise-obvious alternative.
Style Guideline
- Keep imports at file top (no function-local
use). - Prefer
to_ownedfor&str→String. - Always use
foo.rsinstead offoo/mod.rsfor module roots. - Run styling commands after every edit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

