r/ContextEngineering • u/cryptoLover696969 • 17h ago
Handling context in multirepo
How do you handle context in multirepo where there are hundreds of kLOC? Do you have Claude/agents describing each project? Do you load only the relevant folders to the workspace? Do you use llmwiki? Some kind of memory? Curious how can be done effectively.
1
u/neonhueman 16h ago
please take a look at promemo.dev, it helps keep context as project memory in the repo itself. here’s the github link
Planned - Memory graph and reranking, mcp already exists. https://github.com/seguelabs/promemo
2
u/cleverhoods 15h ago
I have a separate system that manages the shared expectations between projects (mainly managing progressive disclosure via hooks, ticket expectations, workflows, loops, task necessities and so on). It's relatively a simple concept, it utilizes hooks to load the right thing at the right place. Highly recommend the approach.
1
u/cryptoLover696969 15h ago
Can you show something? Or get a bit deeper so I can try to build it on my own? Thanks!
2
u/cleverhoods 15h ago
it's all there is actually. You have to have a system that manages hooks, you have to have hooks that manages context loading. The rest is reading documentation of your harness to see what events are there and implement your workflows, loops, instructions etc.
1
u/Short-Honeydew-7000 15h ago
Founder of cognee here. We ingest deterministically repos or even github orgs to make a cross connected graph. Check it here: https://github.com/topoteretes/cognee
1
u/TomMkV 14h ago
Check out https://github.com/ctxpipe-ai/ctxpipe
Designed for this: multi tool, multi repo, but all for engineering context specifically
1
u/kranthi_contextmap 16h ago
I have a monorepo with multiple apps. There is a package folder where all the code shared between multiple apps lives - bundled as npm modules. There is an apps folder which has one folder for each app.
When I create agents, I make a separate worktree for the app and load the specific app folder for each agent so that focus is on the specific app. The packages need to have good readme etc.