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

@best

Ask HN: How do you manage your AI agents' context across clients and projects? 9 points · 6 comments

TL;DR The author, who works with AI agents across several clients, asks how others manage the context and past decisions that agents keep losing between sessions, tools and clients, and whether they paid for or built a tool for it. The thread is short (6 comments) and mostly describes low-tech setups: markdown files and wikis kept in project repos.

  • Re-explaining client rules and past decisions to agents is the author's main time cost.
  • The author asks how context reaches a new session, whether it carries between agent types such as Claude and Codex, and how it stays separate per client.
  • Also asked: what went wrong last time (a rejected approach reused, a decision forgotten) and how much time it cost.
  • The author is considering building a tool and asks whether others have paid for or built one.

Discussion The thread is small and practical. Commenters describe what they already do rather than debating the idea of a product. Answers center on keeping context in files close to the code: a gitignored architecture decision record directory, a resume-status doc, spec-driven design folders, and a Gitea wiki. The mood is matter-of-fact, with no one arguing against the premise.

  • Keep decisions and context as markdown files in the repo (many): Several commenters store architecture decisions, status notes and project rules as markdown inside each project, so each client or project keeps its own context. One commenter says they use a gitignored ADR directory in every repo and a gitignored status doc to resume work.
  • Spec-driven development tools reduce repeated explanations (some): One commenter recommends spec-driven design tools such as OpenSpec and similar kits, arguing they hold previous decisions and design context and stay in project repos, so projects don't contaminate each other.
  • A shared wiki that agents can reference (some): One commenter keeps a Gitea wiki and tells the agent to reference previous projects and standard setup principles when relevant.
  • A ready-made skills library is the base (a few): One commenter says their approach is based on Matt Pocock's skills library, a set of reusable agent instructions.
  • Models already pick up context natively (a few): One commenter says no extra tooling is needed because LLMs usually pick up the context they are given without special setup.

Links from the comments

#AIagents #contextManagement #llm #devTools #askHN