GUT pi-embedded agent tools (web, browser, image, TTS)#67
Merged
alexey-pelykh merged 1 commit intomainfrom Feb 27, 2026
Merged
Conversation
5b6e693 to
52bb6d2
Compare
Remove 11 pi-embedded agent tool source files, 15 test files, and 2 cascading test files from src/agents/tools/ (~8,500 lines). These tools provided web fetch/search, browser control, image analysis, TTS, and nested agent execution for OpenClaw's in-process LLM engine. RemoteClaw's CLI agents have native equivalents via MCP or built-in tooling — these are dead code. - Delete 11 source files: web-fetch, web-fetch-utils, web-fetch-visibility, web-search, web-shared, web-tools, browser-tool, browser-tool.schema, image-tool, image-tool.helpers, tts-tool - Delete 15 associated test files and 2 cascading test files (pi-tools browser test, config web-search-provider test) - Inline coerceImageAssistantText into media-understanding/providers/image.ts - Remove deleted tool imports and creation calls from openclaw-tools.ts - Clean up stale vi.mock() in test helpers (fast-tool-stubs, fast-core-tools) - Update pi-tools action-enum test to remove browser from expected tools Keep agent-step.ts: issue proposed full deletion, but runAgentStep has a live consumer in sessions-send-tool.a2a.ts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
52bb6d2 to
c526efd
Compare
This was referenced Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/agents/tools/(~8,500 lines removed)coerceImageAssistantTextintosrc/media-understanding/providers/image.ts(sole consumer)openclaw-tools.ts(browser, image, TTS, web-fetch, web-search)vi.mock()calls in test helpers and remove orphanedconfig.web-search-provider.test.tsagent-step.ts(issue proposed deletion, butrunAgentStephas live consumer insessions-send-tool.a2a.ts)Deviation from issue spec
The issue classified
agent-step.tsas fully GUT. Investigation foundrunAgentStepis actively used bysessions-send-tool.a2a.ts(KEEP file), so the file is retained.Test plan
pnpm buildpassesgrepforweb-fetch,browser-tool,image-tool,tts-tool,web-tools,web-search)openclaw-toolstests pass (13 files, 71 tests)pi-toolstests pass (3 files, 9 tests)Closes #66
🤖 Generated with Claude Code