Working with Large Projects
LevelCode works on large repos (we test against VS Code). If it wanders or burns credits, try these.
Directory-Based Approach
Start LevelCode in the part of the repo you care about:
cd backendlevelcode
Or set --cwd:
levelcode --cwd backend
This keeps the context tight.
Knowledge Organization
For big trees, keep knowledge close to the code:
-
Add
knowledge.mdfiles in important subdirectories:services/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 LevelCode to load more files
Performance Tips
- Trim noise with
.levelcodeignoreand.gitignore - Start in the most relevant subdirectory
- Split broad refactors into stages
- Let LevelCode handle file discovery instead of pasting long file lists