You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add --tools flag to serve, web, and TUI commands to enable selective tool access
control. The flag accepts comma-separated patterns to enable/disable tools.
Usage examples:
# Only allow read, write, and webfetch tools
opencode serve --tools='-*,read,write,webfetch'
# Disable specific tools
opencode web --tools='-bash,-edit'
# Use in TUI mode
opencode --tools='-*,read,write,webfetch'
Changes:
- Add --tools flag to serve, web, and TUI thread commands
- Implement Wildcard.parseToolsPattern() to parse tool enable/disable patterns
- Update Server.listen() to accept tools option
- Pass default tools to SessionPrompt.prompt() in server
- Add tests for parseToolsPattern()
Signed-off-by: Christian Stewart <[email protected]>
0 commit comments