r/SpecDrivenDevelopment • u/JinxedBluejay • 6d ago
Spec driven development: Vermilion Editor
https://github.com/adamjeremy-sk/Vermilion-EditorHi. I had no idea there was a community for this. I've been doing the spec driven development for a while and am in the process of making an IDE specifically for this use case... by using this method.
I guess I'll just leave a link here and let you guys take a look at it.
I didn't want to post in the vibe coding subs because I'll be honest they seem kinda... lazy.
Anyways... This is the basics, my github page and the project page explain more:
The gate protocol
Every non-trivial task proceeds through gates, and every gate follows the same loop:
Orchestrator writes a self-contained prompt
│
▼
Fresh Qwen session ── reads AGENTS.md ── does ONE step ── writes evidence files ── "STOPPING AND WAITING"
│
▼
Orchestrator audits the tree and the evidence ──► PASS | PASS WITH NOTES | FAIL
│ │ │
│ fix loop (same session) │ corrective prompt
▼ │
I commit the gate, commit the updated docs, push ◄──────────────────┘Several properties of this loop are deliberate:
- One step per prompt, and every prompt is self-contained. I open a fresh agent session for each step, which keeps the local model's context small and its behaviour predictable. Prompts are kept short enough to stay well inside what the agent handles reliably (an oversized one once hung it). Each carries its own context, rails, steps and evidence requirements, and begins with a mandatory instruction to read
AGENTS.mdfirst. - Evidence is produced by the machine, not narrated by the model. Long outputs (configuration, build, test runs, proofs) are written by the commands themselves into time-stamped files that record the commit they ran against. The Orchestrator reads those files directly and checks their timestamps against the edited sources.
- Nothing is carried forward as debt. A note raised in an audit is fixed before the gate is committed, through short continuation prompts in the same agent session. A remark that depends on code not yet written is attached to the gate that will write it, never left as a loose to-do.
- The agent cannot commit, push or discard work. OpenCode's permission configuration denies every git command that creates, rewrites or throws away history; only I perform those operations, and only at the end of a gate.
- The agent must say when the prompt looks wrong. Every report has a "Prompt doubts" section. Qwen follows the prompt anyway, unless that would break a rule, and the Orchestrator judges the doubt afterwards.
- Every milestone ends in a review. Before the next milestone begins, the Orchestrator and I discuss what was promised against what was delivered, what we learned about the process and the technology, and whether the plan should change.The gate protocol Every non-trivial task proceeds through gates, and every gate follows the same loop: Orchestrator writes a self-contained prompt │ ▼ Fresh Qwen session ── reads AGENTS.md ── does ONE step ── writes evidence files ── "STOPPING AND WAITING" │ ▼ Orchestrator audits the tree and the evidence ──► PASS | PASS WITH NOTES | FAIL │ │ │ │ fix loop (same session) │ corrective prompt ▼ │ I commit the gate, commit the updated docs, push ◄──────────────────┘ Several properties of this loop are deliberate: One step per prompt, and every prompt is self-contained. I open a fresh agent session for each step, which keeps the local model's context small and its behaviour predictable. Prompts are kept short enough to stay well inside what the agent handles reliably (an oversized one once hung it). Each carries its own context, rails, steps and evidence requirements, and begins with a mandatory instruction to read AGENTS.md first. Evidence is produced by the machine, not narrated by the model. Long outputs (configuration, build, test runs, proofs) are written by the commands themselves into time-stamped files that record the commit they ran against. The Orchestrator reads those files directly and checks their timestamps against the edited sources. Nothing is carried forward as debt. A note raised in an audit is fixed before the gate is committed, through short continuation prompts in the same agent session. A remark that depends on code not yet written is attached to the gate that will write it, never left as a loose to-do. The agent cannot commit, push or discard work. OpenCode's permission configuration denies every git command that creates, rewrites or throws away history; only I perform those operations, and only at the end of a gate. The agent must say when the prompt looks wrong. Every report has a "Prompt doubts" section. Qwen follows the prompt anyway, unless that would break a rule, and the Orchestrator judges the doubt afterwards. Every milestone ends in a review. Before the next milestone begins, the Orchestrator and I discuss what was promised against what was delivered, what we learned about the process and the technology, and whether the plan should change.