bencium-loop
A plugin for agentic coding tools like codex and opencode. It gives AI agents steady context, an acceptance checklist that must pass before anything ships, and a memory that survives a context reset (when the chat history is wiped between sessions).
The problem
AI agents drift. They forget decisions when the chat is reset. They write code that nobody checks against the original requirements. They ship without verifying, then can't explain why. A blank repo and a clever prompt aren't enough — what's missing is a feedback loop and a memory the agent works inside. The names will change, as they always do — the framework, the model, the vendor of the week. The underlying architecture won't.
What this is
One command — /bencium-init — runs a 5-question interview and produces a complete planning kit in about 60 seconds: product requirements, architecture, a task list, an acceptance checklist, and a .harness/ folder with config, memory, rules, and an archive for decisions.
Nothing vanishes
A workflow without checkpoints forgets itself — and invisible work becomes invisible failure. So every boundary in the loop leaves a written trace: each real decision is recorded. Together they're one advantage: you can see exactly what happened, and you can always pick up where you left off. The future of AI isn't bigger models — it's persistent, graph-based systems that turn isolated intelligence into something that keeps running. This loop is that idea, scaled down to one repo.
How it compares
| bencium-loop | BMAD-method | Just a context file |
|---|
| Setup time | ~60 sec | Multi-phase interview | Instant |
| Memory model | Tiered markdown (memory.md + archive) | Heavy generated docs | Static file |
| Verification gate | Walks ACCEPTANCE.md, evidence required per item | — | — |
| Deploy/rollback | Deploy blocked by a hook until verify passes | — | — |
| Enforced by tooling | 3 gates (plan, deploy, deployed rows) | — | — |
| Infrastructure needed | None | None | None |
| Survives a context reset | Auto-injected | Re-read manually | Yes |
What's enforced, and what's asked for
Worth being exact about, because this is where tools like this usually overclaim.
| invariant | how it holds |
|---|
| Plan approved before any code | hook — the edit is blocked |
| Verify passes before deploy | hook — the deploy command is blocked |
| Deployed rows only ticked after a live check | hook — the edit is blocked |
| Failing test written before the code | asked |
| Evidence before a check is ticked | asked |
| No item vanishes from a parallel check | code, in the workflow scripts |
The three hooks are Claude Code only. Everywhere else — Codex, opencode, a pasted chat — every
line in that table is a convention the model follows because the prompt tells it to. That works
most of the time, and it is not the same thing as being stopped. The distinction matters least on
a short focused session and most on a long one, which is exactly when you would want the gate.
Who it's for
Solo builders and small teams using agentic coding tools like codex or opencode on real projects — not throwaway demos. Especially valuable for regulated or healthcare work where unverified deploys are not OK, and for any project where you want a paper trail of decisions and a refusal to deploy when acceptance criteria slip.
Gartner still expects 40% of agentic AI projects to be cancelled by 2027 — on security, cost, and evaluation, not model quality. In a regulated industry, a human approval gate isn't a tax on speed; it's the requirement.
The 60-second demo
$ cd ~/new-project
$ git init
$ # open your agentic coding tool
/bencium-init
You get 5 questions (product name, problem, primary user, success metric, stack). One model call later you have:
new-project/
├── README.md
├── CLAUDE.md # project-root agent context, auto-loaded
├── PRD.md # 1-page product requirements
├── ARCHITECTURE.md # 1-page system architecture
├── tasks.md # Now (≤15) / Roadmap split
├── ACCEPTANCE.md # 10 testable acceptance checks
└── .harness/
├── config.yaml # deploy + rollback + verify commands
├── memory.md # hot context, auto-loaded each session
├── rules.md # project non-negotiables
├── glossary.md
├── constraints.md
└── archive/ # NNNN-decision-*.md, NNNN-retro-*.md
Existing projects (ones that already have code) are auto-detected — /bencium-init scans the code and produces a retrospective product spec and architecture without overwriting anything.
How to start a new project with bencium-loop from a vague idea
Short answer: describe your idea in the chat, then run /bencium-init in the empty project folder. That one command runs a 5-question interview and generates the entire scaffold in a single ~60s pass.