Skip to content

refactor: Remove deprecated --all-files flag#11228

Merged
allenhutchison merged 5 commits intomainfrom
adh/7361-remove-all-files-flag
Oct 16, 2025
Merged

refactor: Remove deprecated --all-files flag#11228
allenhutchison merged 5 commits intomainfrom
adh/7361-remove-all-files-flag

Conversation

@allenhutchison
Copy link
Copy Markdown
Collaborator

Removes the deprecated --all-files / -a command-line flag and its corresponding fullContext logic throughout the codebase.

This flag was previously used to include all files in the current directory as context. This functionality is now handled more explicitly by using @ mentions (e.g., @**/*) within the prompt, providing users with more granular control.

This change removes the flag from:

  • CLI argument parsing
  • All related configuration interfaces and implementations
  • Associated logic in the environment context builder
  • All mentions in the documentation

Fixes #7361

Removes the deprecated `--all-files` / `-a` command-line flag and its corresponding `fullContext` logic throughout the codebase.

This flag was previously used to include all files in the current directory as context. This functionality is now handled more explicitly by using `@` mentions (e.g., `@**/*`) within the prompt, providing users with more granular control.

This change removes the flag from:
- CLI argument parsing
- All related configuration interfaces and implementations
- Associated logic in the environment context builder
- All mentions in the documentation

Fixes #7361
@allenhutchison allenhutchison requested a review from a team as a code owner October 15, 2025 20:34
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @allenhutchison, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request undertakes a significant refactoring effort to remove the deprecated --all-files command-line flag and its associated fullContext logic. The change aims to streamline how context is provided to the application, moving towards a more explicit and controlled mechanism using @ mentions directly within prompts. This ensures that the codebase is cleaner, more maintainable, and aligns with the current best practices for context management.

Highlights

  • Deprecated Flag Removal: The --all-files / -a command-line flag, which was previously used to include all files in the current directory as context, has been completely removed from the codebase.
  • Context Handling Refinement: The functionality of including all files as context is now exclusively handled by more granular @ mentions (e.g., @**/*) within the prompt, providing users with explicit control.
  • Codebase Cleanup: All corresponding fullContext logic, including CLI argument parsing, configuration interfaces, environment context builder, and related tests, has been systematically removed.
  • Documentation Updates: All mentions of the --all-files flag have been removed from the project's documentation to reflect the change.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request effectively removes the deprecated --all-files flag and its associated fullContext logic from the entire codebase. The changes are comprehensive, covering CLI argument parsing, configuration interfaces, business logic, tests, and documentation. The removal is clean and thorough. I've found one issue in the documentation where a markdown table has been broken during the changes, which I've provided a suggestion to fix.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 15, 2025

Size Change: -1.55 kB (-0.01%)

Total Size: 17.8 MB

Filename Size Change
./bundle/gemini.js 17.8 MB -1.55 kB (-0.01%)
ℹ️ View Unchanged
Filename Size
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB
./bundle/sandbox-macos-permissive-open.sb 830 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB

compressed-size-action

Copy link
Copy Markdown
Collaborator

@abhipatel12 abhipatel12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Small nit is that in a few places we seem to be deleting a line but replacing it with a newline instead.

- **`--all-files`** (**`-a`**):
- If set, recursively includes all files within the current directory as
context for the prompt.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: looks like we don't really add new lines for these flags in this section

- **`--all-files`** (**`-a`**):
- If set, recursively includes all files within the current directory as
context for the prompt.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same nit: we may not need a newline here

@allenhutchison allenhutchison added this pull request to the merge queue Oct 16, 2025
Merged via the queue into main with commit 937c15c Oct 16, 2025
20 checks passed
@allenhutchison allenhutchison deleted the adh/7361-remove-all-files-flag branch October 16, 2025 19:22
Millsondylan pushed a commit to Millsondylan/gemini-cli-1 that referenced this pull request Oct 19, 2025
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
catlog22 pushed a commit to catlog22/Claude-Code-Workflow that referenced this pull request Oct 21, 2025
## Major Changes

### Gemini CLI Integration (google-gemini/gemini-cli#11228)
- Migrate from wrapper scripts to native Gemini CLI v0.11.0-nightly
- Remove `-p` flag requirement for prompt strings
- Deprecate `gemini-wrapper` and `qwen-wrapper` scripts
- Update all commands and workflows to use direct CLI syntax

### Command Syntax Updates
- **Before**: `gemini -p "CONTEXT: @**/* prompt"`
- **After**: `gemini "CONTEXT: @**/* prompt"`
- Apply to all 70+ command files and workflow templates
- Maintain backward compatibility for Qwen fallback

### File Pattern Migration
- Replace `@{CLAUDE.md}` with `@CLAUDE.md`
- Replace `@{**/*}` with `@**/*`
- Update all file references to use direct @ notation
- Remove legacy brace syntax across all documentation

### Documentation Improvements
- Reorganize `intelligent-tools-strategy.md` structure
- Add Quick Start section with decision matrix
- Enhance `--include-directories` best practices
- Add comprehensive command templates and examples
- Improve navigation with clearer section hierarchy

### Files Modified (75+ files)
- Commands: All CLI commands updated (cli/, workflow/, task/, memory/)
- Workflows: Core strategy files and templates
- Agents: CLI execution agent and doc generator
- Templates: Planning roles and tech stack guides

## Breaking Changes
- Gemini CLI v0.11.0-nightly or later required
- Old wrapper scripts no longer supported
- Legacy `@{pattern}` syntax deprecated

## Migration Guide
Users should:
1. Update Gemini CLI to v0.11.0-nightly or later
2. Remove `-p` flag from existing commands
3. Update file patterns from `@{pattern}` to `@pattern`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants