devstory
A planning and learning layer for coding agents. With devstory enabled, your agent designs
before it codes. It breaks every multi-step task into small system-design tickets, works through them one
at a time on a live board you can watch, and narrates each finished ticket. When the work is done you
have a step-by-step build story: how a developer would build this project piece by piece, with
the reasoning, the concepts, the code that matters, and an exercise for each step.
agent ──MCP──▶ devstory server ──append──▶ .devstory/events.jsonl ◀──watch── hub ──SSE──▶ browser
│ ▲ board · story
└── Edit/Write ──▶ hook ─────────append──────────┘ map · activity
What you get
- Design before code. The agent reads a playbook for the kind of system it's building (CRUD API,
provider adapters, realtime pipeline, frontend, CLI, data pipeline, feature slice, refactor), then plans
modules and tickets. The server reviews the plan before accepting it: it rejects dependency cycles,
and warns about oversized tickets, implementations that skip their interface, modules that depend on each
other in a loop, and plans with no tests.
- A live board at
http://127.0.0.1:4747. Tickets move from Waiting to Ready (all
dependencies done), In progress, Blocked and Done as the agent works, Trello-style. Click a card for
its description, checklist, notes, files and history.
- The build story, one numbered step per ticket. Steps follow the order a developer would build
them in (dependencies first, foundations before features). Each step lists the earlier steps it builds on,
why it comes now, the narrative, concepts, decisions and problems hit along the way, a code tour, how to
check it works, and a Try it yourself exercise. Practice mode hides the answers so you can build each
step first. Export it as Markdown; it's also kept at
.devstory/STORY.md.
- A dependency map in build layers. Hover a ticket to trace what it needs and what it unlocks.
- Replay. Everything is an append-only event log, so you can scrub or play back the whole build and
watch the board evolve.
- Automatic code attribution (Claude Code). A hook records every file edit against the ticket in
progress, so the code tour fills itself in. If the agent edits code mid-plan with no ticket open, it gets
nudged.
- Continuity. At session start and after context compaction, the agent is told where the plan stands
and what to do next.
Try it first (no agent needed)
git clone https://github.com/Sudhanshu5669/dev-story && cd dev-story
node bin/devstory.js demo --live # replays a sample build (a voicebot TTS adapter layer) in real time
node bin/devstory.js demo # the same project, written instantly
Requires Node 18.17+. No dependencies, no npm install.
Install in Claude Code (global)
From inside Claude Code:
/plugin marketplace add Sudhanshu5669/dev-story
/plugin install devstory@devstory-local
Restart Claude Code. The plugin brings the MCP server (tools), the devstory skill and playbooks, the
hooks, and two commands:
/devstory:board: open the board and summarize where things stand
/devstory:learn [step]: have the agent teach you the build story step by step, quizzing you with the exercises
For a one-off session without installing, clone the repo and run claude --plugin-dir ./dev-story.
Use with other MCP clients (Cursor, Claude Desktop, Codex, Gemini CLI, …)
The core is a plain stdio MCP server, and its instructions travel with it. Point your client at:
{
"mcpServers": {
"devstory": { "command": "node", "args": ["/absolute/path/to/devstory/bin/devstory.js", "mcp"] }
}
}
Without hooks, file edits aren't captured automatically. The agent can list them in complete_ticket.files instead.
The agent's tools
| Tool | Purpose |
|---|
get_playbook | Proven decompositions for common system shapes |
plan | Goal, architecture (style, modules, decisions) and tickets. Validated and ordered |
add_tickets | Work discovered mid-flight, with the reason |
start_ticket | Mark a ticket in progress; returns its acceptance criteria |
log | Decisions (and rejected alternatives), problems, lessons |
complete_ticket | Narrative, concepts, highlights, how to verify, an exercise |
update_ticket | Re-scope, re-link, block, cancel, reopen |
status | Where things stand (use after compaction); one ticket in full |
open_board | Open the board in the browser |
CLI