Commit ff9fe80
Add repomap tool for AI-friendly code structure maps
Implement tree-sitter based repomap tool inspired by Aider's repomap.py.
Generates token-optimized code structure maps for AI-assisted development.
Implementation:
- Single-file repomap.py (~330 lines)
- Tree-sitter parsing for Python, TypeScript, JavaScript, Go, Shell
- Parallel processing for performance
- Respects .gitignore patterns
- CLI with --verbose, --max-file-size, --no-parallel options
- Comprehensive README with CI/CD examples
CLAUDE.md Configuration:
- Mandate repomap generation at session start (.repomap.txt)
- Define proactive usage scenarios (planning, reviews, refactoring)
- Specify regeneration triggers (file/class changes, before PRs)
- Integrate .repomap.txt into commit workflow
- Track .repomap.txt in git for project context
- Version bumped to 2.2.0
Files:
- repomap.py - Main implementation
- requirements.txt - Dependencies (tree-sitter + language grammars)
- README-repomap.md - Usage documentation
- .repomap.txt - Generated repository map
- .gitignore - Added repomap patterns
- CLAUDE.md - Updated with repomap workflow
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5b60ba1 commit ff9fe80
File tree
7 files changed
+854
-7
lines changed- docs/patterns
7 files changed
+854
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 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 | + | |
102 | 177 | | |
103 | 178 | | |
104 | 179 | | |
| |||
338 | 413 | | |
339 | 414 | | |
340 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
341 | 419 | | |
342 | 420 | | |
343 | 421 | | |
| |||
351 | 429 | | |
352 | 430 | | |
353 | 431 | | |
354 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
355 | 436 | | |
356 | 437 | | |
357 | | - | |
| 438 | + | |
358 | 439 | | |
359 | 440 | | |
360 | 441 | | |
361 | | - | |
362 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
363 | 447 | | |
364 | 448 | | |
365 | | - | |
| 449 | + | |
366 | 450 | | |
367 | 451 | | |
368 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments