master-plan

agent
Security Audit
Fail
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 26 GitHub stars
Code Fail
  • exec() — Shell command execution in board/board.mjs
  • spawnSync — Synchronous process spawning in board/board.mjs
  • fs.rmSync — Destructive file system operation in board/board.mjs
  • os.homedir — User home directory access in board/board.mjs
  • process.env — Environment variable access in board/board.mjs
  • spawnSync — Synchronous process spawning in board/door.mjs
  • fs.rmSync — Destructive file system operation in board/door.mjs
  • os.homedir — User home directory access in board/door.mjs
  • process.env — Environment variable access in board/door.mjs
  • process.env — Environment variable access in board/helper-lifecycle.mjs
  • os.homedir — User home directory access in board/hooks/git-floor.mjs
  • process.env — Environment variable access in board/hooks/git-floor.mjs
  • os.homedir — User home directory access in board/hooks/post-tool.mjs
  • process.env — Environment variable access in board/hooks/post-tool.mjs
  • exec() — Shell command execution in board/hooks/pre-tool.mjs
  • os.homedir — User home directory access in board/hooks/pre-tool.mjs
  • process.env — Environment variable access in board/hooks/pre-tool.mjs
  • spawnSync — Synchronous process spawning in board/join.mjs
  • process.env — Environment variable access in board/join.mjs
  • spawnSync — Synchronous process spawning in board/overview.mjs
  • spawnSync — Synchronous process spawning in board/recovery.mjs
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

AI-native task management for Claude Code. Track tasks in MASTER_PLAN.md — pick, save, ship.

README.md

master-plan

master-plan cover

AI-native task management (MASTER_PLAN.md) and a zero-dependency multi-agent coordination board for Claude Code, OpenAI Codex, and Antigravity.

/master-plan:task → /master-plan:next → /master-plan:board (claim & notes) → /master-plan:save → /master-plan:done

Two-Layer Architecture

master-plan separates human-readable task state from high-frequency agent coordination so parallel agents never create merge conflicts on MASTER_PLAN.md:

Layer Where it lives What it holds
Task Plan (MASTER_PLAN.md) Inside your git repository (MASTER_PLAN.md or docs/MASTER_PLAN.md) Stable task backlog, priorities (P0–P3), statuses, and readable titles for humans, git history, and dashboards.
Live Coordination Board (board/) Per-repo SQLite DB in ~/.local/share/master-plan/boards/ (never inside .git) Worktree/branch claims, session ownership, cross-agent notes, drift notices, safe branch joining, and unsaved-work recovery snapshots.

Requirements

  • Node.js >= 22.5 (uses built-in node:sqlite, zero external npm dependencies)
  • Git (supports single checkouts and multi-worktree setups)

Installation

1. Install as a Claude Code Plugin (Skills)

Inside Claude Code, run:

/plugin marketplace add endlessblink/master-plan
/plugin install master-plan

This installs the 5 skills: /master-plan:task, /master-plan:next, /master-plan:save, /master-plan:done, and /master-plan:board.

2. Install the Multi-Agent Board CLI (master-plan-board)

Clone once and link globally (no npm install needed — zero external dependencies):

git clone https://github.com/endlessblink/master-plan.git ~/.local/share/master-plan/repo
cd ~/.local/share/master-plan/repo
npm link

Verify the CLI:

master-plan-board --help

(Or run directly without linking: node ~/.local/share/master-plan/repo/board/door.mjs <command>.)

3. Enable Multi-Agent Guards in Any Git Project

From inside your project repository:

# 1. Enable the Git floor (protects held branches & stashes from ANY agent or raw git command)
master-plan-board floor on

# 2. Register hooks for the coding agents you use
master-plan-board agent codex on          # Registers hooks in ~/.codex/hooks.json (keeps existing hooks)
master-plan-board agent antigravity on    # Registers hooks in <repo>/.agents/hooks.json (keeps existing hooks)

For Claude Code, point your SessionStart, PreToolUse, and PostToolUse hooks to:

  • node ~/.local/share/master-plan/repo/board/hooks/session-start.mjs
  • node ~/.local/share/master-plan/repo/board/hooks/pre-tool.mjs
  • node ~/.local/share/master-plan/repo/board/hooks/post-tool.mjs

Every hook fails open on errors, timeouts (2s limit), or when switched off — it will never brick your session.


Quick Start

Task Lifecycle (Skills)

/master-plan:task     Create a task (auto-generates MASTER_PLAN.md if missing)
/master-plan:next     AI-recommended or interactive task picker (supports filters: bugs, planned, active, review)
/master-plan:save     Save WIP commit + push without marking done
/master-plan:done     Run tests, commit, push, and mark task complete
/master-plan:board    Coordinate parallel agents on the shared project board

Multi-Agent Coordination CLI (master-plan-board)

# See who holds which worktree/branch right now
master-plan-board claims

# Plain-English "who works on what" overview (reads task titles from MASTER_PLAN.md)
master-plan-board work

# List all worktrees (in use / finished / keep with reason; read-only)
master-plan-board folders

# Claim the current worktree/branch bound to your own session
master-plan-board claim --owner "claude-builder" --task TASK-42 --self

# Leave a note for all other agents (auto-delivered before their next step)
master-plan-board note --owner "claude-builder" "API schema updated in src/api.ts"
master-plan-board notes

# Safely join finished work into main (checks overlap & conflicts without overwriting)
master-plan-board join

# Release your claim when finished
master-plan-board release --how shipped

# Recover unsaved/uncommitted file checkpoints captured after tool calls
master-plan-board recovery list
master-plan-board recovery export --to /tmp/recovered

# Emergency fail-open kill switch (machine-wide or per-command via MASTER_PLAN_GATE=off)
master-plan-board off
master-plan-board on

Safety & Design Guarantees

  • One holder per worktree & branch — concurrent writes, destructive git commands (reset --hard, clean -f, force-push), and stray commits into another agent's worktree are refused, naming the holder.
  • Automatic stale expiry — claims with no sign of life for 30 minutes expire automatically and can be explicitly taken over (claim --take-over).
  • Fail-open — an unreadable board, missing hook, 2-second timeout, or MASTER_PLAN_GATE=off lets commands through with one visible notice.
  • No files added to your repo — all boards and recovery snapshots live in ~/.local/share/master-plan/ (overridable via MASTER_PLAN_HOME).

Deep-Dive Docs

Running Tests

npm test

Runs the full 100-test standalone suite (tests/master-plan-*.test.mjs) covering claims, session binding, cross-agent notes, drift detection, destructive-command guards, git floor, Codex/Antigravity/Claude hook contracts, branch joining, recovery snapshots, and fail-open safety.

License

MIT

Reviews (0)

No results found