Ask HN: How do you manage your AI agents' context across clients and projects?
103 pointsHi Guys,
like many of you I work with AI agents every day and across several clients.
The major time cost for me is to re-explaining context and past decisions, client rules, that we already do. To finish every tools as its own memory.
So I’m curious how you actually handle this:
1. When you start a new session, how do you give context to the agent (context came from chat, mail, ticket ...) ?
2. Do you use more than one agent type (claude, codex ...) ? And if yes, how do you carry context between agents ?
3. If you work for several clients, how do you keep their context separate ?
4. The last time something went wrong ( an agent used a rejected approach, forgot a decision ...), what happened, and how much time did it cost to you ?
5. Did you paid or built a tool that helped you with these problems ? Do you still use it ?
I’m exploring whether to build something, so I’m trying to learn how other people really work.
Thanks for your return.
Comments (75) 97 threads
Show all comments
Showing thread 6 of 97
Effectively I just need to connect the MCP and set the preferences/rules in the agent (codex, claude, opencode, etc.) to: "Read instructions and rules from PriBrain before doing anything." Its pricing is targeted at startups/SMBs, not freelancers, though (but we could arrange something if you're interested).
You can achieve a similar result with a markdown file and change "PriBrain" to that file path, then you just need to manage the core rules/instructions in a single place.
A great thing I leverage with PriBrain is using different PriBrain accounts per client, so each agent only gets the core rules/information for each client.
To your specific questions:
1. Just what's necessary. If it is a long wall of text I'll finish with "Read PriBrain first." just to make sure that initial instruction won't be ignored, because sometimes Claude and Codex will ignore them.
2. Yes. Similar answer, the shared brain.
3. I use separate Spaces (think of them as directories or some other kind of taxonomy).
4. Happens many times, but it's not related to the shared brain and that's why I verify work.
5. I used gbrain before and it still caused a lot of hallucinations, so I built my own solution.
Hopefully that helps.