Skip to content

Add codex/agents to .gitignore#2990

Open
yaox12 wants to merge 2 commits into
NVIDIA:mainfrom
yaox12:xiny/update_gitignore
Open

Add codex/agents to .gitignore#2990
yaox12 wants to merge 2 commits into
NVIDIA:mainfrom
yaox12:xiny/update_gitignore

Conversation

@yaox12
Copy link
Copy Markdown
Member

@yaox12 yaox12 commented May 14, 2026

Description

Add more agent-related dirs/files to .gitignore. Remove the suffix / because they could be symlinks.

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Changes

Please list the changes introduced in this PR:

  • Change A
  • Change B

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

yaox12 added 2 commits May 13, 2026 23:21
Signed-off-by: Xin Yao <xiny@nvidia.com>
Signed-off-by: Xin Yao <xiny@nvidia.com>
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 14, 2026

Greptile Summary

This PR updates .gitignore to cover additional AI agent tooling directories and instruction files, and fixes the .claude/ pattern (directory-only) to .claude so it also matches symlinks.

  • Adds .agents, .codex, AGENTS.md, and CLAUDE.md as new ignore entries alongside the corrected .claude pattern.
  • AGENTS.md and CLAUDE.md are unanchored patterns (no leading /), so they will be ignored in any subdirectory as well as at the repo root — consistent with the existing convention in this file.

Confidence Score: 5/5

Safe to merge — only modifies .gitignore with no impact on build, tests, or source code.

The change is limited to five new/updated gitignore patterns. The fix from .claude/ to .claude is correct and intentional (symlink coverage), and the new entries follow the existing unanchored convention in the file.

No files require special attention.

Important Files Changed

Filename Overview
.gitignore Adds agent-related entries (.agents, .claude, .codex, AGENTS.md, CLAUDE.md) and fixes the .claude/ → .claude pattern to also match symlinks

Reviews (1): Last reviewed commit: "update .gitignore" | Re-trigger Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant