MHN

Ask HN: How do you manage your AI agents' context across clients and projects?

103 points by Michel_Aventin·23 days ago·Show in HN

Hi 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.

Add a comment on Hacker News →
3 of 75 commentsUpdating in the background
  1. I haven't used an AGENTS or CLAUDE file as much lately. I'm not sure how much more it helps, but generally I try to have one or more project md files. These are curated to whatever I am currently working on. Perhaps references to certain modules, commands, schemas for DB, etc.

    This way the agent doesn't get too much context it doesn't necessarily need.

    Again, not sure how much more effective or efficient it is but it seems to do better for my needs at least.

  2. When you say "context" do you essentially just mean skills? Like everything that goes to an agent is prompt right? So you want to know how we are managing a library of prompts (which the industry calls skills) so we don't type the same thing over and over?

    I created skillzmouse to do this:

    https://bitbucket.org/workingsoftware/skillzmouse/src/main/

    It's a git backed tool with a custom protocol that can be externally accessed over a Cloudflare tunnel.

    You an connect your sm client to any endpoint, and each endpoint runs a server inside a git repo, so you can have as many separate instances per client as you like, just switch your ~/.skillzmouse.json file and it will point to a different server.

    It also has a script distribution and patching system. Skills and scripts constitute what I would refer to as my "standard operating procedures" which broadly transcend harness (and I have used this with multiple harnesses).

    It "plugs in" by including a header at the top of AGENTS.md that tells the agent how to use it, and the first step is for the agent to load the agents skill, which is a bunch of stuff applicable everywhere, and then that also builds the skills header describing the list of skills, and then skills can refer to libs which are not listed and can be loaded on a case by case basis.

    I am not using it with multiple harnesses anymore though because I built a harness, which integrates skillzmouse and has "factory workflows" that are loaded as skillzmouse scripts. My harness can be described as "deterministic control of intelligent agents", ie. the agent can't spawn sub agents, the agents can't talk to each other, and the workflow scripts can build and pass context in a deterministic way between sessions that are created during the execution of a given workflow.

    But you could use skillzmouse in any harness. I've used it in pi, Junie and Kimi Code. Junie CLI had problems with compliance.

  3. Some of my current toolchain:

    • I'm currently using Sentry's dotagents to share skills and pin versions
    • I avoid a centralized "single brain" and instead have started a "knowledge" directory in each repo. I copy relevant learnings in so stuff stays isolated
    • I use an OSS tool from my company to turn anything that could be enforced by code into something that can be enforced by code (keeps the markdown files leaner)
    • My daily driver is cmux with a silly amount of sessions, so I'm constantly throwing away sessions and keeping context small