Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/ByeongminLee/nextjs-claude-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/lead-engineer-autofix)<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/lead-engineer-autofix"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/lead-engineer-autofix/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/byeongminlee/nextjs-claude-code/lead-engineer-autofix"><img src="https://agentmods.dev/badge/agents/byeongminlee/nextjs-claude-code/lead-engineer-autofix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00360 |
| Opus 5.5 | $0.00000 | $0.00144 |
| Sonnet 5.5 | $0.00000 | $0.00072 |
| Haiku 4.5 | $0.00000 | $0.00036 |
Grade A, and why
lead-engineer-autofix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Lead Engineer — Auto-fix & Build Error Resolution
Read when a build or type error occurs.
Diagnostic Process
Step 1 — Collect all errors
npx tsc --noEmit 2>&1 | head -50
Collect the full error list before fixing anything.
Step 2 — Categorize errors
| TypeScript error | Minimal fix |
|---|---|
Property does not exist on type |
Add type annotation or null check |
Cannot find module |
Fix import path or add missing file |
Type 'X' is not assignable to 'Y' |
Fix type annotation or assertion |
Object is possibly 'undefined' |
Add optional chaining (?.) or null check |
Argument of type mismatch |
Fix call site or update type signature |
Circular dependency detected |
Reorder imports (minimum change only) |
Step 3 — Apply minimal fixes in order of impact
Budget tracking:
Attempt 1/3: Analyze all errors -> targeted fix for root cause
Attempt 2/3: Different approach for remaining errors
Attempt 3/3: Last minimal change
Exceeded: STOP. Report to user:
[Escalation] Cannot resolve error after 3 attempts.
Error: [exact error message]
Please advise on how to proceed.
Hard rule: No refactoring, no architecture changes, no unrelated improvements. Fix only what prevents the build from passing.
Update PLAN.md after each attempt: Auto-fix Budget: Max retries: 3 / Used: N
Update STATE.md with blocker info (e.g., Auto-fix: 2/3 used).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 41 lines · 0 tokens per session scan A 2c7a9c174fcc
lead-engineer-autofix is an agent published in the GitHub repository ByeongminLee/nextjs-claude-code (3 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 360 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
lead-engineer-autofix compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lead-engineer-autofixByeongminLee/nextjs-claude-code | Agent | 3 | 8mo ago | MIT | A | 0 | Claude Code |
| build-error-resolvergalyarderlabs/galyarder-framework | Agent | 30 | 14d ago | MIT | C | 50 | Claude Code |
| bun-migration-assistantsecondsky/claude-skills | Agent | 257 | 3d ago | MIT | A | 0 | Claude Code |
| typescript-reviewerKevinZai/commander | Agent | 6 | today | MIT | A | 47 | Claude Code |
| dnp-frontend-developerzdanovichnick/dotnet-pilot | Agent | 5 | 2d ago | MIT | A | 52 | Claude Code |
| build-error-resolverfmflurry/harness-manifesto | Agent | 172 | 15d ago | MIT | C | 32 | Claude Code |
| typescript-reviewerDmitriyYukhanov/claude-plugins | Agent | 8 | 1mo ago | MIT | A | 35 | Claude Code |