You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
G8 Agent slot counting: one source (server.agentSlots) #849
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Problem: three things count "how many agents are running": server.agentSlots, an agent-slots hook, and a hand-kept line in the orchestrator's private state file. They can disagree, and the orchestrator has to reconcile them by hand from the live thread list.
Done when:server.agentSlots is the only count; the hook and every tool read it; the state file no longer keeps a slot line; a test proves that a crashed or finished child frees its slot.
Working on the first part: the agent-slots hook reads the server's slot gate count (server.agentSlots) instead of counting processes. The server writes that count to a file next to server-runtime.json, and the hook reads that file. One fork PR.
Working on the next part ("every tool reads it", left by #1292): fork-kit/heavy's agent-slots hook still counts pgrep processes. It gets the same t3_server_state key and reads T3's slot gate count from agent-slots.json, and the reader moves to one shared file in fork-kit/common that both kits' hooks use, so the two hooks cannot disagree. One fork PR.
area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Activity
scuttletoby commentedon Nov 29, 2026
Working on the first part: the agent-slots hook reads the server's slot gate count (
server.agentSlots) instead of counting processes. The server writes that count to a file next to server-runtime.json, and the hook reads that file. One fork PR.🤖 Generated with Claude Code
agent-slots hook: read T3's slot gate count instead of counting proce…
scuttletoby commentedon Nov 29, 2026
Working on the next part ("every tool reads it", left by #1292): fork-kit/heavy's
agent-slotshook still countspgrepprocesses. It gets the samet3_server_statekey and reads T3's slot gate count fromagent-slots.json, and the reader moves to one shared file in fork-kit/common that both kits' hooks use, so the two hooks cannot disagree. One fork PR.🤖 Generated with Claude Code
agent-slots: heavy's hook reads T3's slot gate count too, through one…