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 ncoevoetv0.2.0MITIn 1 marketplace
Hard-verifier + escalation layer for Claude Code /goal: a deterministic, project-agnostic oracle (lint/test/arch/build + review-all gate) enforced by a Stop hook, with stuck-detection and human escalation.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A hard-verifier + escalation layer for Claude Code's built-in /goal.
/goal keeps Claude working toward a natural-language condition and judges "done" each turn with a small evaluator — but that evaluator only reads the conversation, it never runs your tests. So a goal can be declared done because the transcript says "tests pass". goal-loop closes that gap: it drives an objective to completion under a deterministic oracle (lint / test / typecheck / build + an optional /review-all semantic gate), enforced by a Stop hook that blocks the session from ending until the oracle is fresh and green — with stuck-detection, a hard budget, and human escalation.
Claude already shipped the loop. The missing product is the hard verifier. This is that layer.
/goal/goal (reused) | goal-loop (this) |
|---|---|
| keep-working loop, evaluator, state, resume | a real oracle that runs commands and trusts exit codes |
| — | enforcement: a Stop hook blocks "done" until the oracle passes |
| — (loops forever if unsatisfiable) | stuck-detector: same failure ×N → stop + escalate |
| — | budget: hard maxIterations ceiling + a per-run turn / output-token ceiling |
| — | escalation: six blocker conditions → BLOCKER.md + a focused question |
| — | usage-aware halt: stops at the 5h/weekly quota floor and resumes in-session when it frees |
| — | an optional semantic gate via /review-all gate |
The oracle is project-agnostic: gate commands are discovered per repo (detect-toolchain.sh) and overridable in .claude/loop.json.
/plugin marketplace add ncoevoet/claude-loop
/plugin install goal-loop@ncoevoet-loop
The skill and the Stop hook (hooks/hooks.json) register automatically.
make install)git clone https://github.com/ncoevoet/claude-loop.git
cd claude-loop
make install # rsync skills/goal-loop → ~/.claude/skills/ + register the Stop hook
make uninstall removes both. Honors $CLAUDE_CONFIG_DIR. The optional reviewall stage needs the review-all plugin (≥ 0.4.0, for its headless gate mode).
/goal-loop "make guest + logged-in checkout pass their integration tests"
/goal-loop init # configure the oracle for this repo (.claude/loop.json)
/goal-loop status # where is the loop now?
/goal-loop abort # release the loop (kill switch)
/goal-loop "<objective>":
.claude/loop/GOAL.md),/goal one-liner to add Claude's native evaluator + cross-turn persistence,scripts/verify.sh; the Stop hook refuses to let the session stop until the verdict is fresh + pass:true, the loop is stuck, or budget is spent./goal-loop "<objective>" → GOAL.md + STATE.json (armed) + .claude/loop.json
│
▼ each turn
agent works → runs scripts/verify.sh (+ /review-all gate if mandatory)
│
turn ends → Stop hook (goal-loop-gate.sh):
not armed / aborted / complete ............ allow stop (exit 0)
verdict missing or stale (sha ≠ worktree) .. BLOCK (exit 2): "run verify.sh"
verdict fresh, pass:true ................... allow stop → status=complete
verdict fresh, pass:false ................. BLOCK (exit 2): inject failing gate
usage ≥ floor (5h / weekly) ............... HALT → in-session watch resumes on reset
same failure ×N ........................... allow stop → status=blocked + BLOCKER.md
iteration ≥ cap ........................... allow stop → status=budget_exhausted
turns / output tokens ≥ cap ............... allow stop → budget_exhausted + escalate
The hook is fast (reads a file + a git sha — never runs the oracle, which could take minutes and exceed a hook timeout) and fail-open (any error → allow stop, so a harness bug can never wedge a session). The oracle's reviewedSha is a work-sha over HEAD + tracked diff + untracked files (excluding run-state), so it tracks uncommitted changes correctly across a loop that makes no commits.
scripts/verify.sh runs gates fast→slow, short-circuits, and writes .claude/loop/verdict.json. Stages: lint · test · typecheck · architecture · build · reviewall. Commands come from .claude/loop.json (oracle.*) or toolchain discovery. reviewall reads the verdict written by the agent's /review-all gate run (a shell script can't invoke a skill). See skills/goal-loop/references/oracle.md.
npx claudepluginhub ncoevoet/claude-loop --plugin goal-loopBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground