Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyAI, memory and agents

Martin Loop

Lets your AI agent run coding jobs with limits, checks and a clear outcome, so you can watch them less.

313 stars on GitHubby Martin LoopLicense Apache-2.0Updated 19 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add martin-loop -- npx -y @martinloop/mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Run this task with npm test as the verifier and a 2 dollar budget.
Show me how much my Claude Code retries cost.

What it is

MartinLoop wraps a coding agent's job with a budget, an iteration limit, a verifier command, recovery information and a final result. The coding agent still writes the code. MartinLoop decides whether the run is VERIFIED, STOPPED or NEEDS REVIEW.

What it can do

  • martin run: run a governed job with an objective, verifier, budget and iteration cap
  • martin audit: measure spend on fix-and-retry loops from Claude Code history
  • martin dossier: inspect the latest run result
  • martin runs verify: validate stored run integrity
  • martin doctor and martin preflight: check readiness before spending
  • Swarm mode demo with many agents

When to use

  • β€ΊWhen you want to give an agent a bigger job without watching every step
  • β€ΊWhen you want a hard spend limit and a stop condition for an agent
  • β€ΊWhen you want proof that checks passed before you accept the work

What you need

Node.js (it runs with npx) and a supported coding agent runtime such as Claude, Codex or Gemini. No other account is described for local use.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free?

The readme shows a license badge and npm install commands. It lists no price.

Does it write the code?

No. Your coding agent writes the code; MartinLoop sets limits, verifies and records the outcome.

Does VERIFIED mean the code has no bugs?

No. The readme says it proves only the checks you configured.

Does the audit send my data out?

The readme says session contents stay local. Use --offline to disable even the public pricing lookup.

How do I start?

Run npx -y martin-loop@latest start, or install globally with npm install -g martin-loop.

Which model does it use?

If you pass --model it passes it through. Otherwise the host runtime chooses its default.

If it does not work

  • β€ΊIf several agent runtimes are detected, pick one with martin-loop enable --engine codex (or claude, gemini).
  • β€ΊRun martin-loop doctor and preflight before a governed run.
  • β€ΊCheck the MCP setup guide, or run martin mcp print-config to generate host config.

5 new skills a week. 1 minute to read.