Skip to content

GUT pi-embedded agent tools (web, browser, image, TTS)#67

Merged
alexey-pelykh merged 1 commit intomainfrom
gut-pi-embedded-agent-tools
Feb 27, 2026
Merged

GUT pi-embedded agent tools (web, browser, image, TTS)#67
alexey-pelykh merged 1 commit intomainfrom
gut-pi-embedded-agent-tools

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • Delete 11 pi-embedded agent tool source files + 14 test files + 2 cascading test files from src/agents/tools/ (~8,500 lines removed)
  • Inline coerceImageAssistantText into src/media-understanding/providers/image.ts (sole consumer)
  • Remove deleted tool imports/creation calls from openclaw-tools.ts (browser, image, TTS, web-fetch, web-search)
  • Clean up stale vi.mock() calls in test helpers and remove orphaned config.web-search-provider.test.ts
  • Keep agent-step.ts (issue proposed deletion, but runAgentStep has live consumer in sessions-send-tool.a2a.ts)

Deviation from issue spec

The issue classified agent-step.ts as fully GUT. Investigation found runAgentStep is actively used by sessions-send-tool.a2a.ts (KEEP file), so the file is retained.

Test plan

  • pnpm build passes
  • No stale imports to deleted modules (grep for web-fetch, browser-tool, image-tool, tts-tool, web-tools, web-search)
  • All openclaw-tools tests pass (13 files, 71 tests)
  • All pi-tools tests pass (3 files, 9 tests)
  • Baseline failure count unchanged (pre-existing flaky cron tests)

Closes #66

🤖 Generated with Claude Code

@alexey-pelykh alexey-pelykh enabled auto-merge (squash) February 27, 2026 15:21
@alexey-pelykh alexey-pelykh force-pushed the gut-pi-embedded-agent-tools branch from 5b6e693 to 52bb6d2 Compare February 27, 2026 15:22
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>
@alexey-pelykh alexey-pelykh force-pushed the gut-pi-embedded-agent-tools branch from 52bb6d2 to c526efd Compare February 27, 2026 15:26
@alexey-pelykh alexey-pelykh merged commit 978373a into main Feb 27, 2026
2 checks passed
@alexey-pelykh alexey-pelykh deleted the gut-pi-embedded-agent-tools branch February 27, 2026 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GUT pi-embedded agent tools (web, browser, image, TTS)

1 participant