Document --tools flag investigation for Claude Code CLI v2.0.31#2947
Merged
Document --tools flag investigation for Claude Code CLI v2.0.31#2947
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Claude Code CLI to version 2.0.31
Document --tools flag investigation for Claude Code CLI v2.0.31
Nov 1, 2025
pelikhan
approved these changes
Nov 1, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR improves code documentation and formatting by adding comprehensive comments explaining the rationale for using --allowed-tools over the simpler --tools flag in Claude Code CLI integration, and removes trailing whitespace.
- Added detailed documentation explaining why
--allowed-toolsis used instead of the newer--toolsflag - Documented the fine-grained control capabilities that
--allowed-toolsprovides for security and flexibility - Removed trailing whitespace in JavaScript file
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/workflow/js/check_workflow_timestamp.cjs | Removed trailing whitespace from line 72 |
| pkg/workflow/claude_tools.go | Added function documentation explaining --allowed-tools rationale and usage |
| pkg/workflow/claude_engine.go | Added inline comment explaining why --allowed-tools is preferred over --tools |
| docs/src/content/docs/reference/engines.md | Added user-facing documentation note comparing --allowed-tools vs --tools |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Nov 1, 2025
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.
Claude Code CLI v2.0.31 introduced a
--toolsflag for simple tool specification. Investigated whether gh-aw should migrate from--allowed-toolsto the new flag.Decision
Continue using
--allowed-tools. The new--toolsflag only supports basic tool names ("Bash,Edit,Read") without pattern support.Why
--allowed-toolsis Requiredgh-aw needs fine-grained patterns that
--toolscannot provide:Bash(git:*),Bash(ls)mcp__github__get_issue,mcp__github__*Read(/tmp/gh-aw/cache-memory/*)Example from current implementation:
Changes
claude_engine.goandclaude_tools.goexplaining flag choice--toolsvs--allowed-toolstradeoffsFlag Comparison
--tools--allowed-toolsOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.