Working with Large Projects
Codebuff works on large repos (we test against VS Code). If it wanders or burns credits, try these.
Directory-Based Approach
Start Codebuff in the part of the repo you care about:
bash
cd backendcodebuff
Or set --cwd:
bash
codebuff --cwd backend
This keeps the context tight.
Knowledge Organization
For big trees, keep knowledge close to the code:
-
Add
knowledge.mdfiles in important subdirectories:textservices/auth-service/knowledge.mdsrc/user-service/knowledge.mdsrc/api-gateway/knowledge.mdsrc/ -
Keep each file focused on that area
-
Link related files when the areas overlap
-
Use the root
knowledge.mdfor cross-cutting notes
Effective Communication
When asking for work in a large repo:
- Point to exact paths
- Mention related files up front
- Break large changes into smaller requests
- Use
--maxwhen you need Codebuff to load more files
Performance Tips
- Trim noise with
.codebuffignoreand.gitignore - Start in the most relevant subdirectory
- Split broad refactors into stages
- Let Codebuff handle file discovery instead of pasting long file lists