A long project built on agentic coding falls apart the same way every time: in the first session everything flies, by the third the agent “forgets” yesterday’s decisions, by the fifth the branches diverge from the architecture. Practitioners at the harness round table put the conclusion bluntly: “Work only through spec frameworks — otherwise nothing worked.” This guide covers Compound Engineering — a pipeline of issues → specs → review docs → workers with self-collected insights that gave practitioners 10–11 hour overnight sessions on cheap models.
Why the Prompt Approach Falls Apart on Long Projects
The classic prompt approach has three systemic problems on long projects. First, session context is finite: by midweek it no longer fits the history of decisions or the accumulated agreements. Second, the agent “forgets” yesterday’s decisions and starts rediscovering them or contradicting them. Third, iterations diverge: each new chat interprets “how we do things here” in its own way, and the codebase turns into a patchwork quilt that is scary to deploy to production.
A partial solution is memory files: project rules carry over between sessions in CLAUDE.md and AGENTS.md, and the agent does not start from zero. But rules are not enough when it comes to a specific task: which restrictions apply, what the acceptance criteria are, where to integrate, and what not to touch. The Superpowers framework attempted to close this gap entirely — and, by practitioners’ accounts, failed: it inserted code fragments directly into specs and inflated the context, with the window spent on overhead instead of useful work. Every round table participant dropped it. Compound Engineering took its place — an approach in which knowledge lives in documents outside the session context, and agents read them point-wise, as needed.
A Five-Step Pipeline: from Issue to Self-Collected Insights
Compound Engineering breaks the work into five steps, each with its own artifact and performer:
- Backlog as issues. Project tasks are filed as GitHub issues with completion criteria. The agent receives atomic units of work with a verifiable result instead of a vague “improve the module.”
- A spec per task. A document with the goal, restrictions, acceptance criteria, and integration points. Crucially, it is a document, not code — implementation fragments do not go into the spec; that is the Superpowers lesson.
- A review doc before execution. Having received the spec, the worker first writes an execution plan — the review doc. It is a self-check of understanding: a mismatch between the plan and the spec becomes visible before any code is written.
- Workers on cheap models. Execution based on the “spec + review doc” pair is delegated to cheap models (in practice, DeepSeek-class). It is at this step that the 10–11 hour overnight sessions arise.
- Self-collection of insights. After the session, the agent extracts insights and patterns itself and stores them in the project’s memory. According to practitioners, this yields a “geometric boost” in the quality of subsequent sessions.
The pipeline scheme in one table:
| Step | Artifact | Performer | What is checked |
|---|---|---|---|
| Backlog | GitHub issues | Human | Atomicity and completion criteria |
| Spec | Task document | Human with an agent | Completeness of restrictions |
| Review doc | Execution plan | Worker | Understanding of the spec before code |
| Execution | Code and report | Cheap model | Acceptance criteria |
| Self-collection | Insights into memory | Agent | Applicability of patterns |
A practical detail: specs live in the repository next to the code — in a separate documents folder, linked with issues. The worker opens only the files it needs, the history of decisions stays in documents rather than in the model’s head. That is the main shift in approach: documents become part of the codebase, and the prompt is a temporary carrier of a single session.
A spec in this scheme is a direct relative of the PRD method for agents: the same “document over prompt” principle, except a spec is shorter and closer to a specific task. If you already maintain a PRD for the project, half of the pipeline is ready — the review docs and overnight execution remain.
The Overnight Session: the Evening — Night — Morning Rhythm
A tool chain from practice turns the pipeline into a daily rhythm (schematically):
Evening: research and draft plans — fast and cheap
→ run ideas through "grilmi": architecture work, 20–30 minutes
→ specs via the OMP plan
Night: workers on cheap models execute the specs for 10–11 hours
Morning: human review — accept, edit, file new issuesThe evening starts with research in Perplexity Pro (annual subscription): draft plans and analytics are assembled fast and cheap. Then 20–30 minutes of working through ideas and architecture via “grilmi,” after which the spec is assembled with the OMP plan — this tool chain is examined in the comparison of Codex, Claude Code, and ZCode OMP. Night is the workers’ time: cheap models execute the specs for 10–11 hours without human involvement. In the morning, finished pieces are on the table for review: accept them, fix them, file new issues for the next evening.
The economics of the rhythm explain why it took hold: overnight hours on cheap models are the cheapest code generation on the market. While the human sleeps, the subscription earns its price: routine goes to the workers, and the flagship model is saved for the morning review and difficult decisions. How much cheaper a worker is than a flagship on typical tasks is covered in the worker versus flagship analysis.
Pipeline Security: Official Routes, Sandboxes, Hooks
A pipeline that executes tasks overnight without a human is a magnet for incidents. The case of a hack through a free API key exposed in a chat is telling: workers on unofficial routes without sandboxes are dangerous — the shortcut saves cents and costs the entire project. Security rules from the same practices:
- Official providers for workers. Keys come from the provider’s personal dashboard, not from chats or “shared” collections.
- Sandboxes. The worker runs in an isolated environment: a container or a separate machine with no personal data and no access to production.
- Hardlocks and hooks against destructive actions. Blocking scripts against file deletion, pushes to production, and config changes — instructions to the agent do not replace locks.
- Production context matters more than code. Metrics, logs, and production state are more valuable than generated lines — “production context will become more expensive than code,” as practitioners put it.
From this comes the framework’s main career conclusion: code review is the most expensive skill of the future. Workers generate volume; the human approves quality. Compound Engineering optimizes not “writing” but “accepting”: the pipeline is built so that by morning the human has a verifiable result rather than the hope that the overnight session “went well.”
How Compound Engineering Differs from Superpowers
The main difference is where knowledge is stored. Superpowers kept code fragments in specs and hauled them into the session context: the window was spent on overhead, and useful work shrank. Compound Engineering keeps specs as documents outside the context: the worker reads point-wise — only the spec and the review doc related to its task; the rest never touches the context.
The second difference is status. Compound Engineering is not a product or a plugin but a method: decomposition, specs, workers, self-collected insights. It can be implemented in any harness with subagents — from Claude Code to open terminal agents — and project rules transfer between them with almost no edits. The third difference is a closed learning loop: self-collected insights make each session a contribution to the next ones, and the project “gets smarter” over time instead of degrading.
Common Questions
Is Compound Engineering a product or a method? A method: issue decomposition, specs, workers, self-collected insights. It can be implemented in any harness with subagents; it has no binding to a specific vendor.
How does it differ from Superpowers? In that it does not inflate the context: specs are documents outside the session context, workers read them point-wise, and code fragments do not accumulate in specs.
Where to start? With a single cycle: one issue → spec → review doc → worker on a cheap model → review. One cycle will show 80% of the method’s essence — and it will immediately become clear where exactly your process needs work.
Are overnight sessions safe? With sandboxes and hooks — yes. Without them, the case of the hack through a key from a chat has a direct consequence: autonomy without guardrails eventually executes something destructive.
Compound Engineering is a way to scale agentic coding across time: overnight workers on cheap models execute the specs, the morning review approves quality, and self-collected insights accumulate project experience. This is the framework the community chose over Superpowers — practice as of fall 2026. Concrete action: take one task from your backlog today, file it as an issue with completion criteria, write a spec, and run the first cycle — the worker will only need the night.
