repo-surgeon
An agentic engineer that onboards to an unfamiliar repository, writes a plan, executes atomic changes under human approval, and reports its own success rate.
repo-surgeon is a LangGraph-based agent that treats codebase changes as a plan-on-disk workflow: it inspects a repo, writes .agent/plan.md, executes one atomic change at a time, runs verification after each step, self-heals on failure, and hard-stops after N retries. A human approval gate sits before any write. A benchmark harness runs the agent against real open-source repositories with known issues and reports success rate, step count, and time-to-completion.
Methodology
- Plan-on-disk architecture: .agent/plan.md and .agent/report.md survive crashes and make every run inspectable.
- Atomic execution: one change per step, with tests, lint, and typecheck run after each step.
- Self-healing loop: failure triggers a bounded recovery attempt before escalating.
- Human approval gate before any write to the repository.
- Provider-agnostic via LiteLLM.
- Benchmark harness: run against 5–10 real open-source repos with known issues and report measured success rate.
Benchmarks
Benchmark table
Results will be published here once the harness is complete and has run against the target corpus.
Planned columns: Repository · Issue · Status · Steps · Time