/goal for Claude Code: persistent tasks with adversarial review

The /goal command for Claude Code lets you set a persistent long task that keeps Claude working across many turns without stopping, and then double-checks the work at the end. By default, a second, independent Claude session reviews the result — so Claude can't just claim it's done.
Use Cases
- Building something from a spec: paste the requirements, walk away, come back when every item is actually implemented.
- "Keep going until the tests pass": Claude can't cheat by deleting failing tests, because the reviewer compares the repo against the original goal.
- Long research or prototype sessions: one goal keeps Claude going for hours instead of stopping after each turn.
Configuration
You can set an optional soft token budget, e.g. --tokens 250K, to tell Claude to wrap up when that budget is spent.
Audit strictness is configurable:
- adversarial (default) — a separate Claude session reviews the work
- self — Claude reviews itself (faster and free)
- off — no review
Switch with: /goal config set audit.mode <value>
Installation
From the plugin marketplace:
./plugin marketplace add balakumardev/claude /plugin install claude-code-goal
📖 Read the full source: r/ClaudeAI
👀 See Also

Tatu: Open-source security layer for Claude Code blocks secrets and destructive commands
Tatu is an open-source hook system that intercepts Claude Code actions in real time to block leaked secrets, flag PII, and deny destructive commands before execution. Installation is via pip/pipx with 'tatu-hook init' to enable audit mode.

Ctxpact: Context Compaction Proxy for Local LLMs
Ctxpact is an OpenAI-compatible proxy that compresses oversized inputs for local LLMs with 16k context windows, using a 3-stage pipeline that includes DCP, summarization, and extraction strategies. Benchmarks show 110k tokens compressed to 12k with 8/8 reading comprehension accuracy.

Savecraft MCP Server Provides Claude with Accurate Magic: The Gathering Data
Savecraft is an open-source MCP server that parses MTG Arena Player.log locally, syncs game state, and gives Claude access to 12 expert reference modules built on real Magic: The Gathering data. The tool prevents Claude from hallucinating card names and rules by providing access to actual Arena data, draft recommendations from 17Lands, and the complete Scryfall database.

Lore: MCP Server That Shares AI Agent Session History Across Tools
Lore is an MCP server that indexes AI agent sessions into a local SQLite store, letting any agent—regardless of tool—access another's session history. Fresh client sessions, no shared context, yet agents can pull up past conversations on demand.