pi bridge: activate the full built-in tool set (grep/find/ls)

pi ships seven built-in tools but activates only read/write/edit/bash by
default. The --tools flag can't fix this (it is a strict allowlist that drops
extension tools — verified against a live endpoint), so the bridge calls
setActiveTools with everything registered at session start: all seven built-ins
plus ask_operator and the four memory tools. Verified live: the model now
receives all twelve tool definitions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KdGv3u3DfTsP1S188KDhVH
This commit is contained in:
Claude
2026-08-12 18:27:17 +00:00
parent a3a5c272a2
commit 887576bf22
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -106,6 +106,9 @@ def test_write_config_renders_provider_and_bridge(pi_env, tmp_path):
assert "handler.hooks" in text
assert "handler.mcpserver" in text
assert "ask_operator" in text
# Tool parity: the bridge activates pi's full built-in set (grep/find/ls are off
# by default) alongside its own tools.
assert "setActiveTools" in text
assert (base / "APPEND_SYSTEM.md").read_text().strip()