toby
Turn markdown specs into working code with AI-powered plan and build loops

What is toby?
Toby is a CLI tool that turns markdown specifications into working code through AI-driven plan and build loops. You write specs describing what you want, and toby orchestrates an AI agent to plan the implementation, then iteratively builds it — discovering files, generating code, and running validation until the spec is complete.
How it works
Toby follows a three-phase loop:
- Spec — You write a markdown file describing what you want built (features, acceptance criteria, constraints)
- Plan — Toby sends your spec to an AI CLI, which analyzes the codebase and produces an implementation plan with concrete tasks
- Build — Toby iteratively executes each task through the AI CLI, running your validation command between iterations until the spec is complete
Each phase feeds into the next: specs drive plans, plans drive builds, and build results update the project status so you always know where things stand.
Quick start
npm install -g @0xtiby/toby
toby init
toby plan --spec=add-auth
toby build --spec=add-auth
toby init — sets up configuration and specs directory in your project
toby plan — sends a spec to the AI CLI to produce an implementation plan
toby build — iteratively executes the plan, running validation between iterations
toby status — shows progress across all specs
toby config — manage CLI, model, and project settings
Development
pnpm install
pnpm build
pnpm link --global
pnpm unlink --global @0xtiby/toby
Documentation
License
MIT