This site was planned and built by a pipeline that runs inside Claude Code. It takes a free-form draft all the way to verified code and only calls me at the points where the decision is mine. In a little over a month and 274 commits, the pipeline came to use almost every extension point Claude Code offers, from the simplest command to a mod that draws in the interface itself. This post is about them.
The pipeline in a few lines
frobou-dev-workflow is three pipelines, packaged in the project's .claude/ folder:
- idea-pipeline: interviews the owner about the draft and produces the source of truth (
source.md), the specification (spec.md) and the phases with Acceptance Criteria (phases.md). - execution-pipeline: for each sub-step, turns the criteria into an executable suite, splits the work into shards, implements each one in a git worktree until the verifier goes green, reviews, merges and writes a QA guide.
- boilerplate-pipeline: installs the skeleton of a new project with each stack's official scaffolders.
Two ideas run through everything. The disk holds the state, not the conversation: the quota can run out halfway, and resuming reads the disk. And the script enforces what the instruction claims: the agent does not declare success; the exit code of a script does.
Commands: the front door
Each command is a Markdown file in .claude/commands/. In the pipeline it is a thin launcher: it says which skill to load, which references to read and in what order, and passes the arguments along. An excerpt of /exec-plan:
---
description: Traduz os Critérios de Aceite de um sub-step numa suíte executável, contrato e DAG de shards
argument-hint: "<projeto> <N.M | slug> [--resume | --nova-rodada | --emenda] [--auto]"
---
Execute o **modo plan** da esteira `execution-pipeline`.
1. Leia `.claude/skills/execution-pipeline/SKILL.md`.
2. Resolva o sub-step e rode o `plan_status.py` antes de ler as referências.
Se ele sair 1, pare ali.
Argumentos recebidos: $ARGUMENTS
There are twelve commands, from /idea-auto to /exec-auto, and none of them carries the rule itself. The rule lives in the skill.
Skills: the map loaded on demand
Each pipeline is a skill: a SKILL.md with the modes and what to load in each, a references/ folder with the process, templates/ with the shape of each artifact and scripts/ with validators in Python, using only the standard library.
What matters here is context. Everything in .claude/ is read by an agent while it works, so every line has a cost. The main agent reads the map and only the reference for the mode it is in. It runs the scripts without reading them, unless they fail.
Subagents: clean context and restricted tools
The pipeline has six subagents, in .claude/agents/: one that verifies the idea, one that writes the steps of the automatic mode, one that implements, one that reviews, one that writes the QA guide and one that runs it. Each has its tool list locked in its own header.
The verifier exists so it does not inherit the reading of whoever wrote the artifact: it reads it from scratch, with a clean context, and only reports a discrepancy backed by a literal quote. The reviewer only comes in when everything is already green.
Interviews and approvals never go to a subagent: asking the owner only works in the main conversation.
Hooks: the rule the prompt cannot hold
This was the most expensive lesson. Writing "do not use git stash" in the builder's prompt is not enough: the subagent goes back to doing what was forbidden. So the rule became a mechanism. The agent's header declares a PreToolUse hook that runs a script before every tool call:
---
name: exec-builder
tools: Bash, Read, Edit, Write, Glob, Grep, mcp__context7__resolve-library-id, mcp__context7__query-docs
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: 'python3 "$CLAUDE_PROJECT_DIR/.claude/skills/execution-pipeline/scripts/guarda_agente.py" builder'
---
The script receives the call as JSON on standard input. If it exits with 2, the call is refused, and whatever it wrote to standard error goes back to the agent as the reason. That way the builder cannot stash, touch worktrees, delete branches, push or wait for a process with pgrep inside a loop. The idea verifier only reads, and only inside the project.
The guard is a fence, not a vault: what only the owner may do, such as approving or signing a verdict, is enforced by the scripts themselves. The hook closes the obvious workaround.
Child sessions: the wave that runs on its own
/exec-auto takes a whole wave from plan to QA. It is driven by a Python process, the engine, which launches one Claude Code session per step with claude -p, up to three at a time by default, and decides what comes next from the disk, never from what the session said.
Each child session starts without the tool for asking questions (--disallowedTools AskUserQuestion): anything that belongs to the owner becomes a pending item written to disk. And it receives its hooks on the command line, in --settings:
- a guard before
Bash,WriteandEdit, which also applies the rules of the subagent that made the call, because in aclaude -psession the subagent's header hook is not guaranteed; - a pulse on every tool call, before and after, which only records its time and name. That is what tells whether the session is working, running a long command or thinking.
With that, I step in at four points: opening the wave, approving the criteria, the pending items and the final sign-off. Everything else runs without me.
A real mod: the band above the prompt
What was missing was a way to follow the wave without spending the session asking the model how things were going. For that, the pipeline ships a mod: a Claude Code plugin with function hooks, the API in which a plugin registers functions on session events and draws in the interface itself.
The esteira-status plugin does three things:
- on
session.start, it starts a clock that runsauto.py status --jsonevery 5 seconds and keeps the result in plugin state; - on
ui.renderfor theAbovePromptcomponent, it draws one line per sub-step, with the step, an activity strip and what is waiting for the owner; - when a sub-step changes step, it shows a toast (
$.ui.toast); when nothing moves without me, it asks the system for a notification ($.ui.notify).
In short form:
export const register: Register = on => {
on('session.start', async ($, e, next) => {
$.clock.every(5_000, () => void consultar())
return next(e)
})
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const atuais = await read($, ondas)
if (atuais.length === 0) return next(e)
const { Box, Text } = $.ui.resolve(e)
return <Box flexDirection="column">{/* one line per sub-step */}</Box>
})
}
And what shows up above the prompt:
● meu-projeto 3 rodando · 1 na fila · 1 espera você · onda-3 · 40 min
✓ 0.2 itens ▰▰▰▰▰ fechado
⠙ 0.3 relatorio ▰▰▰▱▱ build n1 ▁▁▁▁▁▁██▁█▁█▁██▁ passo há 3s · revisão 1 rodando há 3 min
⠴ 0.4 painel ▰▰▰▱▱ build n2 ▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ▶ P1 contrato · pensando há 3 min
The band never calls the model and writes nothing: it only reads the disk. Even the script's git status runs with GIT_OPTIONAL_LOCKS=0, so it does not fight over the index lock with a merge the engine may be doing. The plugin is optional, loaded with claude --plugin-dir .claude/plugins/esteira-status, and has its own tests, which run with claude plugin test.
The mods API is still in early access and may change between releases. That is why the band stays off the critical path: without it, the same status comes out as a line of text in another terminal.
What I would take to any project
- Put the rule where it is enforced. What must not happen goes into a hook or a script, not just the prompt.
- Write before moving on. If resuming depends on the conversation, a quota that runs out halfway takes the work with it.
- Thin command, thick skill. The command only points; the process lives in the skill, and the model loads only the piece it is going to use.
- Verify with a clean context. Whoever checks must not be whoever wrote.
- Observe without spending tokens. A mod that reads the disk shows more than asking the model, and costs nothing.