← All projects
Project record1 mention
Originally shared on Hacker News

Agent Smith

A specification-first agentic development plugin/method (site spec-first.dev, repository github.com/holgerleichsenring/agent-smith) in which the agent creates and maintains specs written for agents in YAML: create-spec drafts a spec, review-spec checks the spec's aims against the code and adds evidence, so a spec built on a wrong assumption is stopped before any code is written, then apply and deliver skills execute. Quality is enforced by commit hooks, verify stages (build, full test suite), a harness and 10k tests, and each spec runs in its own worktree with spec ids minted from date plus random hex. The submitter reports implementing it since January 2026 with over 1000 specifications producing about 500k lines of code, none written by hand, describes Agent Smith as a server product, and calls it one of his side projects.

Last shared For Developers working with coding agents
01 / The problem

What it addresses

Plans created by agents live in one session and are gone afterwards, and each developer prompts their own way; specs built on wrong assumptions need to be caught before any code is written.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Agent Smith

    A specification-first agentic development plugin/method (site spec-first.dev, repository github.com/holgerleichsenring/agent-smith) in which the agent creates and maintains specs written for agents in YAML: create-spec drafts a spec, review-spec checks the spec's aims against the code and adds evidence, so a spec built on a wrong assumption is stopped before any code is written, then apply and deliver skills execute. Quality is enforced by commit hooks, verify stages (build, full test suite), a harness and 10k tests, and each spec runs in its own worktree with spec ids minted from date plus random hex. The submitter reports implementing it since January 2026 with over 1000 specifications producing about 500k lines of code, none written by hand, describes Agent Smith as a server product, and calls it one of his side projects.

    Problem: Plans created by agents live in one session and are gone afterwards, and each developer prompts their own way; specs built on wrong assumptions need to be caught before any code is written.

    Audience: Developers working with coding agents

    Posted by @hleichsenring · Original source ↗

    Story title · @hleichsenring · · Source ↗

    Show HN: Specification First Agentic Development Plugin and Prove

    Submitted URL · @hleichsenring · · Source ↗

    https://spec-first.dev/

    Source text · @hleichsenring · · Source ↗

    Implemented agent smith since start 2026 with over 1000 specifications which lead to about 500k lines of code. The procedure with that spec-first works well. How do you do it?

    Source text · @hleichsenring · · Source ↗

    they do work well in production. have a look at https://github.com/holgerleichsenring/agent-smith. While writing that the methodology had been created.

    Source text · @hleichsenring · · Source ↗

    the agent creates and maintains the specs, doing this manually doesn't make sense. The specs are written for the agents. after execution of create-spec, review-spec skill will check against the code and add evidence of the spec's aims. Only when the aims fits to the evidence, the specs is going to be validated successful. after that apply and deliver skills can be executed. finally there is commit hooks and tests that shall ensure quality and functionality.

    Source text · @hleichsenring · · Source ↗

    I couldn't believe coding would be replaced when I started Agent Smith in January 2026.

    Source text · @hleichsenring · · Source ↗

    After 500k lines of code in Agent Smith, none of which I wrote by hand

    Source text · @hleichsenring · · Source ↗

    I do test it: 10k tests, a harness, a commit hook that blocks a spec while the suite is red, the whole story.

    Source text · @hleichsenring · · Source ↗

    In Agent Smith, the server product, a memory's standing comes from the runs that relied on it, so a wrong one can't turn into a rule.

    Source text · @hleichsenring · · Source ↗

    A commit gate that's part of the method. Every spec commit runs the project's verify stages (build, full test suite) and is blocked if anything is red.

    Source text · @hleichsenring · · Source ↗

    Parallel by design. Each spec runs in its own worktree, and spec ids are minted from the date plus random hex instead of counting existing specs, so agents working in parallel never collide on a number.

    Source text · @hleichsenring · · Source ↗

    YAML instead of Markdown. My first 100 specs in Markdown were 250k tokens; in YAML they're 15k.

    Source text · @hleichsenring · · Source ↗

    A plan lives in one session and is gone afterwards. A spec is a file in the repo. It gets reviewed against the actual code before anything is built, its definition of done is checked when the change is committed, and it stays there with the decisions behind it.

    Source text · @hleichsenring · · Source ↗

    And because it has a fixed format and workflow, everyone on a team works the same way, instead of each developer prompting their own plans.

    Source text · @hleichsenring · · Source ↗

    A spec built on a wrong assumption gets stopped before any code is written.

    Source text · @hleichsenring · · Source ↗

    Agent Smith and all the other stuff is one of my side projects.