Engineering Blog

Technical insights into multi-agent orchestration, local protocols, and
developer-centric terminal workflows.

Subagents in AI Coding Agents: Isolate Search From Reasoning

Subagents in AI Coding Agents: Isolate Search From Reasoning

Route a codebase search to a subagent pinned to a cheap model and two things happen at once: the search itself costs a fifth as much, and only a hundredth of it ever reaches the window where your expensive model is about to think.

Subagent Dispatch: Task, Tools, and Rules for a Clean Context

Subagent Dispatch: Task, Tools, and Rules for a Clean Context

A 20-issue Sentry triage sweep run inline leaves 21,000 tokens of tool exhaust in the main thread. Dispatched to a subagent under a three-line return contract, it leaves 60. The ratio holds at every cadence.

MCP Server Security: the Confused Deputy Problem

MCP Server Security: the Confused Deputy Problem

The GitHub MCP server that leaked private repo names in May 2025 had no malicious code in it. The token's authority was ambient, good for every repo you can see. Scope it to the task and the blast radius drops 12x.

Auto-Compaction vs a Handoff File in a Long AI Agent Session

Auto-Compaction vs a Handoff File in a Long AI Agent Session

When the window fills, auto-compaction writes a faithful summary and a handoff file writes an edited one. Both can be 200 tokens; next session they are 5,000 tokens apart, and the whole gap is one line saying what was ruled out.

MCP Server Design: Keep API Keys Out of the Context Window

MCP Server Design: Keep API Keys Out of the Context Window

A raw token passthrough hands an injected agent all 34 endpoints of your billing API, five of them destructive. Hold the token server-side and expose three curated verbs instead: one bounded write, capped at $500 a call and logged.

AI Agent Plan File Checklists: The Counter-Signature

AI Agent Plan File Checklists: The Counter-Signature

A relay of fresh sessions inherits every earlier decision through the plan file's checkboxes. But the model that ticks a box has every incentive to believe its own diff. An unaudited checklist is a bet, and this is the arithmetic that prices it.

AI Agent Triggers: Automate Headless Runs with Hooks

AI Agent Triggers: Automate Headless Runs with Hooks

An event can fire a headless agent run as reliably as a hook fires inside a session. But wiring the event only removes the human who had to remember to ask. The one who caught bad output has to be rebuilt as code too: rules for what a careful review would do, guards for what it would never let happen unattended.

MCP Tool Output Schema: Stop Trusting Agent Prose

MCP Tool Output Schema: Stop Trusting Agent Prose

A model has one procedure for turning tool bytes into a sentence, so a clean success and a swallowed failure read the same. On 12 refund calls, narration confirms 3 that never happened; a validated output schema confirms zero.

AI Agent Evals in CI: Run Two Loops, Not One Suite

AI Agent Evals in CI: Run Two Loops, Not One Suite

A suite thorough enough to catch a real regression is too slow and noisy to gate every PR. Split the same 50 cases into a 32-case deterministic gate and an 18-case nightly judge sweep, and a team merging 8 PRs a day gets 156 minutes of blocked PR time back every week - without dropping a single case.