gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Add the ability to add an exclude file e.g. `.aiexclude` in the settings

Open scottdensmore opened this issue 1 year ago • 7 comments

We don't currently have a concept like this baked into Gemini CLI. We should add this to the settings.json file and support. We would allow one and it should work similar to GEMINI.md. Adding

{
    .aiexclude
}

scottdensmore avatar May 31 '25 18:05 scottdensmore

what would this do?

olcan avatar May 31 '25 19:05 olcan

what would this do?

Most platforms have a variant of this. Here's ours: https://cloud.google.com/gemini/docs/codeassist/create-aiexclude-file

GH Copilot uses .copilotignore: https://docs.github.com/en/copilot/managing-copilot/configuring-and-auditing-content-exclusion/excluding-content-from-github-copilot

Cursor uses .cursorignore etc.

NTaylorMullen avatar May 31 '25 19:05 NTaylorMullen

Any objections to .geminiignore?

eddie-santos avatar Jun 04 '25 22:06 eddie-santos

Any objections to .geminiignore?

how rooted is .aiexclude in the Google stack?

NTaylorMullen avatar Jun 05 '25 05:06 NTaylorMullen

Any objections to .geminiignore?

how rooted is .aiexclude in the Google stack?

It's a documented feature of Code Assist.

mboshernitsan avatar Jun 09 '25 05:06 mboshernitsan

fixed with #1043

ptone avatar Jun 25 '25 23:06 ptone

So my understanding is that the fix both honours .geminiignore and .aiexclude. Am I right?

palladius avatar Jul 29 '25 10:07 palladius