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
Earlier commentsYour specific harness may or may not have rules you can set or hooks you can tie into. Don’t have one char do everything, have it delegate to specialists that read in specific context (eg: a client specific subagent with access to client context). Hooks can help trigger writes. So can rules.
2. Only Claude at the moment
3. Each has its own repo and own CLAUDE.md/AGENTS.md file. The CLAUDE.md file is just a lookup document.
The detailed project specific markdown are under the rules folder, e.g. "forms-and-dialogs.md", "roles.md", etc. These rules are always updated by the agent for all new features/bug fixes, etc.
I also instruct the agent to always keep detailed markdown in the docs folder, which is subdivided into: idea/plan/review. These get created when new features or other significant updates are implemented.
4. The agent so far has not failed to reference the above files, so it already knows what approach to do when working on a new task.
5. I built my own skills framework for this (inspired by Superpowers) and still using it.
2. For this I use slivingdoc[1], a MCP server which syncs context as plain text (with s3 as backend, or hosted for free up to 1 GB). So regardless of which agentic harness I use, I bring along the relevant context.
3. I use different slivingdoc spaces per customer
4. I keep sessions short and concise enough that it's not an issue.
5. I built all of my tools from scratch to fit my own workflow. But it's open source, if anyone wants to try it out.
[0]: https://www.clai.chat/#profiles [1]: https://www.slivingdoc.dev/
1. https://github.com/mattpocock/skills/blob/main/README.md
All comments shown.
Couldn't load more comments. Check your connection and try again.