pi-mono/packages/agent/test
Armin Ronacher 2498ca492e refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core
The agent loop is back to main's tool execution: it only exports runToolCall(), honors isError results, and passes structuredContent through afterToolCall. Nested calls (ctx.executeTool, ids, events with parentToolCallId, the nestedCalls record) live in coding-agent and start on the first call.

AgentSession no longer knows exec or tool_search. Tools adjust the declared loadout through a generic prepareLoadout hook, and codemode and tool_search use it like any other tool.

exec and tool_search move to built-in extensions under src/extensions/ and register inactive (defaultActive: false). The CLI loads them with MCP; SDK sessions add createCodemodeExtension(), createToolSearchExtension(), and createMcpExtension(). Extensions gain pi.getSettings() and model catalog and classifier access on ModelRegistry.
2026-09-27 21:15:56 +02:00
..
harness feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
utils feat(agent): add AgentHarness R2 minimal run 2026-08-14 16:18:33 +02:00
agent-loop.test.ts refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
agent.test.ts feat: expose provider stream events to extensions (#9901) 2026-09-23 16:03:30 +02:00
e2e.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
proxy.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00