1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/// Built-in ignore patterns for files that shouldn't be included in AI context.
pub const DEFAULT_IGNORES: &[&str] = &[
// Version control
".git/",
".svn/",
".hg/",
".bzr/",
".darcs/",
".husky/",
// IDE/Editor directories
".vscode/",
".idea/",
".vs/",
".vscode-test/",
".sublime-project",
".sublime-workspace",
"*.swp",
"*.swo",
// Lock files
"*.lock",
"*.lockb",
"package-lock.json",
"yarn.lock",
"poetry.lock",
"Gemfile.lock",
"pnpm-lock.yaml",
"bun.lockb",
"Cargo.lock",
"Pipfile.lock",
// Dependencies & build outputs
"node_modules/",
"vendor/",
"Pods/",
"Carthage/",
"dist/",
"build/",
"out/",
"target/",
".next/",
".nuxt/",
"coverage/",
".nyc_output/",
".gradle/",
"gradle/",
".m2/",
".cargo/",
// Cache & temporary directories
".cache/",
"cache/",
"tmp/",
"temp/",
".tmp/",
".temp/",
"*.cache",
// Build caches & incremental build files
"*.tsbuildinfo",
".eslintcache",
".parcel-cache/",
".webpack/",
".rollup.cache/",
// Environment files & secrets
".env",
".env.*",
".env.local",
"secrets/",
"private/",
// Test outputs & coverage
"test-results/",
"spec-results/",
".coverage",
"htmlcov/",
// Python environments
"venv/",
".venv/",
"env/",
"__pycache__/",
".mypy_cache/",
".pytest_cache/",
".tox/",
// Document files
"*.pdf",
"*.docx",
"*.doc",
"*.xls",
"*.xlsx",
"*.ppt",
"*.pptx",
// Image files
"*.png",
"*.jpg",
"*.jpeg",
"*.gif",
"*.bmp",
"*.tiff",
"*.ico",
"*.webp",
"*.svg",
// Media files
"*.mp3",
"*.mp4",
"*.avi",
"*.mov",
"*.wmv",
"*.webm",
"*.m4a",
"*.m4v",
// Binary & system files
"*.so",
"*.dll",
"*.dylib",
"*.lib",
"*.exe",
"*.bin",
// Archives
"*.tar",
"*.gz",
"*.bz2",
"*.tgz",
"*.zip",
"*.rar",
"*.7z",
"*.dmg",
"*.pkg",
"*.msi",
"*.deb",
"*.rpm",
"*.iso",
"*.img",
// Compiled files
"*.pyc",
"*.pyo",
"*.o",
"*.obj",
"*.class",
"*.jar",
"*.war",
"*.ear",
// Data files
"*.h5",
"*.hdf5",
"*.pkl",
"*.sqlite",
"*.sqlite3",
"*.db",
"*.joblib",
"*.mat",
"*.npz",
"*.npy",
// Font files
"*.woff",
"*.woff2",
"*.ttf",
"*.eot",
"*.otf",
// Virtual machine files
"*.vdi",
"*.vhd",
"*.vmdk",
"*.qcow2",
// Security files
"*.crt",
"*.pem",
"*.key",
// System files
".DS_Store",
"Thumbs.db",
"Desktop.ini",
// Backup and temporary patterns
"*.tmp",
"*.temp",
"*.bak",
"*.backup",
"*~",
"*.orig",
"*.rej",
// Documentation directories (often auto-generated)
"docs/_build/",
"site/",
"_site/",
// Package artifacts
"*.whl",
"*.egg-info/",
"*.egg",
"*.dist-info/",
// Memory dumps & profiles
"*.stackdump",
"*.dmp",
"heapdump*",
];