Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

mirrord

$ mirrord Official Med Risk
MetalBear · Cloud & Infra · MIT · macos / linux / windows

mirrord injects a dynamic preload layer (LD_PRELOAD / DYLD_INSERT_LIBRARIES) into a local process so it inherits a remote Kubernetes pod's env vars, filesystem, and network traffic without building container images.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install mirrord
CLI vs MCP Decision CLI Only

mirrord wraps local binaries at the libc/syscall layer to mirror cluster traffic and env vars, which an MCP server cannot replicate.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Works non-interactively when --target and -f mirrord.json are passed, but mirrord ls lacks --json output and missing target flags trigger interactive prompts.

  • Supports -f <config> JSON/YAML configuration
  • mirrord ls lacks --json output flag
Trust & Safety 17 / 25

Supports mirror-only traffic and read-only FS modes in mirrord.json, though it launches privileged agent pods on the cluster and can steal traffic or write remote files if misconfigured.

  • Configurable read-only FS and mirror network modes
  • Deploys remote agent pods and can intercept/steal pod traffic
Setup & Portability 14 / 15

Native binaries on macOS, Linux, and Windows via Homebrew or install scripts, though macOS SIP restrictions can affect Apple-signed binaries.

  • macOS, Linux, and native Windows support
Utility & Efficiency 11 / 15

Eliminates slow Docker build-push-deploy cycles when running local tests against cluster dependencies.

  • Zero-container-build local execution in pod context
Maintenance & Lineage 7 / 10

Official MetalBear (metalbear-co/mirrord) OSS CLI under MIT license with active commercial backing.

  • Official metalbear-co/mirrord repository (MIT)
Docs & Verifiability 7 / 10

Good docs at mirrord.dev covering config schema, though dynamic library injection edge cases require reading troubleshooting guides.

  • Config reference at mirrord.dev

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Uses active ~/.kube/config (KUBECONFIG) to launch ephemeral agent pods; optional MetalBear Teams licenses use API keys or license.pem.

Side Effects
Read-Only Remote Write
Cost & Quotas

OSS CLI is MIT-licensed and free; mirrord for Teams operator features require a commercial license.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# mirrord Agent Rules
- Always specify `-t <target>` and `-f <mirrord.json>` explicitly to avoid interactive target prompts.
- Set `fs.mode: read` and `network.incoming.mode: mirror` in `mirrord.json` when testing against shared clusters.
- Never steal live production traffic (`steal` mode) without explicit human confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

List available target pods and deployments
mirrord ls -n staging

Prints targetable Kubernetes workloads in the namespace without launching an agent pod.

Controlled Writes & Previews

Run a local test command with remote pod context
mirrord exec --target deployment/api -f .mirrord/mirrord.json -- pytest tests/integration

Executes the local command using an explicit .mirrord/mirrord.json config (mirror-only / read-only fs) instead of interactive prompts.

Strengths for Agents

  • + Runs local test suites or scripts directly inside a remote pod's network and env context.
  • + Declarative mirrord.json supports strict read-only filesystem and traffic-mirroring safeguards.
  • + Fast Rust-based CLI across macOS, Linux, and Windows.

Caveats & Pitfalls

  • ! mirrord ls has no --json output mode.
  • ! Omitting --target or running without mirrord.json can fall into interactive prompts or overly permissive traffic stealing.
  • ! macOS System Integrity Protection (SIP) blocks preload injection on /usr/bin binaries.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI