By lokafinnsw
Better Goal — long-horizon autonomous mode for Claude Code: hierarchical plan-tree (Sprint→Epic→Task) with acceptance criteria, review-gates, and a triple budget. Codex /goal analog.
Abandon the active goal (lifecycle → unmet with reason)
Claim achievement on the cursor task (v3 explicit CLI)
Validate the draft plan and mark it approved (lifecycle: draft → approved)
Manually issue GO for the current review-pending task
Emit cursor task as text suitable for piping into Claude Code's built-in /goal (v3 bridge)
Use when you need exact regex/format details for goal-mode tag emission (parse-tags.mjs semantics, code-fence stripping, attribute quoting, escape-hatch regex, edge cases). Use BEFORE emitting a complex/long verdict or evidence block to verify the tag is parseable.
Use when an active goal-mode plan-tree is driving the conversation (Stop hook fires continuation prompts, lifecycle is pursuing/paused/awaiting-manual-approval/blocked) OR before /goal-plan, /goal-start, /goal-approve, /goal-resume, /goal-abandon, /goal-clear — covers tag emission discipline, escape-hatch protocol, lifecycle states, anti-patterns, multi-session cross-project isolation, and recovery paths.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A /goal command for Claude Code — better.
Long-horizon autonomous mode driven by a hierarchical plan-tree, evidence-mapped acceptance criteria, declarative review-gates, and a triple budget.
Repo identifier: claude-code-goal-mode · Plugin namespace: goal-mode · Slash prefix: /goal-mode:*
v3.0 is a workflow addition, not a rewrite. Every v2.x state file loads unchanged. The plan-tree schema, event log, reviewer-independence guard, triple budget, and lock protocol are preserved. v3 primarily adds explicit CLI verbs as an opt-in alternative to tag-emission, alongside the auto-drive Stop-hook.
What changed:
| Before (v2) | After (v3.0.4) |
|---|---|
Stop-hook injects continuation prompt every turn on lifecycle=pursuing | Stop-hook still auto-drives by default (v3.0.4 restored this). Hint-only mode is opt-in via stopHookDriver: false config. |
Agent emits XML tags in reply (<evidence>, <task-status>, ...) | Agent can emit tags OR call explicit slash commands (both work) |
| Cursor advances via tag parsing in Stop-hook | Cursor advances via tag parsing OR CLI verb (achieve, submit-verdict) |
| Driver and agent loop tightly coupled | Same loop by default; triple budget (iter/tokens/wallclock) plus stale-review detector prevent runaway spam |
v3.0.4 default: auto-drive (stopHookDriver: true). Install, plan, walk away, come back to a finished feature — the original product value. Opt out into hint-only mode (no auto-drive; you call CLI verbs yourself) via .claude/goals/active/config.json (per-project) or ~/.claude/plugins/goal-mode/config.json (per-user):
{ "schema_version": 1, "stopHookDriver": false }
| Command | Purpose |
|---|---|
/goal-mode:goal-current | Read-only cursor inspector |
/goal-mode:goal-evidence-add | Write evidence to cursor task |
/goal-mode:goal-achieve | Claim task achievement |
/goal-mode:goal-review-request | Print reviewer dispatch template |
/goal-mode:goal-submit-verdict | Record reviewer verdict (with independence enforcement) |
/goal-mode:goal-as-builtin | Emit text for piping into Claude Code's built-in /goal |
Migration is automatic: existing v2 goals continue to work; the new default takes effect after bash install.sh + restart Claude Desktop. See docs/MIGRATION-v2-to-v3.md for full migration guide.
OpenAI shipped Codex /goal in CLI 0.128.0 — set a verifiable objective and the agent works for hours toward it, plan→act→test→review→iterate, until an audit confirms the goal is met or a token budget is exhausted. goal-mode brings the same UX to Claude Code, with a richer model: the goal is a tree of tasks, every task has explicit acceptance criteria, and visual or quality-critical tasks gate on independent review verdicts before the cursor advances.
# After installing:
/goal-plan "Migrate auth from sessions to JWT, with tests and zero downtime"
/goal-approve-plan
/goal-start --max-iter 200 --token-budget 5000000 --time-budget 8h
# Walk away. Come back to a finished feature, not a half-baked guess.
Coding agents stop after one turn. For multi-hour work — migrations, refactors, feature builds — that means constant baby-sitting: re-prompt, re-orient, re-verify after every iteration. /goal removes the user from the loop without removing the safety rails.
Anthropic ships Ralph Loop — the closest existing analog in Claude Code. Ralph solves the continuation primitive: a Stop hook intercepts session exit and re-feeds the prompt until a <promise>X</promise> tag is emitted. goal-mode borrows that primitive and layers a real plan-execution model on top.
npx claudepluginhub lokafinnsw/claude-code-goal-mode --plugin goal-modeMulti-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Write feature specs, plan roadmaps, and synthesize user research faster. Keep stakeholders updated and stay ahead of the competitive landscape.