On this page

0010. Agents are values, not processes

Context

Process-per-agent harnesses are heavy: a 2026 Claude Code bug report counted about 400 MB per subagent process. Measured for the review, an idle Node 22 process takes 43 MiB RSS and 30–36 ms to start, while an agent held as a value (a 256-byte record plus a 4 KiB arena) takes 4.25 KiB and 3–4 µs.

Decision

Alternatives considered

Consequences

Targets in M13.4: idle agent at or under 16 KiB, spawn or fork at or under 50 µs, at least 90% of shared-prefix tokens served from cache, and tool processes per repository rather than per agent.