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
- Ask the Graph, Not grep: Structural Code Queries Without the Token Bill8 Nov 2026 · 7 min
Who calls this function? What breaks if I change it? grep answers by reading files into context — hundreds of thousands of tokens. An AST knowledge graph answers in one MCP call. ECC integrates DeusData's codebase-memory-mcp across 158 languages; here is when to use it instead of grep.
- Terse Mode: Compressing Output Without Lying About the Number8 Nov 2026 · 6 min
A 4-level dial shrinks AI replies while keeping code byte-exact. But ECC ships two things named terse — a file compressor that measures real bytes, and a runtime ledger that models an estimate — and it labels which is which. Plus: when terse costs you more than it saves.
- Reading 300MB to Return 800 Characters6 Oct 2026 · 5 min
A fixed-size excerpt whose cost scaled with the file. The fix is four lines, but the interesting part is the multi-byte detail that makes a naive byte window wrong, and writing the test as a memory bound rather than a timing bound.
Architecture
- A Local Memory That Survives a git clone, a Move, and a Rename8 Nov 2026 · 7 min
Keying a project by its absolute path means every memory orphans the moment you move the repo. ECC keys by the normalised git remote instead, reads both ids for backward compatibility, redacts secrets on capture, and fuses recency and outcome into recall.
- The Super Agent Is a State Machine That Can't Lie About Its Own State8 Nov 2026 · 8 min
ECC's new autonomous orchestrator drives a whole objective to done — decompose, dispatch in dependency order, integrate branches, verify — with a control plane that spends zero tokens and is fully testable without running a single agent.
- 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
- Six IDEs, One MCP Server, and the Two That Stay Manual8 Nov 2026 · 7 min
kodelythecc --target <ide> wires ECC's MCP server — the whole catalog plus local memory — into Claude Code, Cursor, Windsurf, Gemini, Codex, and Kiro automatically. Here is which config file each one gets, why the merge refuses to clobber, and what still needs a human.
- RTK's Savings Number Is Measured Per Command, and Labelled an Example8 Nov 2026 · 6 min
ECC wires RTK into a PreToolUse hook so shell output is compressed before it reaches the model. rtk gain measures the saving per command from real byte counts — and ECC calls the headline figure an example, not a promise, because it depends entirely on what you run.
- 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.