The problem it solves
A small local model is fast and free, but on its own it:- cannot understand a large task;
- needs very well filtered context;
- needs small, crystal clear instructions.
What is inside a Capsule
A Capsule is OPERATIONAL compression, not a summary. Instead of repeated prose, it carries structure the executor consumes without re-inferring:Distilled intent
The goal in one line, plus the canonical terms of the task.
Exact target
The file and the region (symbol or lines) to touch, not the whole file.
Verifiable contract
The done criterion as predicates the machine checks (symbol present, imports intact, no shrinkage).
Scope
What it may and may not touch (anti out of scope), enforced for real.
Project patterns
Your repository’s conventions, distilled into short rules.
Learned pitfalls
What already went wrong in this repository, so the model does not repeat it.
The cycle: understand, compact, execute, validate, learn
1
Understands
The premium model reads the request and the project, helped by the knowledge base.
2
Compacts
It distills everything into a Capsule: target, contract, patterns, pitfalls and one accepted-edit exemplar.
3
Executes
The Forge applies the change locally, fast and with zero API cost.
4
Validates
The contract is checked for real. For frontend, the build runs. See proven delivery.
5
Learns
Every failure becomes a pitfall and every win becomes an exemplar. The next Capsule comes out better on your project.
How it learns from your project
The Capsule is fed by two memories that grow with every run:- RAG of wins. Edits that passed become exemplars; the next similar task gets the right example.
- RAG of errors (pitfalls). Each failure (anchor that did not match, dropped import, broken build) becomes a short “when, avoid, because” rule. The same error converges instead of being re-discovered.
By design, the Capsule’s core is deterministic: it is assembled from signals the
pipeline already produces, so it delivers value even before the premium refines the
free-text fields. The premium raises quality, it does not create the structure.
How you use it
You do not build the Capsule by hand. The flow is automatic:- You chat and describe what you want.
- The orchestrator writes a rich plan in the knowledge base and points the issue at it.
- At execution time, the system compiles the Capsule from the plan, the code and the error memory.
- You follow it in the logs and savings: how much the Forge resolved locally and how much premium it avoided.
See also
The Forge
The local model that executes the Capsule for free.
Proven delivery
The gates that confirm the Capsule was actually fulfilled.