Skip to content

Conversation

@ezynda3
Copy link
Contributor

@ezynda3 ezynda3 commented May 17, 2025

Summary

  • Add --allowedTools and --excludedTools flags to restrict which tools the AI assistant can use in non-interactive mode
  • Add --verbose flag to enable logging to stderr in non-interactive mode
  • Update README with documentation for the new flags

Test plan

  • Run OpenCode in non-interactive mode with --allowedTools=view,ls,glob to verify only those tools are available
  • Run OpenCode in non-interactive mode with --excludedTools=bash,edit to verify those tools are not available
  • Run OpenCode in non-interactive mode with --verbose to verify logs are printed to stderr

🤖 Generated with opencode

ezynda3 and others added 8 commits May 17, 2025 13:13
Add documentation for --allowedTools and --excludedTools flags that allow restricting which tools the AI assistant can use in non-interactive mode. Also document the --verbose flag for enabling logs.

🤖 Generated with opencode
Co-Authored-By: opencode <noreply@opencode.ai>
@adamdotdevin adamdotdevin merged commit 307982a into anomalyco:dev May 17, 2025
carabistouflette pushed a commit to carabistouflette/opencode that referenced this pull request Jun 16, 2025
randomm referenced this pull request in randomm/opencode Jan 9, 2026
…operations (#30)

- Replace broad text searches with filtered queries (--owner, --state, --project)
- Add 'Performance & Context Efficiency' section with clear patterns:
  - Context-efficient patterns: direct lookups, workspaces, filtered searches
  - Context-consuming anti-patterns to avoid (broad text search, unfiltered listings)
  - Complete search operator reference (-o, -s, -p, -t, -y, -l, -i)
- Emphasize workspace pattern as PRIMARY for repeated queries
- Update epic/project listing examples to use filtering
- Add visual hierarchy to query optimization (🏆 ✅ ⚠️ ❌)
- Expand from 414 to 532 lines with practical guidance

Aligns with official Shortcut CLI documentation and prevents operations
that would dump large result sets into AI context windows.
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.

2 participants