[PR #2668] Plugin tool system updates #10395

Closed
opened 2026-02-16 18:15:02 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2668

State: closed
Merged: Yes


Summary

  • Refactored plugin tool registration system to support both custom tools and plugin-defined tools
  • Added support for loading tools from .opencode/tool/ directories
  • Removed HTTP tool registration API in favor of direct plugin tool definitions
  • Updated plugin interface to include tool property for defining tools directly
  • Added new tool() helper function for creating type-safe tool definitions
  • Migrated from HTTP callback-based tools to native plugin tool execution

Changes

  • Modified ToolRegistry to load tools from filesystem and plugin definitions
  • Updated plugin system to expose tools through new tool property
  • Removed HTTP tool registration endpoints and related code
  • Added tool loading from .opencode/tool/*.{js,ts} files
  • Updated type definitions and exports for plugin tools
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2668 **State:** closed **Merged:** Yes --- ## Summary - Refactored plugin tool registration system to support both custom tools and plugin-defined tools - Added support for loading tools from `.opencode/tool/` directories - Removed HTTP tool registration API in favor of direct plugin tool definitions - Updated plugin interface to include `tool` property for defining tools directly - Added new `tool()` helper function for creating type-safe tool definitions - Migrated from HTTP callback-based tools to native plugin tool execution ## Changes - Modified `ToolRegistry` to load tools from filesystem and plugin definitions - Updated plugin system to expose tools through new `tool` property - Removed HTTP tool registration endpoints and related code - Added tool loading from `.opencode/tool/*.{js,ts}` files - Updated type definitions and exports for plugin tools
yindo added the pull-request label 2026-02-16 18:15:02 -05:00
yindo closed this issue 2026-02-16 18:15:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10395