pi-mono/packages/coding-agent/src
Aliou Diallo bfa11a50e4
feat(agent,coding-agent): per-tool executionMode override for sequential tool execution (#3345)
* feat(agent,coding-agent): add per-tool executionMode field to AgentTool and ToolDefinition

Add optional executionMode?: ToolExecutionMode to AgentTool and
ToolDefinition interfaces. Propagate through wrapToolDefinition and
createToolDefinitionFromAgentTool. No behavioral change yet — agent
loop will read this field in a follow-up.

* feat(agent): support per-tool executionMode override for sequential execution

When a tool defines executionMode='sequential', the agent loop
forces sequential execution of all tool calls in that batch,
even if the global config is parallel.

* feat(coding-agent): re-export ToolExecutionMode from @mariozechner/pi-agent-core

Makes the type available to extensions that want to set
executionMode on tool definitions.

* feat(coding-agent): add tic-tac-toe extension example with executionMode: sequential

Demonstrates per-tool executionMode: the agent plays via move/play
tool calls that share a cursor. Without sequential execution, play
can resolve before earlier moves finish, landing on the wrong cell.
2026-04-18 00:45:57 +02:00
..
bun fix(coding-agent): suppress process warnings in CLI closes #2404 2026-03-19 22:21:48 +01:00
cli feat(coding-agent): add --no-context-files flag 2026-04-16 10:59:32 +02:00
core feat(agent,coding-agent): per-tool executionMode override for sequential tool execution (#3345) 2026-04-18 00:45:57 +02:00
modes fix(coding-agent): keep scoped-model reorder inert in implicit all-enabled state closes #3331 2026-04-17 16:58:49 +02:00
utils fix(coding-agent): kill tracked detached bash children on shutdown 2026-04-16 00:12:14 +02:00
cli.ts feat(coding-agent): set PI_CODING_AGENT=true env var at startup 2026-04-09 03:03:19 +02:00
config.ts fix(coding-agent): honor PI_PACKAGE_DIR for bun asset paths closes #3074 2026-04-17 00:38:34 +02:00
index.ts feat(agent,coding-agent): per-tool executionMode override for sequential tool execution (#3345) 2026-04-18 00:45:57 +02:00
main.ts feat(coding-agent): add --no-context-files flag 2026-04-16 10:59:32 +02:00
migrations.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00
package-manager-cli.ts refactor(coding-agent): replace AgentSessionRuntimeHost with closure-based AgentSessionRuntime 2026-04-03 20:14:12 +02:00