Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Andersonlimahwv1.0.0MITIn 1 marketplace
Turns each failing build, test or typecheck into a fix plus a persistent project rule saved in docs/rules or AGENTS.md. A PostToolUse hook injects the loop automatically when a Bash build or test error matches, and it also covers Codex and OpenCode.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Recursive error-fix loop. Every fixed error must reduce the chance of the same error returning.
docs/rules/, AGENTS.md, or this SKILL.md — depending on scope..error-fixer-loop/<timestamp>-<slug>.md following the senior-prompt-engineer format (Role/Context, Task, Inputs, Constraints, Plan with → verify:, Output contract, Feedback DO/DON'T, EXEC-MAP v1). This makes the fix replayable and delegable across sessions and harnesses.| Path | Purpose |
|---|---|
SKILL.md | The recursive loop protocol (load on demand). |
agents/error-fixer-loop-runner.md | Focused subagent that executes the protocol for one captured failure. |
hooks/error-fixer-loop-hook.sh | Claude Code PostToolUse hook for Bash (plain-text output — Claude Code only). |
hooks/error-fixer-loop-codex.py | Codex CLI PostToolUse hook for Bash (JSON hookSpecificOutput output — Codex only). |
hooks/error-fixer-loop.ts | OpenCode plugin on tool.execute.after. |
scripts/install.sh | Idempotent installer for both harnesses. |
scripts/detect-error.sh | Standalone detector for CI / pre-push. |
templates/rule-entry.md | Boilerplate for new docs/rules/<topic>.md. |
templates/audit.md | Final audit report template. |
templates/fix-prompt.md | Fix-prompt template (senior-prompt-engineer format). |
evals.json | Eval cases defending the loop's invariants. |
Each loop execution produces:
| Artifact | Location | Purpose |
|---|---|---|
| Rule | docs/rules/<topic>.md or AGENTS.md | Persistent memory for the project |
| Fix-prompt | .error-fixer-loop/<YYYYMMDD-HHMMSS>-<slug>.md | Replayable/delegable prompt (senior-prompt-engineer format) |
| Audit | inline report + optional docs/audits/ | Evidence trail |
Add .error-fixer-loop/ to .gitignore if you don't want the artifacts versioned (recommended for local-only memory), or commit them to share learnings across the team.
# Both Claude Code and OpenCode
./scripts/install.sh
# Or pick one
./scripts/install.sh claude
./scripts/install.sh opencode
Do NOT register hooks/error-fixer-loop-hook.sh in ~/.codex/hooks.json:
it prints plain text, and Codex rejects that with
hook returned invalid post-tool-use JSON output on every Bash call.
Register hooks/error-fixer-loop-codex.py instead — it prints nothing when
clean and valid hookSpecificOutput JSON when an error is detected:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "/usr/bin/python3 ~/.codex/hooks/error-fixer-loop-codex.py" }
]
}
]
}
}
User: tests are failing with `Cannot find module '@/lib/auth'`
Agent (via hook reminder): runs error-fixer-loop →
captures → root-cause → fixes → tests → writes rule in docs/rules/typescript.md
→ writes .error-fixer-loop/20260720-143022-module-not-found.md
→ audits
senior-prompt-engineer skill (stage-0 refiner)error-fix-loop (superseded — this plugin replaces it)7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub andersonlimahw/lemon-ai-hub --plugin error-fixer-loopPlugins from other owners that cover similar ground