We Built a Bare-Minimum Agent Kernel Sikemux rebuilt its multi-agent coding framework around a "bare-minimum agent kernel" of deterministic Rust OS primitives, cutting its MCP turn-1 tool surface from 70 direct tools to 26 and to 1,164 tokens — 97.9% leaner than Anthropic's 55K-token baseline. Sikemux reported the orchestrator prompt fell 84.9% from 1,009 to 152 tokens, background LLM memory summarizers were replaced by a 0-token deterministic linter running in under 10 ms, and warm isolated workspaces dropped from 21.6 s and 1.18 GB to about 2 s and 103 MB, a 99.96% disk saving on a 40.8 GB Rust cache. The company cited Anthropic's CL-Bench finding that prescriptive memory rules helped older models but degraded newer ones, and Vercel's cut from 17 tools to 2 lifting pass rates from 80% to 100% at 3.5x speed, to argue that code-written cognitive scaffolding depreciates every six months. Why We Built a Bare-Minimum Agent Kernel How we deleted heuristic scaffolding from Sikemux, cut MCP turn-1 overhead 97.9% vs Anthropic's baseline, saved 99.96% disk on warm worktrees, and enforced 0-token guardrails. Every six months, a new frontier model turns half of a multi-agent framework into dead weight. Auditing Sikemux https://sikemux.com exposed thousands of lines of Rust trying to out-think the model: an English cue-word memory engine, background LLM summarizers, compiled orchestrator prompts, fixed character caps slicing rules mid-word, and 70 upfront MCP tools. We deleted that scaffolding and rebuilt around a bare-minimum agent kernel : deterministic OS primitives in Rust, with cognition left to plain Markdown and editable skills. Below are the measurements that actually moved the needle Apple Silicon, macOS APFS, tiktoken o200k base and the traps they exposed. Before and After: What Actually Moved the Needle | Subsystem | Before | After | Impact | |---|---|---|---| | MCP turn-1 surface | 70 direct tools Anthropic baseline: 55K tok | 26 direct tools / 1,164 tok gateway | -62.9% tools , 97.9% leaner than 55K baseline | | Orchestrator prompt | 1,009 compiled tokens | 152 tokens + on-demand skills | -84.9% prompt tokens | | Memory maintenance | Background LLM summarizers + cue rules | 0 tokens deterministic linter | -100% LLM spend , runs in <10 ms | | Warm isolated workspace | 21.6 s / 1.18 GB cold clone | ~2 s / ~103 MB 42.3 GB warmed | 99.96% disk saved on 40.8 GB Rust cache | | Credential handling | Prompt rules around secrets | Host-side blind-fill vault | 0 plaintext secret bytes in transcripts | Multi-Agent Coding Architecture: Why Heavy Frameworks Decay The strongest signal in coding harnesses is what frontier teams deleted : - Memory heuristics: Anthropic showed prescriptive memory rules helped older models but degraded newer ones on CL-Bench. - Bloated tool surfaces: Vercel cut a data agent from 17 tools to 2 bash and SQL , lifting pass rates from 80% to 100% and running 3.5x faster. Anthropic saw 58 upfront MCP schemas burn 55K to 134K tokens before turn 1. - Prompt walls and locks: Cursor deleted 66% of its system prompt and found flat locks collapsed parallel throughput, while isolated trees scaled cleanly. One law unifies all three: cognitive scaffolding written in code depreciates every six months, while OS physics and security invariants appreciate with every model jump. An agent kernel draws that OS boundary: +----------------------------------------------------------+ | MODEL-OWNED COGNITION Plain Files & Skills | | Planning, Markdown notes, skills, swappable harnesses | +==========================================================+ | DETERMINISTIC AGENT KERNEL Rust | | 1. Worktrees & Landing APFS CoW, ports, linear queue | | 2. Shared State & Lint CRDTs, SHA-256 blobs, 0-LLM | | 3. Signed Rooms & Specs OS caller ID, 8-turn breaker | | 4. Verifiers & Sandbox Receipts, blind-fill, taint | +----------------------------------------------------------+ Because the kernel owns thread logs and workspace state, Claude Code, Codex, and Gemini stay swappable drivers. See the agent kernel docs https://docs.sikemux.com/agents/agent-kernel and chats guide https://docs.sikemux.com/agents/chats . MCP Tool Token Overhead and the 3.38x Always-Load Trap Folding tool families into multiplexed tools cut our direct MCP catalog by 62.9% 70 down to 26 tools , exposing a trap that hits most MCP redesigns: 1. Multiplexing alone barely shrinks schemas: Every sub-action’s parameter schema still lives inside its parent tool. 2. The 3.38x alwaysLoad trap: Our eager alwaysLoad tier previously marked frequent flat tools at 979 tokens . Propagating alwaysLoad onto consolidated parent families dragged every cold sibling action onto turn 1, ballooning the eager tier to 3,306 tokens: 3.38x larger. 3. Gateway indexing delivers the win: Exposing only guide and call plus a compact index brought turn-1 context to 1,164 tokens , 97.9% leaner than Anthropic’s 55,000-token baseline. Takeaway: Never pair multiplexed families with eager loading. Keep cold actions behind a lazy index, and move role playbooks into on-demand Markdown skills, cutting our orchestrator prompt by 84.9% 1,009 to 152 tokens . Why Heuristic Agent Memory Silently Rots Our deleted memory stack paired background LLM summarizers with a heuristic contradiction detector using English stop-words, cue lists, and Jaccard similarity. Auditing that engine showed how string heuristics rot silently. Putting "on" in the positive-cue list broke verbatim opposites: - Note A: "Always push commits directly on main" - Note B: "Never push commits directly on main" Because Note B matched both "never" negative and "on" positive , its polarity canceled out and the detector passed both rules as non-contradictory. Complementary tooling rules falsely tripped, differently worded opposites slipped through, and a fixed character cap sliced a project rules block mid-word "...never bypass vault r" . We deleted both systems. Memory now lives in plain Markdown under a bounded index, trimming respects complete lines on window-relative budgets, and a 0-token deterministic linter runs in under 10 ms to catch oversized indexes, broken links, dead wikilinks, leaked API keys skipping fenced code , and stale code anchors via git diff. Salience stays with the model. Parallel Coding Agents With Git Worktrees and APFS Copy-on-Write Shared checkouts corrupt git indexes, clobber diffs, and clash on ports; cold clones trigger multi-minute rebuilds. Measuring on our live repo disproved our guess that recursive APFS cp -cR would make cloning instant: | Operation | Wall Time | Apparent Size | Physical Disk Delta | |---|---|---|---| | Fresh git clone --no-hardlinks | 21.6 s | 1,165.5 MB | 1,180.2 MB | | Naive recursive cp -cR full repo | 11.75 s | 1,165.5 MB | 86.5 MB | | Warm Rust target/ clonefile | 1.17 s | 40.8 GB | 17.6 MB 99.96% saved | | Combined warm isolated workspace | ~2.0 s | ~42.3 GB | ~103 MB | Naive cp -cR spent almost twelve seconds walking .git objects file by file. Pairing git worktree add with directory-level clonefile on node modules/ and target/ beats cp -cR by ~6x , warming a 42.3 GB workspace for ~103 MB of disk. Finished commits land through line-level edit ownership and a serialized linear queue: disjoint edits merge cleanly alongside sibling work, while colliding lines refuse cleanly without mutating main . We dogfood this daily building Sikemux itself, with parallel Claude and Gemini agents landing signed commits onto a linear main without lock contention. See worktrees and handoffs https://docs.sikemux.com/agents/worktrees-and-handoffs . Sub-Millisecond Deterministic Guardrails Outside Model Context Thinning cognition only holds when verification and security run outside model context: 1. Blind-fill vault: Agents use opaque vault: