Developer tools
spexSpec-driven development for AI coding agents, with checks that verify the result.
People use it, and it is open to the public.
The problem
AI coding agents write code fast, but fast is not the same as right. An agent fills every gap in a request with its own guesses, forgets requirements or adds changes nobody asked for. Reviewing everything by hand loses the speed, and accepting everything lets errors add up.
What it does
spex is an open-source framework for spec-driven development with AI coding agents. You write what each feature must do as acceptance criteria in plain YAML specs, and the agent builds from them, step by step, with written skills. Every criterion is traced to its contract, code and test, and spex check and spex coverage show what is proven and what is missing. spex grew out of our earlier internal method and the demo project built for it: one of our partner engineers rebuilt the method from scratch in Rust, as open source.
Specs, not guesses
Acceptance criteria in plain YAML, marked MUST, MUST NOT, SHOULD or MAY, tell the agent exactly what to build.
Rules with checks
Project conventions are written as rules, and spex check proves the code follows them.
Skills for every step
Nineteen written skills take the agent from product requirements to specs, contracts, code, review and tests.
Spec coverage you can see
Each criterion is traced to its contract, code and test, and spex coverage shows the gaps.
Works with any AI coding agent
Claude Code, Codex, Cursor or another agent, and any language or framework.
One binary, clear updates
A single Rust binary; spex update shows what changed and how to move to the new version.
Screenshots


How it works
- 1Install the tool: cargo install main-spex.
- 2Write each feature's acceptance criteria in a spec; your AI agent builds from it with the spex skills.
- 3Run spex check and spex coverage to see which criteria have code and tests, and which do not.
Who it is for
- Teams that build software with AI coding agents such as Claude Code, Codex or Cursor
- Solo developers who want results from AI that they can verify
- Engineering leads who need to show that every requirement is built and tested
Why it can win
- Proof, not trust: every acceptance criterion is traced to its contract, code and test.
- Not tied to one tool: one binary that works with any AI coding agent.
- Used in real work: we build our own products with it.
What works today
- Open source on GitHub, under the MIT license.
- Installs with cargo install main-spex; new versions come out every few days.
- A step-by-step tutorial on a runnable example, with a twin of the same app built without spex, to compare.
- We build Porker, Trails, VGift, ExoChat and Celmento with it.
What comes next
- Regular releases, each with its changelog and the steps to update.
- Teams outside ForEach Partners using it on their own projects.
- Contributions from developers outside our team.
Who builds it
Built by ForEach Partners: one of our partner engineers wrote it and leads it.
We are looking for
See it for yourself
The demo, the deck and the numbers are by invitation. Leave a request, and we will write to you.
Discuss your product
Building a product of your own, or planning one? Tell us about it, and a partner who writes code will answer. We can build it with you, develop it further, or partner on it.

