Problem
Teams building with AI keep their specs in long markdown files that are hard to read and collaborate on. AI makes assumptions and gets lost in walls of text, so building blindly from a spec is dangerous.
Constraints
- Specs have to be readable and visual, and fit into traditional Agile tools.
- Agentic loops consume a lot of tokens, so cost optimization and transparency matter.
Opportunity
Make the spec the source of truth: people own it, agents build from it. The real question isn’t whether to use AI, but which decisions the agent owns and which need a person.
What I did
- Readable, visual specs: turned walls of markdown into a living story map that teams review together. Sutra produces the spec, backlog and PRD, so the work fits the Agile flow teams already use.
- No blind building: every story gets a failing test before any code is written. The agent gets three tries to pass it, and only passing code marks the story done.
- Human oversight: only a person can change a test once it’s written. Every decision is logged as human or AI, and finished work opens as a pull request for review.
- Security: agents write and run code in a sandbox, and Sutra checks specs for security blind spots before any code is written.
- No drift: Drift Finder flags when code drifts from the spec, or the spec from the code.
- Cost, optimized and visible: an MCP server sends each agent only the part of the spec it needs, and every operation shows its cost breakdown: spec planning, code generation, review, security check and drift check.
Outcome
- A spec, backlog, PRD, decision log and security assessment in under an hour, work that usually takes days.
- Token cost fell by about 40%.
- I spec’d Journ.ai on Sutra and built it in under a week, part-time.
- Sutra is live with free and Pro tiers and 3 paying customers.
What I took from it
In spec-driven development, the spec is the contract: the agent does the work, and a person owns the definition of done.
Want the details behind it?