Pruning Agent Prompts: Why I Cut My Factory's Rules by 65%
Post-mortem fixes bloated my dark factory's agent prompts to 17,072 words in 30 days. See what happened when I cut 65% of the rules and moved them to code.
Post-mortem fixes bloated my dark factory's agent prompts to 17,072 words in 30 days. See what happened when I cut 65% of the rules and moved them to code.
After 15.8 billion tokens and 208,649 model turns in Leaf, SWE-bench and static price routers like LiteLLM optimize for the wrong thing. Buy runs, not models.
Interactive agent skills rely on progressive disclosure and human guardrails. My token data shows why unattended 2027 loops need radically smaller context.
How I rebuilt Leaf as a local-first Level 5 dark software factory using adversarial validation, role-scoped WebSocket rooms, and deterministic CI/CD tasks.
My Level 5 software factory ships code unattended, until it hits CI limits, 50-node plans, or reward-hacking loops. Three lessons from recent failures.
What the data proved, what it didn't, and what humans give up when agents do the building. The last part of a series on the contract between humans and agents.
Quality gates don't go away when agents write the code. Humans just stop staring at them. A month of factory data on where quality actually comes from, and why the merge button doesn't matter.
My software factory spent 7.5 billion tokens in a month. Here's what that number hides, where the tokens really go, and why the human side costs more than you'd think.
My software factory isn't a pipeline. It's loops inside loops, and only one of them needs a person. A month of data on the loops that build, fix, simplify and watch themselves.
If humans and agents do different work, something has to sit between them. In my factory, that's a GitHub issue written as a contract: humans define done, machines check it.
Agentic development is two different jobs, judgement and mechanics, and we keep running them through one chat window. A series on designing the contract between humans and agents, with a month of data from my own software factory.