Skip to content

[ca] Update Claude Code CLI to v2.0.31 #2938

@github-actions

Description

@github-actions

Update Claude Code CLI to v2.0.31

Summary

Claude Code has been updated from 2.0.302.0.31. This update includes a new CLI flag for tool specification.

Version Details

  • Previous: 2.0.30
  • New: 2.0.31
  • Released: 2025-10-31 (redacted) UTC (Oct 31, 2025 at (redacted) PM UTC)
  • Time Since Previous: ~1 day (2.0.30 was released Oct 30, 2025)

Changes

New Features

New CLI Flag: --tools

  • Description: Specify the list of available tools from the built-in set
  • Usage: --tools <tools...>
  • Options:
    • "" - Disable all tools
    • "default" - Use all tools
    • Tool names - e.g. "Bash,Edit,Read"
  • Constraint: Only works with --print mode
  • Impact: Provides fine-grained control over which tools are available during non-interactive execution

Breaking Changes

None detected.

Bug Fixes

Not specified in release notes.

Security Updates

No CVEs or security patches mentioned.

CLI Discovery

New command-line flag identified via claude --help comparison:

+ --tools <tools...>                                Specify the list of available tools from the built-in set. Use "" to disable all tools, "default" to use all tools, or specify tool names (e.g. "Bash,Edit,Read"). Only works with --print mode.

Previous help output: /tmp/gh-aw/cache-memory/claude-code-2.0.30-help.txt
Current help output: /tmp/gh-aw/cache-memory/claude-code-2.0.31-help.txt

Impact Assessment

  • Risk Level: Low
  • Affected Features:
    • Claude engine execution in --print mode
    • Tool restriction/allowance during non-interactive sessions
  • Migration Required: No
  • gh-aw Compatibility: Fully compatible - new flag is optional

Files Modified

  • pkg/constants/constants.go - Updated DefaultClaudeCodeVersion constant
  • 22 workflow .lock.yml files - Recompiled with new version

Verification

make recompile completed (64/65 workflows compiled successfully)
✅ Git status shows 23 files modified (1 constants + 22 workflows)
✅ No breaking changes detected
✅ Help output cached for future comparisons

Note: 1 workflow compilation error (changeset-generator.firewall.md) is unrelated to this version update - it's a pre-existing issue.

Changelog Links

Recommendations

  1. ✅ Update constants file (completed)
  2. ✅ Recompile workflows (completed)
  3. ⏳ Review and merge this update
  4. 📝 Consider documenting the new --tools flag in Claude engine documentation if we expose it to users
  5. 🧪 Test the new flag in non-interactive mode if relevant to gh-aw workflows

Intermediate Versions

Only one version between 2.0.30 and 2.0.31:

  • 2.0.31 (2025-10-31 (redacted) UTC) - Current update

Context

  • Repository: githubnext/gh-aw
  • Workflow Run: #18998462979
  • Date: 2025-11-01

AI generated by CLI Version Checker

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions