Skip to content

chore: add AI coding agent config files to .gitignore#188

Open
aftersnow wants to merge 1 commit intomainfrom
chore/gitignore-ai-agent-configs
Open

chore: add AI coding agent config files to .gitignore#188
aftersnow wants to merge 1 commit intomainfrom
chore/gitignore-ai-agent-configs

Conversation

@aftersnow
Copy link
Contributor

Summary

  • Add .gitignore entries for AI coding agent config files (Claude Code, Codex, Gemini CLI, Cursor, Windsurf, GitHub Copilot)
  • Keeps the repository clean from tool-specific local configuration files

Test plan

  • Verify .gitignore correctly ignores the listed files
  • Confirm no existing tracked files are affected

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, 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 focuses on maintaining a clean and organized repository by preventing the accidental tracking of local configuration files produced by AI coding agents. It introduces specific ignore patterns for common AI tool-related files and directories, ensuring that only relevant source code and project assets are managed by version control.

Highlights

  • .gitignore updates: Added new entries to .gitignore to exclude configuration files and directories generated by various AI coding agents, including Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and GitHub Copilot.
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.

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
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 adds several entries to the .gitignore file to ignore configuration files from various AI coding agents. While this is a good practice for keeping the repository clean from local configurations, one of the added entries, .github/copilot-instructions.md, is intended for repository-level configuration and should typically be version-controlled. Additionally, some other new entries are quite generic and might unintentionally ignore files that should be part of the repository.

@aftersnow aftersnow added the enhancement New feature or request label Mar 20, 2026
Ignore config files from Claude Code, Codex/AGENTS.md, Gemini CLI,
Cursor, Windsurf, and GitHub Copilot to keep them out of the repo.

Signed-off-by: Zhao Chen <winters.zc@antgroup.com>
@aftersnow aftersnow force-pushed the chore/gitignore-ai-agent-configs branch from b53be8d to 7313891 Compare March 20, 2026 10:18
@aftersnow aftersnow enabled auto-merge March 20, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant