GoalBuddy
A simple operating loop for long goal runs.
GoalBuddy helps Codex and Claude Code stay oriented during long coding tasks by giving each harness's execution command a finish line, a live work surface, and a proof loop.
It gives a goal run a small local workspace: a charter, a goal oracle, a board, notes, receipts, and a clear next task. The work stays in your repo, so a run can pause, resume, verify, and keep going without re-inventing the plan every turn.
Start Here
Run one command:
npx goalbuddy
Restart Codex or Claude Code.
Then prepare a goal:
$goal-prep
In Claude Code, use:
/goal-prep
Goal Prep creates the board and prints the exact command to run next. That is the whole path.
In Codex, native /goal runs the board. In Claude Code, GoalBuddy installs /goalbuddy so Claude's own /goal command remains untouched.
Cross-Harness Goals
Harnesses churn; repos persist. A GoalBuddy board lives in your repo as plain files, so the goal outlives whichever tool started it: begin a goal in Codex, resume it in Claude Code tomorrow, or the other way around, using the command for that harness.
npx goalbuddy resume
resume lists every live board in the repo with its status, active task, and both continuation commands: Codex /goal Follow docs/goals/<slug>/goal.md. and Claude Code /goalbuddy Follow docs/goals/<slug>/goal.md.. Receipts can record which harness performed each task, so the board's history survives the handoff intact.
Boards can also mix vendors within a single run — a Claude judge and a Codex worker on the same board:
npx goalbuddy dispatch docs/goals/<slug> --to codex
dispatch renders the active task's prompt, runs the target CLI headless (codex or claude-code), extracts the returned receipt, and verifies write scope mechanically with git: worker changes must stay inside the task's allowed_files, and read-only roles must change nothing. The dispatcher never edits the board — the PM records the receipt, stamped with the harness that earned it.
Codex Install Model
For Codex, the canonical install is the native plugin plus bundled agents:
~/.codex/plugins/cache/goalbuddy/goalbuddy/<version>/
~/.codex/agents/goal_judge.toml
~/.codex/agents/goal_scout.toml
~/.codex/agents/goal_worker.toml
The Codex plugin bundles $goal-prep; a clean Codex install should not need personal ~/.codex/skills/goalbuddy or ~/.codex/skills/goal-maker folders. Native Codex /goal is a separate OpenAI-gated feature. GoalBuddy prepares local boards and handoff prompts for it, but it does not enable or replace native /goal.
To verify a Codex install:
npx goalbuddy doctor --target codex --goal-ready
To remove GoalBuddy-owned Codex runtime surfaces:
npx goalbuddy reset --target codex
Native codex plugin remove goalbuddy@goalbuddy only removes the native plugin surface. GoalBuddy also owns the goal_*.toml agent files it installed, its Codex plugin cache, its marketplace entry, and old personal skill folders from earlier installs. Use goalbuddy reset --target codex when you want those GoalBuddy-owned files removed too.
What It Creates
docs/goals/<your-goal>/
goal.md
state.yaml
notes/
.goalbuddy-board/ # generated local board files
subgoals/ # optional depth-1 child boards
goal.md says what you want.
state.yaml tracks the board.
notes/ keeps longer findings out of the main thread.
subgoals/ holds optional child boards when one parent task needs a bounded branch of work.
How It Thinks
Intent -> Oracle -> Surface -> Loop -> Proof
The oracle is the observable signal that says whether the original owner outcome is actually true: a test suite, browser walkthrough, demo transcript, generated artifact, benchmark, source-backed answer, release check, or final human decision.
No oracle, no serious goal.
The local board is the default work surface. It is not an extension marketplace; it is the built-in view of the state.yaml truth.