plan is a local-first-by-default, backend-flexible planning CLI for
AI-assisted software work.
It focuses on one job: turning rough ideas into shaped, execution-ready plans
that agents can follow cleanly. .plan/ is the default local workspace, but
configured integrations can own persistent planning data in github or
hybrid modes.
- local-first
- backend-flexible
- markdown-first
- planning only
- simple default workflow
- optional deeper shaping passes
plan does not own memory, retrieval, or context management. Pair it with a
companion tool such as brain if you
need that layer.
For schema-v3 local workspaces, the standalone CLI now delegates the compatible
planning command families to Brain's shared Planning packages. GitHub, hybrid,
legacy, and unsupported command paths remain in the standalone host. Interactive
terminal use prints a once-per-process migration warning naming the equivalent
brain plan command; JSON and noninteractive use remain quiet.
Active planning model:
- Brainstorm session
- Distilled issue body or idea doc (optional)
- Spec
- Execution slices at runtime
initiative is optional lightweight grouping for multiple specs. In GitHub
mode, an initiative can map to a milestone and an initiative issue.
Legacy epic and story commands still exist during the transition, but they
are no longer the active model the workspace reports by default.
Workflow entry:
- Brainstorm locally or in GitHub Discussion
- Refine
- Challenge
- Assess maturity and draft promotion
- Promote or shape the work into a spec or initiative
- Write and approve spec
- Analyze or checklist the spec
- Assign initiative metadata when needed
- Start spec execution
- Work the execution slices one commit at a time
Execution loop:
- Establish spec queue
- Take next approved spec
- Start execution from the approved spec
- Implement one slice
- Review and verify that slice before committing it
- Repeat until the spec is done
- Move to the next spec in queue
- Open one PR when the queued specs are complete
The default path stays small. New shaping passes should improve the same artifacts rather than add new top-level planning objects.
plan now treats source-of-truth choice as an explicit part of the product
model.
local: durable planning data lives in.plan/github: durable planning data can live in GitHub issues, projects, and milestoneshybrid: ownership is split across.plan/and integrations
Rules:
- local remains the default
- brainstorm is a session, not a durable hierarchy layer
- collaborative brainstorming can start in GitHub Discussions
- persistent planning data may live locally or in integrations
- ownership must be explicit by planning layer
- today, local is the most complete backend and GitHub is the first external backend being actively shaped
my-project/
.plan/
PROJECT.md
ROADMAP.md
brainstorms/
ideas/
archive/
specs/
.meta/
workspace.json
migrations.json
github.json
When local owns those planning layers, user-authored material lives in:
.plan/PROJECT.md.plan/ROADMAP.md.plan/brainstorms/.plan/ideas/.plan/archive/for preserved legacy material.plan/specs/
Tool-owned local integration state lives only in:
.plan/.meta/workspace.json.plan/.meta/migrations.json.plan/.meta/github.jsonwhen GitHub integration is enabled
plan update may repair or normalize tool-owned state. Use
plan update --archive-legacy to move legacy epics/ and stories/ into
.plan/archive/ without mutating the active spec-first surfaces.
In github or hybrid modes, persistent planning data may also live outside
the repo while .plan/.meta/ keeps local integration state and migration
metadata.
plan init --project .
plan source show --project .
plan brainstorm start --project . "Newsletter system"
plan brainstorm refine --project . newsletter-system
plan brainstorm challenge --project . newsletter-system
plan discuss assess --project . --brainstorm newsletter-system --format json
plan discuss promote --project . --brainstorm newsletter-system --format json
# local repo-backed promotion still uses the legacy compatibility path today
plan epic promote --project . newsletter-system
plan spec show --project . newsletter-system
plan spec analyze --project . newsletter-system
plan spec checklist --project . newsletter-system --profile general
plan spec initiative --project . newsletter-system --set guide-packet-foundation --title "Guide Packet Foundation"
plan spec status --project . newsletter-system --set approved
plan spec execute --project . newsletter-system
plan status --project .
plan check --project .GitHub collaborative path:
plan source set --project . github
plan discuss assess --project . --discussion 49 --format json
plan discuss promote --project . --discussion 49 --format json
plan discuss promote --project . --discussion 49 --apply --confirm --target github --format jsonPromotion preview reconciles existing Plan-managed Issues and Milestones before
classifying every artifact and relationship as create, update, reuse, or
unchanged. Exact Plan/source metadata wins over titles; ambiguous identity
blocks. Preview is non-mutating, and repeated confirmed apply is idempotent.
Structured ## Promotion map spec briefs keep their own scope, acceptance
criteria, verification, readiness, and dependencies.
If Plan says the source needs repair, use the emitted repair command before
promotion. In GitHub or hybrid source mode, do not create planning issues,
labels, or milestones manually unless Plan emitted manual_fallback_allowed=true;
after any allowed fallback, run plan github adopt.
Full guide:
plan initplan adoptplan doctorplan updateplan source show|setplan brainstorm start|idea|show|refineplan brainstorm challengeplan discuss assess|promoteplan discuss repairplan guide current|showfor brainstorm and collaboration guide packetsplan epic create|promote|list|show|shapefor legacy compatibility during migrationplan spec show|edit|status|analyze|checklist|initiative|execute|handoffplan story create|update|list|show|slice|critiquefor legacy compatibility during migrationplan github enable|reconcile|adoptplan github project status --issue <number> --set <todo|in-progress|in-review|done>plan roadmap show|editplan checkplan statusplan skills install|targets
Use this loop when implementing planned work:
plan status --project .
# take next approved spec
plan spec execute --project . <spec-slug>
# implement one slice
# review + verify slice
# commit slice
# repeat until spec done
# move to next queued spec
# once queued specs are done, open one PRRules:
- use
plan status --project .as the queue view - queue work at the spec level, not the single-issue level
- start execution from one approved spec before coding
- complete one slice at a time
- review and verify each slice before committing that slice
- once the current spec is done, move to the next queued spec
- in this repo, normal work targets
develop - work on a feature branch, not on
develop,release/*, ormain - open one PR after the queued specs for that branch are complete
- if GitHub integration is enabled, run
./scripts/refresh-plan-develop-context.shafter merge before taking more queue work
This repo uses Gitflow with develop as the active integration branch,
release/vX.Y.Z as the protected stabilization branch, and main as the
release-only production branch.
Normal work flows into develop. Official releases are cut from develop onto
release/vX.Y.Z, then merged into main to publish.
Release and maintenance rules live in docs/gitflow.md.
Product phases, not release-tag numbers:
v4: Planning Refinement Foundationv5: Planning Skills, Shaping, and Evalsv6: Story Slicing and Execution Readinessv7: External Sync, only if the local loop clearly winsv8: Guided Co-Planning System
Release tags can stay in v0.x.y semver until a separate 1.0 decision.
Unix shell:
curl -fsSL https://raw.githubusercontent.com/JimmyMcBride/plan/main/scripts/install.sh | shBuild from source:
git clone https://github.com/JimmyMcBride/plan.git
cd plan
go build -o plan .
install -Dm0755 plan ~/.local/bin/planThe installer copies two companion skills:
planfor planning, spec truth, and shaping workflowsplan-executefor executing one approved spec through branch, code, tests, commit, push, and a ready PR
Global:
plan skills install --scope global --agent codexProject-local:
plan skills install --scope local --agent codex --project .Preview install targets:
plan skills targets --scope both --agent codex --project .plan-execute is intentionally plan-adjacent. It consumes approved plan
specs but owns the agent execution rail instead of adding task-runner behavior
to the core plan CLI.
If you want a Codex cloud environment for this repo to have optional access to
brain, point the environment setup
step at:
./scripts/setup-codex-cloud.shThat script:
- installs a repo-local Brain binary at
.codex/bin/brain - installs the repo-local Brain skill for Codex at
.codex/skills/brain - leaves Brain optional when the repo does not contain a
.brain/workspace
plan remains the planning control plane. Depending on the configured backend,
durable planning truth may live in .plan/, GitHub, or both. Brain is only
for context, retrieval, and session hygiene when present.
v5 adds a local benchmark and rubric harness for maintainers. v6 adds
story slicing, critique, and stronger spec-to-story readiness checks. The
benchmark workflow is test-driven:
go test ./internal/planning -run TestBenchmarkFixturesSatisfyMinimumScores
go test ./internal/planning -run TestRubricEvaluationIsDeterministicThe fixtures live under testdata/evals/fixtures/ and the rubric code lives in
internal/planning/evals.go.
- Pull requests run
go test ./...andgo build ./...in CI. developis the default pull-request target for routine work.- Official releases cut
release/vX.Y.Zfromdevelop, stabilize there, then merge intomain. - Every push to
mainstill tags the next patch release ifHEADis not already tagged. - The release workflow builds platform archives and publishes a checksum file with the release assets.
scripts/install.shonly falls back to a source build when no published release can be resolved. Download or checksum failures stay hard failures.
- Use docs/gitflow.md as the branching source of truth for this repo.
- Keep pull request titles and descriptions release-note-friendly. The
## Release Notessection in the PR template is the source of truth for published release changelogs. - Include the verification commands you ran in the PR so the release notes have a clean audit trail.
- Use
scripts/next-release-tag.shif you need to preview the next patch tag locally.
