Field notes from building an agent toolkit
What actually broke, with the measurements. Most of these started as a bug found by attacking our own code.
Security
- We Audited Our MCP Server Against the Three 2026 CVE Patterns. One Lived.19 Oct 2026 · 7 min
CurXecute, MCPoison, and the mcp-server-git triple-flaw each describe a distinct injection path. We ran our own ECC MCP server against all three. Two were architecturally prevented. One was a code change we had to ship.
- You Removed the Shell. You Still Have Argument Injection.6 Oct 2026 · 5 min
Array-form spawn stops shell metacharacters cold — we proved it by executing every generated command with a live payload. It does nothing about a value that starts with a dash, because the program parses its own argv.
- Enumerate, Don't Construct: The Path Traversal We Shipped6 Oct 2026 · 6 min
Five loaders resolved a name to a file. Four enumerated a directory and matched; one joined the name onto a path. Only one of them had a path traversal, and it was reachable by prompt injection.
- A Regex Took Down Our Prompt-Injection Guard6 Oct 2026 · 7 min
Three whitespace quantifiers sitting next to each other turned a security hook into a denial of service — and because the hook fails open, the denial of service was also a bypass. With the measurements and the fix.
- A Shared File Format Is Untrusted Input6 Oct 2026 · 6 min
Session bundles exist to be passed around. Two JSON fields in one built filesystem paths — one reached a recursive delete, the other planted an always-on rule file. The CLI printed success for both.
- Our Integrity Verifier Passed With a Planted File6 Oct 2026 · 5 min
It caught modified files and deleted files. An added file was advisory — exit code 0 — and in a toolkit that loads every markdown file in a directory as instructions, an added file is the whole attack.
Performance
Architecture
- Opus 4.6 Agent Teams Just Shipped. Our Parallel Commands Have Been That for Eighteen Months.19 Oct 2026 · 6 min
Anthropic calls them agent teams. We call them /devil-mode, /team-review, and /debug-blitz. The shape is identical: specialist fan-out, parallel execution, synthesised return. Here is what we learned building eight of them before the pattern had a name.
- The Memory That Could Never Be Recalled6 Oct 2026 · 5 min
BM25 scores are not normalised, so a fixed minimum score is a bet on corpus size. One memory in our store was mathematically unreachable at any size, and the search returned nothing while working perfectly.
Engineering
- The Agent That Kept Introducing Itself. Sticky Routing Was the Fix.19 Oct 2026 · 5 min
Intent routing was supposed to pick the right specialist. Instead it re-announced itself on every follow-up, interrupting its own thread. Dimension 2 of Routing v2 — session-state awareness — is quiet after the first announcement. Here is why that matters more than the picker.
- Tokens Saved Is Not Dollars Saved. The RTK Ledger Lies By Omission.19 Oct 2026 · 6 min
RTK compresses 60-90% of shell output. Independent replays of real sessions find 3-7% actual cost reduction. The gap is cache. Here is what our ledger measures, what it does not, and how to read it honestly.
- `|| {}` Deleted the User's Config7 Oct 2026 · 6 min
Our installer merged an entry into ~/.claude.json. A file that failed to parse was indistinguishable from a file that didn't exist, so a trailing comma turned 366 bytes of someone's configuration into 140 bytes of ours.
- The Service Worker That Poisoned Its Own Dev Server6 Oct 2026 · 7 min
A hydration error named an innocent component. The real cause was a cache-first service worker serving dev chunks that Turbopack reuses without content hashes — and the stale bundle re-registered the worker, closing the loop.