mirror of
https://github.com/0xWheatyz/handler.git
synced 2026-08-30 03:31:36 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user