# MartinLoop — long-form retrieval index (llms-full.txt) # Companion to /llms.txt. Denser, retrieval-first vocabulary and route map # for LLM crawlers and agent tools. Apache-2.0 open source. ## One-sentence definition MartinLoop is the system around the coding agents you already use, so you can give them more real work without babysitting every step — focused jobs, spend and iteration limits, checks before completion, recovery evidence, JSONL run records, and a 13-class failure taxonomy for every run of Claude Code, OpenAI Codex, Gemini CLI and MCP hosts such as Cursor. ## Canonical terminology - coding agent reliability - coding agent guardrails - agent run verification - AI code review bottleneck - vibe coding to production - return on token spend (RoTS) - failure taxonomy - recovery evidence - verification (evidence-gated completions) - software receipts (JSONL run records) - 13-class failure taxonomy - MartinLoop Atlas - SANSA trace intelligence - governed learning ## Not this - Not another coding agent. - Not another IDE. - Receipt integrity is locally HMAC-signed and verifiable where integrity material is available; this is not SLSA, a universal correctness guarantee, a security certification, or an automatic safe-to-merge decision. ## Supported agents - Claude Code (Anthropic) — /claude-code-governance - OpenAI Codex — /codex-governance - Gemini CLI (Google) — /gemini-cli-governance MartinLoop is independent and not affiliated with Anthropic, OpenAI, or Google. Product names are trademarks of their owners. ## Install & first governed run ``` npx -y martin-loop@latest start # Alternative: install globally npm install -g martin-loop@latest martin doctor --engine claude --cwd . martin estimate "fix the failing test" --engine claude --cwd . --budget-usd 3 --max-iterations 2 --verify "npm test" martin session-start --host claude --cwd . martin preflight "fix the failing test" --engine claude --cwd . --budget-usd 3 --max-iterations 2 --verify "npm test" martin run "fix the failing test" --engine claude --cwd . --budget-usd 3 --max-iterations 2 --verify "npm test" martin dossier --latest martin runs verify --latest ``` ## Concepts (retrieval anchors) - Software receipt — https://martinloop.com/receipts - Verification — https://martinloop.com/verification - Failure atlas (13-class) — https://martinloop.com/failure-taxonomy - Benchmarks & RoTS — https://martinloop.com/benchmarks - Stop reasons — https://martinloop.com/stop-reasons - Atlas — https://martinloop.com/atlas - Agent Reliability Atlas — https://martinloop.com/atlas/reliability - Agent Overspend Index — https://martinloop.com/atlas/overspend-index - Atlas methodology — https://martinloop.com/atlas/methodology ## Install & integration pages - Install — https://martinloop.com/install - For agents (machine integration) — https://martinloop.com/for-agents ## Category landing pages (retrieval anchors) - AI agent control plane — https://martinloop.com/ai-agent-control-plane - Model-agnostic coding agents — https://martinloop.com/model-agnostic-coding-agents - Runtime governance for AI agents — https://martinloop.com/runtime-governance-for-ai-agents - Budget enforcement for coding agents — https://martinloop.com/budget-enforcement-for-coding-agents - Agent swarm management — https://martinloop.com/agent-swarm-management ## Stop reason taxonomy (shipped) Every governed run closes with exactly one of: - success — the --verify command passed - budget — the --budget USD ceiling was reached - policy — a stop rule fired (no-progress, scope-creep, safety leash) - error — an unrecoverable error inside the loop Attached failure class (when relevant) is from the 13-class atlas above. ## 13-class failure taxonomy (verbatim from @martin/contracts) 1. logic_error 2. hallucination 3. syntax_error 4. type_error 5. test_regression 6. scope_creep 7. no_progress 8. repo_grounding_failure 9. verification_failure 10. environment_mismatch 11. budget_pressure 12. safety_leash_blocked 13. sandbox_write_blocked ## Headline benchmark Flaky-CI-gate task, same model, same repo state: - $2.30 governed (MartinLoop) - $5.20 ungoverned (no budget, no verifier) Reproduce: `pnpm --filter @martin/benchmarks eval` ## Atlas, SANSA, and governed learning - Paid Atlas is the tenant-scoped black box recorder for governed coding-agent runs. - SANSA trace intelligence projects evidence-backed failure class, divergence, recurrence, cost, and recovery context from Engine-owned trace contracts. - Governed learning surfaces evaluated learning receipts and improvement evidence. Production behavior changes remain bounded by approval, certification, and rollback controls. - Public Atlas never queries tenant-private trace_intelligence. Public reliability and overspend views use only explicitly public-safe observations and withhold weak sample sizes. ## Telemetry (agent → dashboard) POST https://.functions.supabase.co/functions/v1/telemetry-ingest Headers: Authorization: Bearer , Content-Type: application/json Body: telemetry envelope v1 — schema at /telemetry-envelope.v1.json Required scope on the token for telemetry: telemetry:write (or runs:write). Hosted signed-run sync also requires receipt_keys:write so the CLI can register the run's local receipt key before upload. runs:read enables hosted readback. Returns: { ok: true, runId } on success. ## License Apache License 2.0. Repo: https://github.com/Keesan12/martin-loop ## Current release truth - Root package: martin-loop@0.6.9 - MCP package: @martinloop/mcp@0.6.9 - Live release coordinates: https://martinloop.com/release-truth.json - Structured product truth: https://martinloop.com/ai-data.json ## Scoped machine indexes - Coding-agent integrations: https://martinloop.com/agents/llms.txt - Verification, receipts, failures, and benchmarks: https://martinloop.com/proof/llms.txt ## Contact keesan@martinloop.com ## Agent harness and non-engineer guides - What is an agent harness? https://martinloop.com/agent-harness — An agent harness is the software around an AI agent that bounds the job, enforces spend and iteration limits, runs external verification and records each run. MartinLoop is an open-source (Apache 2.0) harness for coding agents (Claude Code, Codex, Gemini CLI; Cursor via MCP). Loops and graphs need the same controls. - Coding agents for non-engineers: https://martinloop.com/coding-agents-for-non-engineers — One clear task, a spending limit, and a check that proves the result works. Outcomes: VERIFIED, STOPPED, NEEDS REVIEW.