
devstory
io.github.Sudhanshu5669/devstory
Plans agent work as tickets on a live board and turns each into a lesson paced to your level.
Documentation
devstory
A planning and learning layer for coding agents. With devstory enabled, your agent researches how your kind of system is built well, asks how comfortable you are with each technology it will use, and then plans the work as small tickets on a live board you can watch. Every finished ticket becomes a lesson paced to your level, so when the work is done you have a build story that teaches you to build the project yourself, from setup to the last test.
Works with Claude Code, OpenAI Codex, Google Antigravity, Gemini CLI, Cursor and any other MCP client.

agent ──MCP──▶ devstory server ──append──▶ .devstory/events.jsonl ◀──watch── hub ──SSE──▶ browser
│ ▲ board · story
└── Edit/Write ──▶ hook ─────────append──────────┘ map · activity
What you get
- Research before design. devstory ships no canned architecture advice. For every plan the agent researches how this specific kind of system is built well (official docs, write-ups from teams running similar systems, open-source projects of the same shape, your codebase) and records its findings, sources, the options it weighed and its recommendation. That research opens the build story.
- Paced to you. Before planning, the agent asks whether you're a beginner, intermediate or advanced in each technology the project needs. Beginners get a primer lesson before a tool is first used and smaller steps; intermediates get the why and the idioms; advanced developers get trade-offs and edge cases. Levels are remembered across projects (and confirmed each time).
- Reviewed plans.
planis rejected until research is recorded and every skill has a level. The server also rejects dependency cycles and warns about oversized tickets, implementations that skip their interface, modules that depend on each other in a loop, plans with no tests, and beginner skills with no primer. - 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, plain-language definitions, the theory behind key ideas, worked examples, a trace
through the actual code, and a Try it yourself exercise with a success check. 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)
npx @sudhanshu5669/devstory demo --live # replays a sample build (a voicebot TTS adapter layer) in real time
npx @sudhanshu5669/devstory demo # the same project, written instantly
Requires Node 18.17+. No dependencies. To keep the devstory command around, install it globally:
npm install -g @sudhanshu5669/devstory.
Install in Claude Code (global)
From inside Claude Code:
/plugin marketplace add Sudhanshu5669/dev-story
/plugin install devstory@devstory
Restart Claude Code. The plugin brings the MCP server (tools), the devstory skill, 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 Codex, Antigravity, Gemini CLI, Cursor and others
The core is a plain stdio MCP server, so any agent that speaks MCP can use it. Two steps:
npx @sudhanshu5669/devstory setup codex --write # or: antigravity, gemini, cursor, other (omit --write to just print the config)
cd your-project && npx @sudhanshu5669/devstory init --agent codex
setup registers the MCP server in the agent's config (~/.codex/config.toml,
~/.gemini/antigravity/mcp_config.json, ~/.gemini/settings.json, ~/.cursor/mcp.json).
init writes the devstory workflow (the same text as the Claude Code skill) into the file that agent reads:
AGENTS.md, .agent/rules/devstory.md, GEMINI.md or .cursor/rules/devstory.mdc. It keeps
anything else in those files and refreshes its own section when re-run.
For any other client, point it at npx -y @sudhanshu5669/devstory mcp and its rules at AGENTS.md.
Without hooks, file edits aren't captured automatically; the agent lists them in complete_ticket.files instead.
The agent's tools
| Tool | Purpose |
|---|---|
research | How this kind of system is built well: use case, findings with sources, options weighed, recommendation, stack |
learner_profile | Your level (beginner / intermediate / advanced) in each technology; paces every lesson |
plan | Goal, stack, architecture (style, modules, decisions) and tickets tagged with skills. Validated and ordered |
add_tickets | Work discovered mid-flight, with the reason |
start_ticket | Mark a ticket in progress; returns its acceptance criteria and how deep to teach it |
log | Decisions (and rejected alternatives), problems, lessons |
complete_ticket | The lesson: narrative, concepts, walkthrough, 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
devstory setup [agent] connect codex, claude, antigravity, gemini, cursor or other (--write)
devstory init [dir] write the workflow into the project's agent instruction files (--agent <name>)
devstory ui [dir] start/attach the hub and open the board
devstory demo [--live] seed the sample project
devstory status [dir] [id] print the board for a project
devstory export [dir] [out] write the build story as Markdown
devstory mcp run the MCP server on stdio
Where things live
<project>/.devstory/events.jsonlis the append-only log, the source of truth. It's worth committing: the story travels with the repo.STORY.mdsits next to it.~/.devstory/holds hub state (hub.json,hub.log), the list of known projects, andlearner.json(your levels from earlier projects, offered as suggestions to confirm).- The hub is a single background process shared by all sessions, bound to
127.0.0.1only. It refuses requests addressed to any other host name, and it exits after 30 idle minutes with no open boards.
Environment variables: DEVSTORY_PORT (default 4747), DEVSTORY_AUTO_OPEN=0 (don't open the browser when
a plan is created), DEVSTORY_NO_HUB=1 (no UI, tracking only), DEVSTORY_HOME, DEVSTORY_ROOT.
Layout
.claude-plugin/ plugin + local marketplace manifests
bin/devstory.js CLI entry (mcp, hub, ui, demo, status, export)
server/ MCP protocol, tools, plan review (lint), event store, hub (HTTP + SSE), agent setup
shared/ reducer, dependency graph, pacing, story builder: used by server, hooks AND browser
hooks/ Claude Code hooks: edit tracking, session-start context
skills/devstory/ the workflow (research, levels, planning, lessons); also what `devstory init` writes for other agents
ui/ the board, no build step (vanilla ES modules)
demo/ sample project
test/ node --test suites
Development
git clone https://github.com/Sudhanshu5669/dev-story && cd dev-story
npm test # node --test, no dependencies
claude --plugin-dir . # try the plugin in Claude Code without installing
See CHANGELOG.md for release notes.
License
MIT © Sudhanshu5669. See LICENSE.
@sudhanshu5669/devstorynpm install @sudhanshu5669/devstory