pi-mono/packages/coding-agent/docs
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
..
images docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
cli-integration.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
cli.md refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
compaction.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
configuration.md feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
containerization.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
custom-provider.md feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
docs.json feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
environment-variables.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
extensions.md refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
how-pi-works.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
index.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
json.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
keybindings.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
llama-cpp.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
mcp.md refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
message-types.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
models.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
packages.md fix(coding-agent): prevent duplicate extension runtimes (closes #9863) 2026-09-23 15:33:56 +02:00
prompt-templates.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
providers.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
quickstart.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
rpc-commands.md feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
rpc-extension-ui.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
rpc.md feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
sdk.md refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
security.md feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
session-format.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
sessions.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
settings.md refactor(agent,coding-agent): isolate codemode, tool search, and MCP from the core 2026-09-27 21:15:56 +02:00
shell-aliases.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
skills.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
slash-commands.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
terminal-setup.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
termux.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
themes.md feat(coding-agent,tui): System theme (#10067) 2026-09-26 13:33:47 +02:00
tmux.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
tui.md feat(tui,coding-agent): add color values and theme styling (#8398) 2026-09-24 14:42:22 +02:00
usage.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
windows.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00