Commit e9a439a
committed
feat: add repository context caching system for improved LLM performance
- Implement RepositoryContextManager to maintain complete project context
- Add configuration options for context management (enabled, maxFiles, includeFileContent, etc.)
- Integrate cached context into environment details sent to LLM
- Update system prompt to mention repository context feature
- Add comprehensive test suite for RepositoryContextManager
- Automatically update context on file changes with debouncing
- Support smart file selection based on relevance and patterns
- Extract code patterns (imports, definitions, APIs) for better context understanding
This addresses issue #7735 by providing a complete and updated repository context
for every LLM call, improving accuracy and reducing token consumption.1 parent e8deedd commit e9a439a
File tree
7 files changed
+840
-1
lines changed- packages/types/src
- src
- core
- context
- __tests__
- environment
- prompts/sections
- task
7 files changed
+840
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
155 | 168 | | |
156 | 169 | | |
157 | 170 | | |
| |||
0 commit comments