<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Naman Jain</title>
    <description>The latest articles on DEV Community by Naman Jain (@naman_here).</description>
    <link>https://dev.to/naman_here</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3974293%2F965dd5b5-974a-4185-b472-89ae60c5f0ac.png</url>
      <title>DEV Community: Naman Jain</title>
      <link>https://dev.to/naman_here</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/naman_here"/>
    <language>en</language>
    <item>
      <title>Best tools to give AI coding agents context (2026)</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Tue, 17 Nov 2026 04:02:33 +0000</pubDate>
      <link>https://dev.to/naman_here/best-tools-to-give-ai-coding-agents-context-2026-1onb</link>
      <guid>https://dev.to/naman_here/best-tools-to-give-ai-coding-agents-context-2026-1onb</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;An AI coding agent starts every session blank. It knows the language, the framework, and roughly how software works. It does not know that your team moved off styled-components in March, that money is always integer paise, or that the payments module is frozen until the audit clears. Every one of those gaps becomes a wrong assumption, and wrong assumptions at machine speed are expensive.&lt;/p&gt;

&lt;p&gt;Humans have the same problem, and it already costs plenty: in Stack Overflow's &lt;a href="https://stackoverflow.co/internal/resources/your-developers-deserve-better-insights-from-the-2024-developer-survey/" rel="noopener noreferrer"&gt;2024 developer survey&lt;/a&gt;, 53% of developers said waiting on answers to questions disrupts their workflow. Agents can't wait for answers. They guess.&lt;/p&gt;

&lt;p&gt;So the question every team hits within a month of adopting agents: how do we give them our context? Below are the eight approaches that matter in 2026, ranked by fit for that job. One of them is ours; I've placed it where I honestly think it belongs, and said plainly what it doesn't do yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 8 approaches compared
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;What it carries&lt;/th&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Staleness risk&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AGENTS.md / CLAUDE.md&lt;/td&gt;
&lt;td&gt;Constants: commands, invariants, map, boundaries&lt;/td&gt;
&lt;td&gt;Repo, shared via git&lt;/td&gt;
&lt;td&gt;High for anything that changes; only as fresh as the last commit&lt;/td&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code memory&lt;/td&gt;
&lt;td&gt;Your instructions plus Claude's own notes across sessions&lt;/td&gt;
&lt;td&gt;CLAUDE.md shared; auto memory per user, per machine&lt;/td&gt;
&lt;td&gt;Medium; auto memory is pruned by Claude, not reviewed by the team&lt;/td&gt;
&lt;td&gt;Included with Claude Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor rules&lt;/td&gt;
&lt;td&gt;Scoped rules loaded by path, relevance, or always&lt;/td&gt;
&lt;td&gt;Project or org (Team Rules)&lt;/td&gt;
&lt;td&gt;High; static files, same as AGENTS.md&lt;/td&gt;
&lt;td&gt;Included with Cursor&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Copilot instructions and Memory&lt;/td&gt;
&lt;td&gt;Instruction files plus repo facts Copilot learns&lt;/td&gt;
&lt;td&gt;Repo; Memory shared across users, Copilot only&lt;/td&gt;
&lt;td&gt;Medium; memories cite code and expire after 28 days unused&lt;/td&gt;
&lt;td&gt;Included with Copilot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP servers&lt;/td&gt;
&lt;td&gt;Live data: tickets, errors, docs, schemas&lt;/td&gt;
&lt;td&gt;Whatever the server exposes&lt;/td&gt;
&lt;td&gt;Low for live data; depends on the source&lt;/td&gt;
&lt;td&gt;Free protocol; servers vary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lockstep (decision memory)&lt;/td&gt;
&lt;td&gt;Approved decisions with owner, rationale, status&lt;/td&gt;
&lt;td&gt;Team, across repos and agents&lt;/td&gt;
&lt;td&gt;Low; decisions are approved and replaced explicitly&lt;/td&gt;
&lt;td&gt;Open source, hosted or self-hosted&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAG over your docs&lt;/td&gt;
&lt;td&gt;Anything written in your wiki and docs&lt;/td&gt;
&lt;td&gt;Whatever you index&lt;/td&gt;
&lt;td&gt;High; retrieval can't tell current from outdated&lt;/td&gt;
&lt;td&gt;Build and maintain a pipeline&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Swimm&lt;/td&gt;
&lt;td&gt;Code understanding, especially legacy systems&lt;/td&gt;
&lt;td&gt;Codebase&lt;/td&gt;
&lt;td&gt;Low for code facts; doesn't cover decisions outside code&lt;/td&gt;
&lt;td&gt;Commercial&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The list
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. AGENTS.md and CLAUDE.md files
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://agents.md" rel="noopener noreferrer"&gt;AGENTS.md&lt;/a&gt; is the baseline, and it's ranked first because everything else builds on it. It's a plain markdown file at the repository root, published as an open standard in August 2025 by a group including OpenAI, Google, Cursor, and Sourcegraph, and now stewarded under the Linux Foundation. Codex, Cursor, Copilot, Windsurf, and most other agents read it natively, and since v2.1.277 &lt;a href="https://code.claude.com/docs/en/memory#agents-md" rel="noopener noreferrer"&gt;Claude Code does too&lt;/a&gt;, as long as there's no CLAUDE.md alongside it (if there is, an &lt;code&gt;@AGENTS.md&lt;/code&gt; import in CLAUDE.md fixes it). It's free, version-controlled, and vendor-neutral, and it's the right home for constants: commands, invariants, directory maps, boundaries. Its limit is structural, not fixable by better writing: it's read once at session start, it can't notify anyone when it changes, and anything with a shelf life rots in it. I wrote a full guide to &lt;a href="https://www.getlockstep.dev/blog/agents-md" rel="noopener noreferrer"&gt;what belongs in an AGENTS.md and what doesn't&lt;/a&gt;. Write one this week if you haven't. Then keep reading, because it can't do the whole job.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Claude Code memory
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code's memory system&lt;/a&gt; has two layers. The first is CLAUDE.md files you write (or an AGENTS.md it reads in their place), resolved hierarchically (organization, user, project) so personal preferences and team rules compose. The second, auto memory, is on by default in local sessions: Claude writes notes for itself as it works, things like build quirks, debugging insights, and corrections you made, and carries them across sessions without you writing anything. The first 200 lines (or 25KB) of its memory index load into every session. It's one of the most complete native memories of any coding agent today. The limits: it's Claude Code only, and auto memory is per-user. Your agent's hard-won knowledge about the codebase does not transfer to your teammate's agent. It solves "my agent keeps forgetting," not "my team's agents don't share a brain." (For the full picture of how these memory layers fit together, see &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory: why agents forget, and the fix&lt;/a&gt;.)&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Cursor rules
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://cursor.com/docs/rules" rel="noopener noreferrer"&gt;Cursor's rules system&lt;/a&gt; is the most fine-grained of the native options. Rules live as &lt;code&gt;.mdc&lt;/code&gt; files in &lt;code&gt;.cursor/rules&lt;/code&gt; with metadata controlling when each one loads (always, on matching paths, when the agent decides it's relevant, or only when @-mentioned), which keeps context spend proportional to the task. Cursor also reads AGENTS.md natively, including nested files in subdirectories, and Team Rules let an organization enforce rules across every project. What Cursor no longer has is an automatic memory layer: Memories, which extracted preferences from chats, was &lt;a href="https://forum.cursor.com/t/are-my-memories-gone/144057" rel="noopener noreferrer"&gt;removed starting in version 2.1&lt;/a&gt;, with Cursor staff pointing users to export them into rules. So everything Cursor knows about your team is something a person wrote into a file. Precise and shareable; just as static as AGENTS.md.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. GitHub Copilot instructions and Memory
&lt;/h3&gt;

&lt;p&gt;Copilot's approach is pragmatic breadth. It reads &lt;a href="https://docs.github.com/en/copilot/reference/custom-instructions-support" rel="noopener noreferrer"&gt;several kinds of instruction files&lt;/a&gt;: repository-wide instructions in &lt;code&gt;.github/copilot-instructions.md&lt;/code&gt;, path-specific &lt;code&gt;.instructions.md&lt;/code&gt; files that only load for matching globs, and, sensibly, AGENTS.md and even CLAUDE.md, so it piggybacks on whatever you've already written. Instructions can target specific surfaces, so the coding agent and the code reviewer can get different rules. If your team lives in the GitHub ecosystem, this is well-integrated and low-effort. Copilot also now has a memory layer: &lt;a href="https://docs.github.com/en/copilot/concepts/agents/copilot-memory" rel="noopener noreferrer"&gt;Copilot Memory&lt;/a&gt;, in public preview, stores repository facts (conventions, build commands, architectural decisions) that are shared with everyone who has access to that repository, and user-level preferences that stay private. Memories carry citations to the code that supports them, are re-validated before use, and expire after 28 days unused. That's the closest any native tool gets to team memory. The limit: it lives inside Copilot (cloud agent, code review, CLI, agentic autofix), so your Claude Code and Cursor sessions don't see it, and a fact inferred from code is not the same as a decision someone approved.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. MCP servers
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.getlockstep.dev/glossary/mcp" rel="noopener noreferrer"&gt;MCP&lt;/a&gt; changes the mechanic from push to pull. Instead of front-loading context into a file the agent may or may not need, an MCP server lets the agent query for context mid-session: fetch this ticket, check that error, read the current schema. The protocol is now the industry default: donated to the Linux Foundation in December 2025, with Anthropic's ecosystem update that month counting &lt;a href="https://workos.com/blog/everything-your-team-needs-to-know-about-mcp-in-2026" rel="noopener noreferrer"&gt;more than 10,000 active public servers&lt;/a&gt;. For team context specifically, MCP is the transport, not the answer: a filesystem or docs server gives your agent access to raw material, and raw material still has the RAG problem. Nothing marks what's current, decided, or binding. What MCP genuinely solves is freshness and reach. What you point it at determines everything else.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Lockstep
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.getlockstep.dev/how-it-works" rel="noopener noreferrer"&gt;Lockstep&lt;/a&gt; is ours, so read this entry with that in mind. It attacks one slice of the context problem: decisions. It captures decision-shaped statements from where they actually happen (Slack is the most mature path; Notion, Jira, Confluence, and Google Docs connectors are newer), plus pull requests, and routes each to its owner for one-click approval. Claude Code is briefed on the relevant decisions at session start, and any MCP-capable agent, Cursor included, can call &lt;code&gt;get_product_context&lt;/code&gt; for the approved decisions relevant to what it is touching. A PR check flags changes that may conflict with approved decisions; it warns by default, and blocking is opt-in. Honest limits: automatic session capture works in Claude Code only today, and Lockstep is early stage. We're onboarding design partners, not running at thousand-team scale. It's Apache-2.0, hosted or self-hosted. If your pain is stale files and agents shipping against last month's decisions, the pattern we call &lt;a href="https://www.getlockstep.dev/glossary/decision-drift" rel="noopener noreferrer"&gt;decision drift&lt;/a&gt;, this is the purpose-built option. If your pain is anything else on this list, it isn't.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. RAG over your docs
&lt;/h3&gt;

&lt;p&gt;The DIY route: embed your wiki, docs, and ADRs into a vector store, and let the agent search semantically, either through a homegrown pipeline or a docs MCP server. When your documentation is good and current, this works, and it handles fuzzy questions ("how do we do auth?") better than any keyword search. The failure mode is the one that matters: retrieval returns whatever was written, with no signal for whether it's still true, was ever approved, or has been superseded. A stale runbook and a current one embed equally well. You also own the pipeline forever: chunking, reindexing, permissions. I've written a longer comparison of &lt;a href="https://www.getlockstep.dev/blog/mcp-vs-rag" rel="noopener noreferrer"&gt;MCP and RAG for agent context&lt;/a&gt;; the short version is that RAG answers "what did we write?" when the question you need answered is "what do we currently believe?"&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Swimm
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://swimm.io" rel="noopener noreferrer"&gt;Swimm&lt;/a&gt; is last on this list only because the query is team context for agents, and that's not quite Swimm's job. Swimm started as code-coupled documentation and now positions itself as "agentic modernization": building verified understanding of legacy systems, which coding agents can query through an MCP portal. For teams modernizing a large legacy codebase, that's a genuinely strong choice. But it documents the code, and the context agents most often lack lives outside the code: the decisions, freezes, and trade-offs made in Slack and PRDs. We keep an honest side-by-side at &lt;a href="https://www.getlockstep.dev/vs/swimm" rel="noopener noreferrer"&gt;Lockstep vs Swimm&lt;/a&gt;; the two barely overlap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools for current docs and web context
&lt;/h2&gt;

&lt;p&gt;A large share of wrong agent code comes from stale knowledge of libraries and APIs, not from missing team context. These hosted MCP servers give an agent current documentation and the live web. Details are from each vendor's documentation, checked on 4 November 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it gives the agent&lt;/th&gt;
&lt;th&gt;Auth&lt;/th&gt;
&lt;th&gt;Claude Code install&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://context7.com" rel="noopener noreferrer"&gt;Context7&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Version-specific library docs and examples&lt;/td&gt;
&lt;td&gt;API key optional&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude mcp add --transport http context7 https://mcp.context7.com/mcp&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://docs.exa.ai/reference/exa-mcp" rel="noopener noreferrer"&gt;Exa&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Web search and page fetch; an agent tool when signed in&lt;/td&gt;
&lt;td&gt;Keyless at free limits, OAuth, or API key&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude plugin install exa@claude-plugins-official&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://docs.tavily.com/documentation/mcp" rel="noopener noreferrer"&gt;Tavily&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Search, extract, crawl, map, and multi-source research&lt;/td&gt;
&lt;td&gt;OAuth or API key; search and extract work keyless&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude mcp add tavily --transport http https://mcp.tavily.com/mcp/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://docs.firecrawl.dev/mcp-server" rel="noopener noreferrer"&gt;Firecrawl&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Scrape, crawl, map, search, and extract from websites&lt;/td&gt;
&lt;td&gt;Keyless with daily limits, OAuth, or API key&lt;/td&gt;
&lt;td&gt;Remote or local; see its docs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Pick Context7 when the problem is library APIs. Pick Exa or Tavily when the agent needs to search the web. Pick Firecrawl when it needs whole sites as clean content. Treat anything fetched from the web as untrusted input: a page can contain instructions aimed at the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codebase search across many repositories
&lt;/h2&gt;

&lt;p&gt;Inside one repository, the agent's own file search is usually enough. Across dozens of repositories it isn't, because the agent can't search code that isn't checked out. &lt;a href="https://sourcegraph.com/docs/api/mcp" rel="noopener noreferrer"&gt;Sourcegraph's official MCP server&lt;/a&gt; exposes code search, go-to-definition, find-references, and commit history across everything Sourcegraph indexes, with OAuth or access tokens. It is available on Enterprise plans.&lt;/p&gt;

&lt;p&gt;Code search answers how the code works today. It does not answer why it was built that way, or whether that is still the plan.&lt;/p&gt;

&lt;p&gt;For UI work, design context is its own stack: see &lt;a href="https://www.getlockstep.dev/blog/ai-coding-agents-design-context" rel="noopener noreferrer"&gt;how to give AI coding agents design context&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to choose
&lt;/h2&gt;

&lt;p&gt;Don't pick one. The tools above do three different jobs, and a sane 2026 setup layers them.&lt;/p&gt;

&lt;p&gt;Everyone starts with an AGENTS.md. It costs an afternoon, every agent reads it, and it's the right container for constants. Keep it brutally short.&lt;/p&gt;

&lt;p&gt;If you're one person, your agent's native memory (Claude Code auto memory, Copilot Memory) covers the rest; on Cursor, write it into rules. Let it accumulate; promote anything important into the shared file.&lt;/p&gt;

&lt;p&gt;If you're a team, the per-user, per-tool memory silo is your problem, and files alone won't fix it, because files can't carry things that change weekly. Add MCP for live context: start with your issue tracker and error tracking, then current library docs with Context7, and web search if agents need it. I keep a ranked list of &lt;a href="https://www.getlockstep.dev/blog/best-mcp-servers-engineering-teams" rel="noopener noreferrer"&gt;the best MCP servers for engineering teams&lt;/a&gt;, and a separate one for &lt;a href="https://www.getlockstep.dev/blog/best-mcp-memory-servers-teams" rel="noopener noreferrer"&gt;MCP memory servers&lt;/a&gt;. And if decisions specifically are what keep getting lost (made in Slack on Tuesday, violated by an agent on Thursday), that's the slice Lockstep was built for.&lt;/p&gt;

&lt;p&gt;The test for whether your setup works is simple: when a decision changes at 2pm, how does the agent session that starts at 2:05 find out? If the answer is "someone edits a file and hopes," you have a handbook and no standup. Get both.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Best MCP Servers for Product Engineers and Dev Teams (2026)</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:00:21 +0000</pubDate>
      <link>https://dev.to/naman_here/best-mcp-servers-for-product-engineers-and-dev-teams-2026-4ip4</link>
      <guid>https://dev.to/naman_here/best-mcp-servers-for-product-engineers-and-dev-teams-2026-4ip4</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/best-mcp-servers-engineering-teams" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Updated 4 November 2026 with a section for product engineers: Figma, PostHog, Stripe, and Vercel.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.getlockstep.dev/glossary/mcp" rel="noopener noreferrer"&gt;MCP&lt;/a&gt; went from Anthropic side project to industry plumbing in about eighteen months. It was donated to the Linux Foundation's Agentic AI Foundation in December 2025, and Anthropic's ecosystem update that month counted &lt;a href="https://workos.com/blog/everything-your-team-needs-to-know-about-mcp-in-2026" rel="noopener noreferrer"&gt;more than 10,000 active public servers&lt;/a&gt;. Which creates the actual problem: ten thousand servers, and your agent gets worse with every one you connect, because tool definitions eat context and tool choice degrades with crowding.&lt;/p&gt;

&lt;p&gt;So this is a short list, ranked by usefulness to a software team: how often the server gets called in a normal week, weighted by whether anything else could do the job. For each: what it exposes, how access works, and where it falls short. One entry is ours, placed where I think it honestly belongs.&lt;/p&gt;

&lt;p&gt;This list is about general engineering servers: code, browsers, errors, docs, trackers, chat. If you're specifically looking for servers that give agents persistent memory across sessions, that's a different category, and I compare those separately in &lt;a href="https://www.getlockstep.dev/blog/best-mcp-memory-servers-teams" rel="noopener noreferrer"&gt;the best MCP memory servers for teams&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 9 servers at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;Maintainer&lt;/th&gt;
&lt;th&gt;Hosted or local&lt;/th&gt;
&lt;th&gt;Auth&lt;/th&gt;
&lt;th&gt;Read/write&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;GitHub&lt;/td&gt;
&lt;td&gt;Both (hosted endpoint or Docker)&lt;/td&gt;
&lt;td&gt;OAuth or PAT&lt;/td&gt;
&lt;td&gt;Read-write (&lt;code&gt;--read-only&lt;/code&gt; flag)&lt;/td&gt;
&lt;td&gt;Code, PRs, issues, CI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Playwright&lt;/td&gt;
&lt;td&gt;Microsoft&lt;/td&gt;
&lt;td&gt;Local (&lt;code&gt;npx&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;None; runs your browser&lt;/td&gt;
&lt;td&gt;Read-write (drives a browser)&lt;/td&gt;
&lt;td&gt;Verifying UI changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Sentry&lt;/td&gt;
&lt;td&gt;Sentry&lt;/td&gt;
&lt;td&gt;Hosted, plus local stdio&lt;/td&gt;
&lt;td&gt;OAuth (hosted), user token (stdio)&lt;/td&gt;
&lt;td&gt;Mostly read, plus triage&lt;/td&gt;
&lt;td&gt;Debugging production errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Context7&lt;/td&gt;
&lt;td&gt;Upstash&lt;/td&gt;
&lt;td&gt;Hosted or local (&lt;code&gt;npx&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Optional API key&lt;/td&gt;
&lt;td&gt;Read-only&lt;/td&gt;
&lt;td&gt;Current library docs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Atlassian Rovo&lt;/td&gt;
&lt;td&gt;Atlassian&lt;/td&gt;
&lt;td&gt;Hosted, cloud only&lt;/td&gt;
&lt;td&gt;OAuth 2.1 or API token&lt;/td&gt;
&lt;td&gt;Read-write&lt;/td&gt;
&lt;td&gt;Jira and Confluence shops&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;Linear&lt;/td&gt;
&lt;td&gt;Linear&lt;/td&gt;
&lt;td&gt;Hosted&lt;/td&gt;
&lt;td&gt;OAuth 2.1 or API key&lt;/td&gt;
&lt;td&gt;Read-write (read-only endpoint)&lt;/td&gt;
&lt;td&gt;Linear shops&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;Slack&lt;/td&gt;
&lt;td&gt;Slack&lt;/td&gt;
&lt;td&gt;Hosted&lt;/td&gt;
&lt;td&gt;OAuth via approved Slack app&lt;/td&gt;
&lt;td&gt;Read-write&lt;/td&gt;
&lt;td&gt;Searching and posting in Slack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;Lockstep&lt;/td&gt;
&lt;td&gt;Lockstep (us)&lt;/td&gt;
&lt;td&gt;Hosted or self-hosted&lt;/td&gt;
&lt;td&gt;GitHub sign-in&lt;/td&gt;
&lt;td&gt;Reads approved decisions&lt;/td&gt;
&lt;td&gt;Decisions agents must follow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;Filesystem&lt;/td&gt;
&lt;td&gt;MCP project (reference)&lt;/td&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;td&gt;None; allowed roots set at launch&lt;/td&gt;
&lt;td&gt;Read-write&lt;/td&gt;
&lt;td&gt;Desktop clients without file tools&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The list
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. GitHub MCP server
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/github/github-mcp-server" rel="noopener noreferrer"&gt;GitHub's official server&lt;/a&gt; is the highest-frequency install for any team on GitHub, because it covers the surfaces agents already work on: browse and search code, manage issues and PRs, monitor Actions runs and build failures, and read security and Dependabot findings. Access is OAuth (GitHub's recommended option) or a personal access token, and it's sensible about scope: with a PAT, it detects your token's scopes and hides tools you can't use. Available remote (hosted by GitHub) or local via Docker. The main caution is its size: it exposes a lot of toolsets, and connecting all of them spends serious context. The defaults are &lt;code&gt;context&lt;/code&gt;, &lt;code&gt;repos&lt;/code&gt;, &lt;code&gt;issues&lt;/code&gt;, &lt;code&gt;pull_requests&lt;/code&gt;, and &lt;code&gt;users&lt;/code&gt;; enable others only when you use them, and add &lt;code&gt;--read-only&lt;/code&gt; if agents shouldn't write.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Playwright MCP
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/microsoft/playwright-mcp" rel="noopener noreferrer"&gt;Playwright MCP&lt;/a&gt; is Microsoft's official server for giving an agent a real browser. Its trick is driving pages through accessibility snapshots rather than screenshots, so it needs no vision model and runs fast and deterministically. Fifty-plus tools cover navigation, form filling, network mocking, storage, and tracing, across Chromium, Firefox, WebKit, and Edge, with screenshot-based vision available as an opt-in. For engineering teams the payoff is verification: an agent that just changed a UI can open the page and check its own work, which closes the loop that code-only agents leave open. It runs locally (&lt;code&gt;npx @playwright/mcp@latest&lt;/code&gt;), so access is whatever the browser can reach. Treat it as a real user session, because it is one. Limitation: it's a browser, not a test framework; durable test suites still need writing.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Sentry MCP
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://mcp.sentry.dev" rel="noopener noreferrer"&gt;Sentry's server&lt;/a&gt; answers the question agents are surprisingly good at when given the data: why is this breaking in production? It pulls full error context (stack traces, breadcrumbs, affected-user counts, frequency), searches issues across projects, and helps triage them. It's a remote server where &lt;a href="https://mcp.sentry.dev" rel="noopener noreferrer"&gt;all connections use OAuth&lt;/a&gt; against your existing Sentry org, so permissions follow your account; a &lt;a href="https://github.com/getsentry/sentry-mcp" rel="noopener noreferrer"&gt;local stdio mode&lt;/a&gt; with a user token exists for self-hosted setups. The debugging loop it enables is genuinely different: paste nothing, the agent fetches the error, reads the code, and proposes the fix with real context. Limitation: it's read-mostly middleware over the Sentry API. Indispensable if you run Sentry, no reason to exist if you don't.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Context7
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://context7.com" rel="noopener noreferrer"&gt;Context7&lt;/a&gt;, from Upstash, fixes a mundane, constant failure: agents hallucinating APIs from stale training data. It resolves a library name and pulls current, version-specific documentation and code examples straight into the prompt. Two tools (&lt;code&gt;resolve-library-id&lt;/code&gt; and &lt;code&gt;query-docs&lt;/code&gt;), one job. Connect to the hosted endpoint or run it locally via &lt;code&gt;npx -y @upstash/context7-mcp&lt;/code&gt;; the &lt;a href="https://github.com/upstash/context7" rel="noopener noreferrer"&gt;API key is optional&lt;/a&gt; and raises rate limits. For teams on fast-moving frameworks, this quietly removes a whole class of wrong code. Limitations: it covers public libraries, not your internal ones, and it's a fetch-docs tool. It knows what a library's docs say, not what your team decided about using it. For web search and crawling servers that do a similar job for the open web, see &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;the best tools to give AI coding agents context&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Atlassian Rovo MCP server
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://support.atlassian.com/atlassian-rovo-mcp-server/docs/getting-started-with-the-atlassian-remote-mcp-server/" rel="noopener noreferrer"&gt;Atlassian's hosted server&lt;/a&gt; connects Jira, Confluence, Jira Service Management, Bitbucket, and more to any MCP client via OAuth 2.1 or API tokens, with access respecting each user's existing permissions. Agents can search, summarize, create, and update issues and pages, which turns "file a ticket for this bug you just found" into a single tool call. For organizations already on Atlassian, this is the obvious tracker bridge. Limitations: it's cloud-only (Data Center users are out), and what it exposes is tickets and pages, meaning the agent still has to infer decisions from prose scattered across them.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Linear MCP server
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://linear.app/docs/mcp" rel="noopener noreferrer"&gt;Linear's server&lt;/a&gt; does for Linear shops what Atlassian's does for Jira shops, with characteristic economy: find, create, and update issues, projects, and comments through a hosted endpoint. Auth is OAuth 2.1 by default, with bearer tokens or API keys for automation, and a separate &lt;code&gt;/mcp/readonly&lt;/code&gt; endpoint when agents should only look. The fit with agent workflows is natural: an agent reviewing code files the bug it found, with context attached, in the tracker the team actually reads. Limitation is the flip side of Linear's focus: the surface is issues and projects. Specs and decision documents in Linear's docs features aren't the server's strong suit, and cross-tool context isn't its job.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Slack MCP server
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://docs.slack.dev/ai/slack-mcp-server/" rel="noopener noreferrer"&gt;Slack's official server&lt;/a&gt; reached GA in February 2026, after years of the community filling the gap. It lets agents search messages, files, and channels, read threads, post and schedule replies, and work with canvases, and it &lt;a href="https://docs.slack.dev/ai/slack-mcp-server/" rel="noopener noreferrer"&gt;lists Claude Code and Cursor among supported clients&lt;/a&gt;. Workspace admins approve each MCP client like any Slack app, and activity shows up in audit logs. It ranks seventh not because Slack matters little but because the context it exposes is the least structured on this list: the answer to "what did we decide about retries?" exists in some thread, and the agent gets to go fishing for it. As a messaging actuator (post the deploy summary, answer in-thread) it's excellent. As a memory, it's a haystack API. The structured version of that memory is what the next entry is for.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Lockstep MCP server
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.getlockstep.dev/how-it-works" rel="noopener noreferrer"&gt;Lockstep's server&lt;/a&gt; is ours, and it's the specialist on this list. It exposes decision memory: &lt;code&gt;get_product_context&lt;/code&gt; returns the approved decisions relevant to the code an agent is about to touch. The decisions get there by capture: from Slack (the most mature integration), with Notion, Jira, Confluence, and Google Docs connectors newer, plus GitHub PRs. Each is approved by its owner with one click before any agent is briefed on it, and a PR check flags changes that may conflict with an approved decision (it warns by default; blocking is opt-in). Any MCP client can call its tools; session-start briefings, automatic session capture, and managed team skills are Claude Code only today. It's Apache-2.0, with a hosted version or a self-hosted one you run yourself. Plainly, it's early stage. We're onboarding design partners. Ranked eighth on maturity, not relevance; if agents shipping against stale decisions is your specific problem, none of the servers above address it, and I've written about &lt;a href="https://www.getlockstep.dev/blog/mcp-vs-rag" rel="noopener noreferrer"&gt;why raw retrieval doesn't either&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Filesystem server
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem" rel="noopener noreferrer"&gt;reference filesystem server&lt;/a&gt; from the official &lt;code&gt;modelcontextprotocol/servers&lt;/code&gt; repo gives an agent scoped read/write access to local directories, with the allowed roots pinned at launch. It earned its ubiquity early, and it's still the cleanest way to give a desktop client like Claude Desktop controlled file access. It's last for one honest reason: the coding agents engineering teams actually use (Claude Code, Cursor, Copilot) ship with native file tools, making it redundant there. Install it for non-coding MCP clients that need to touch files; skip it everywhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best MCP servers for product engineers
&lt;/h2&gt;

&lt;p&gt;A product engineer owns a feature from design to the metric it moves, so the useful servers go past code. After the engineering core above, these four cover the rest of the loop. All four are official, hosted by the vendor, and authenticate with OAuth, so the agent gets the same access as your own account and no more.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Server&lt;/th&gt;
&lt;th&gt;What the agent can do&lt;/th&gt;
&lt;th&gt;Install in Claude Code&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Design&lt;/td&gt;
&lt;td&gt;Figma&lt;/td&gt;
&lt;td&gt;Read design context, variables, components, and layout from a file; write native content back to the canvas&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude plugin install figma@claude-plugins-official&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Measure&lt;/td&gt;
&lt;td&gt;PostHog&lt;/td&gt;
&lt;td&gt;Query analytics with HogQL, manage feature flags and experiments, look at error tracking&lt;/td&gt;
&lt;td&gt;&lt;code&gt;npx @posthog/wizard mcp add&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Charge&lt;/td&gt;
&lt;td&gt;Stripe&lt;/td&gt;
&lt;td&gt;Read and write Stripe objects, search Stripe docs, run analytics queries in preview&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude mcp add --transport http stripe https://mcp.stripe.com/&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ship&lt;/td&gt;
&lt;td&gt;Vercel&lt;/td&gt;
&lt;td&gt;Manage projects and deployments, read deployment logs, query Web Analytics, search docs&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude mcp add --transport http vercel https://mcp.vercel.com&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Figma.&lt;/strong&gt; The &lt;a href="https://developers.figma.com/docs/figma-mcp-server/" rel="noopener noreferrer"&gt;remote server&lt;/a&gt; at &lt;code&gt;mcp.figma.com/mcp&lt;/code&gt; gives the agent the design it is building from, instead of a screenshot pasted into chat. For pairing it with Code Connect, design tokens, and Storybook, see &lt;a href="https://www.getlockstep.dev/blog/ai-coding-agents-design-context" rel="noopener noreferrer"&gt;how to give AI coding agents design context&lt;/a&gt;. Writing to the canvas needs a Full seat; the desktop server needs a Dev or Full seat on a paid plan. Authenticate with &lt;code&gt;/mcp&lt;/code&gt; after installing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PostHog.&lt;/strong&gt; The &lt;a href="https://posthog.com/docs/model-context-protocol" rel="noopener noreferrer"&gt;hosted server&lt;/a&gt; at &lt;code&gt;mcp.posthog.com/mcp&lt;/code&gt; closes the loop from shipped to measured: the agent can check whether the flag is on and what the funnel did. Connecting is free, but some tools use PostHog's own AI and are billed as AI usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stripe.&lt;/strong&gt; The &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;Stripe server&lt;/a&gt; at &lt;code&gt;mcp.stripe.com&lt;/code&gt; reaches most of the API through two tools, &lt;code&gt;stripe_api_read&lt;/code&gt; and &lt;code&gt;stripe_api_write&lt;/code&gt;. Some actions, like refunds, need a human to approve them in the Dashboard. One date matters: from December 2026 the server stops accepting full-access secret keys and untagged restricted keys, so use OAuth or an agent API key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vercel.&lt;/strong&gt; The &lt;a href="https://vercel.com/docs/agent-resources/vercel-mcp" rel="noopener noreferrer"&gt;Vercel server&lt;/a&gt; at &lt;code&gt;mcp.vercel.com&lt;/code&gt; is useful when a deploy fails: the agent reads the build log and the code in the same session. It is available on all Vercel plans and acts with your account's access, so keep human confirmation on.&lt;/p&gt;

&lt;p&gt;The same advice about context applies here. Connect the servers for the stage you are working in, not all thirteen at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install config for Claude Code and Cursor
&lt;/h2&gt;

&lt;p&gt;Commands below are from each server's own docs as of October 2026. In Claude Code, run &lt;code&gt;claude mcp add&lt;/code&gt; in your terminal, then &lt;code&gt;/mcp&lt;/code&gt; inside a session to authenticate OAuth servers. In Cursor, servers go in &lt;a href="https://cursor.com/docs/context/mcp" rel="noopener noreferrer"&gt;&lt;code&gt;.cursor/mcp.json&lt;/code&gt;&lt;/a&gt; for one project or &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt; for all of them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt; (remote, with a personal access token; &lt;a href="https://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-claude.md" rel="noopener noreferrer"&gt;Claude&lt;/a&gt; and &lt;a href="https://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-cursor.md" rel="noopener noreferrer"&gt;Cursor&lt;/a&gt; guides):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add-json github &lt;span class="s1"&gt;'{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"github"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://api.githubcopilot.com/mcp/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer YOUR_GITHUB_PAT"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Playwright&lt;/strong&gt; (&lt;a href="https://github.com/microsoft/playwright-mcp" rel="noopener noreferrer"&gt;README&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add playwright npx @playwright/mcp@latest
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"playwright"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"@playwright/mcp@latest"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Sentry&lt;/strong&gt; (OAuth on first use; &lt;a href="https://mcp.sentry.dev" rel="noopener noreferrer"&gt;docs&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"sentry"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.sentry.dev/mcp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Context7&lt;/strong&gt; (drop the header to use it without a key; &lt;a href="https://context7.com/docs/resources/all-clients" rel="noopener noreferrer"&gt;client docs&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --header &lt;span class="s2"&gt;"Authorization: Bearer YOUR_API_KEY"&lt;/span&gt; --transport http context7 https://mcp.context7.com/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"context7"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://mcp.context7.com/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer YOUR_API_KEY"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Atlassian and Linear&lt;/strong&gt; (OAuth; Cursor users can install both from Cursor's MCP directory):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http atlassian https://mcp.atlassian.com/v2/mcp
claude mcp add --transport http linear-server https://mcp.linear.app/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Choosing without drowning your context window
&lt;/h2&gt;

&lt;p&gt;Every server you connect costs something before the first call: tool definitions load into the &lt;a href="https://www.getlockstep.dev/glossary/context-window" rel="noopener noreferrer"&gt;context window&lt;/a&gt;, and agents pick tools less reliably as the menu grows. The teams getting the most from MCP in 2026 run three or four servers per agent, not fifteen.&lt;/p&gt;

&lt;p&gt;A reasonable default stack: GitHub (or your forge), Playwright if you ship UI, Sentry if you run it, and your tracker. Product engineers swap in Figma or PostHog for the stage they're in. Add Context7 when framework hallucinations bite. Add Slack when agents need to post, not when they need to know. Add Lockstep when the failure you keep hitting is agents confidently violating something the team decided three weeks ago, the pattern we call &lt;a href="https://www.getlockstep.dev/glossary/decision-drift" rel="noopener noreferrer"&gt;decision drift&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And prefer OAuth-backed, permission-respecting servers for anything touching company data. The good vendors got this right; the long tail of the ten thousand has not.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>The CTO's playbook for AI coding agents at a 30-70 person company</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Sun, 15 Nov 2026 04:00:16 +0000</pubDate>
      <link>https://dev.to/naman_here/the-ctos-playbook-for-ai-coding-agents-at-a-30-70-person-company-2ooe</link>
      <guid>https://dev.to/naman_here/the-ctos-playbook-for-ai-coding-agents-at-a-30-70-person-company-2ooe</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/cto-playbook-ai-coding-agents" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A CTO at a 45-person company gets the same question from two directions in one week. The board asks how the AI rollout is going. A staff engineer asks why the agent in her repo keeps re-adding a dependency the team banned in July.&lt;/p&gt;

&lt;p&gt;The honest answer to both is the same: adoption happened, coordination did not. Four teams picked four setups. Three repos have a &lt;code&gt;CLAUDE.md&lt;/code&gt;, two have an &lt;code&gt;AGENTS.md&lt;/code&gt;, one has both and they disagree. The July dependency call lives in a meeting note that no agent has ever read.&lt;/p&gt;

&lt;p&gt;This is the normal state of a 30-70 person company six months into agents. It is also fixable, mostly with decisions rather than tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why 30-70 is the hard size
&lt;/h2&gt;

&lt;p&gt;Under 30, coordination is still atmospheric. People overhear decisions, the CTO is in every review that matters, and an agent that gets something wrong gets corrected by the person sitting next to it.&lt;/p&gt;

&lt;p&gt;Over 70, there is usually a platform team or at least a staff engineer whose job includes this infrastructure.&lt;/p&gt;

&lt;p&gt;In between, you have too many decisions for any one person's memory and no one whose job is the memory. Agents make the gap visible because they amplify whatever is written down, and at this size what is written down is incomplete, contradictory, or both. An agent with no decision record does not pause and ask. It picks something plausible and ships it at machine speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide once, company-wide
&lt;/h2&gt;

&lt;p&gt;Four decisions are worth making at the company level rather than letting each team rediscover them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which agents are sanctioned, and for what.&lt;/strong&gt; Not a procurement exercise: a short list everyone knows. Which tools, which models, and which kinds of work they may touch. Prototype code is a different risk class from billing logic, and the list should say so.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What agents may do unattended.&lt;/strong&gt; The usual line is that agents propose and humans merge, enforced by branch protection rather than by convention. Whatever line you draw, draw it explicitly, because the default is that each senior engineer draws their own and the org ends up with twelve policies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where instructions live.&lt;/strong&gt; One convention, not five. If agents read &lt;code&gt;CLAUDE.md&lt;/code&gt; or &lt;code&gt;AGENTS.md&lt;/code&gt; at startup, then every repo gets one, it is reviewed like code, and it points at the decision record instead of duplicating it. The failure mode of the alternative is documented in &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;: instruction files go stale the moment they try to be the decision log.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who owns the decision record.&lt;/strong&gt; Not who writes every entry. Who is accountable for the record existing, being current, and being where work happens. At this size that is usually the CTO or a head of engineering for the first year, explicitly, in writing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write down the short list
&lt;/h2&gt;

&lt;p&gt;You do not need to document everything. You need the calls that are expensive to violate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The pricing and packaging model, and what is frozen while it changes.&lt;/li&gt;
&lt;li&gt;Data boundaries: what customer data may touch which systems, and what may never leave.&lt;/li&gt;
&lt;li&gt;Architecture invariants: the queue technology, the auth pattern, the "we do not add a second" list.&lt;/li&gt;
&lt;li&gt;Security and compliance constraints that apply to every change.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For each: what was decided, why, what was rejected, who owns it, and its status. A reversed decision stays in the record, marked superseded, pointing at its replacement, because a deleted decision comes back as a fresh proposal argued by people who were not in the room. The format question is covered in &lt;a href="https://www.getlockstep.dev/blog/adrs-for-ai-coding-agents" rel="noopener noreferrer"&gt;ADRs for AI coding agents&lt;/a&gt; and the tooling comparison in &lt;a href="https://www.getlockstep.dev/blog/best-decision-log-tools-product-engineering" rel="noopener noreferrer"&gt;decision log software for product and engineering teams&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The location rule matters more than the format: the record has to live where agents read and humans review. A perfect log in a tool nobody opens during a pull request is decoration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Roll out in an order that survives contact
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One team, one repo, four weeks.&lt;/strong&gt; Pick the team with the most patient lead, not the most enthusiastic one. Give the repo a proper instruction file and a real decision record before the agent writes a line.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Measure rework, not volume.&lt;/strong&gt; Lines of agent-written code is a vanity number. Track how often agent PRs get reverted, how often review catches a decision conflict, and how long PRs wait for review. If review is the constraint, fix that first: smaller agent PRs with the reason attached, and the team's decisions in the same room as the review. What agents should carry into a task is mapped in &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;best tools for AI coding agent context&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Codify as you go.&lt;/strong&gt; Every time the pilot team corrects the agent twice on the same thing, that correction becomes a written instruction or a recorded decision. Two corrections is a pattern; a pattern is a policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then expand, team by team.&lt;/strong&gt; Each new repo gets the same starter: instruction file, decision record, named owner. New engineers joining a team with this in place onboard faster than they did before agents, because the briefing exists as an artifact instead of as a series of hallway conversations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks if you skip this
&lt;/h2&gt;

&lt;p&gt;The failure mode is not dramatic. It is drift, at machine speed. Each team's agents learn their local habits, the habits diverge, and six months later the services disagree about things the company decided once. Multi-agent setups make it sharper; &lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;multiple AI coding agents, one repo&lt;/a&gt; covers the shared-memory version of the same problem. By the time it shows up as an incident, the decisions were made correctly and the record simply never reached the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep is built for exactly this gap at exactly this size. It is a shared record of accepted product and engineering decisions, versioned so a reversed call points at its replacement. Engineers and agents get briefed on the decisions relevant to what they are touching when work starts, and a PR check flags changes that collide with a binding decision. One team and one repo is enough to start; company-wide onboarding is not required.&lt;/p&gt;

&lt;p&gt;The honest caveat: Lockstep is early stage, onboarding design partners, and the individual pilot starts with Claude Code. If that fits your rollout, it is the fastest way to give the playbook above a working record. If it does not, the playbook stands on its own with a wiki, ADR files, and discipline.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;At 30-70 people, your agents are only as coordinated as your decisions are written down. Decide the four company-level things once, record the short list of binding calls where work happens, pilot with one team, and measure rework. The companies that do this get compounding returns from agents. The rest get very fast drift.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Who wrote this code? AI provenance starts with the wrong question</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Sat, 14 Nov 2026 04:00:23 +0000</pubDate>
      <link>https://dev.to/naman_here/who-wrote-this-code-ai-provenance-starts-with-the-wrong-question-2jdb</link>
      <guid>https://dev.to/naman_here/who-wrote-this-code-ai-provenance-starts-with-the-wrong-question-2jdb</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/who-wrote-this-code-ai-provenance" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A customer loses access to a feature after a pricing change.&lt;/p&gt;

&lt;p&gt;The code path is easy to find. &lt;code&gt;git blame&lt;/code&gt; points to a commit from three weeks ago. The commit is clean: one eligibility condition changed, tests updated, pull request approved. The diff was written by an AI coding agent, but the commit sits under an engineer's name because that is how the work entered the repository.&lt;/p&gt;

&lt;p&gt;Now answer the question the customer actually forced onto the table: why did eligibility change?&lt;/p&gt;

&lt;p&gt;The commit message says "update plan checks." The issue says "align with new pricing." The agent transcript is gone. The Slack thread contains four proposals and no obvious verdict. Product remembers agreeing to one exception. Engineering remembers a different one. Everyone can see who touched the line. Nobody can prove which decision the line was supposed to implement.&lt;/p&gt;

&lt;p&gt;That is the provenance gap AI-generated code is exposing. We keep asking who wrote the code when the harder question is who decided what the code should mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  A commit is a location, not an explanation
&lt;/h2&gt;

&lt;p&gt;Git gives teams an excellent record of state. It shows that a file changed, which commit changed it, who authored and committed the snapshot, and how the repository moved from one version to the next.&lt;/p&gt;

&lt;p&gt;That record was never designed to carry the full chain of intent behind every line. Even with human-written code, the why leaks into issue trackers, planning docs, review comments, calls, and memory. AI agents widen the leak because one visible commit can compress an entire hidden process: prompt, retrieved context, tool calls, generated alternatives, test results, human corrections, and approval.&lt;/p&gt;

&lt;p&gt;Attribution metadata can recover part of this. The emerging &lt;a href="https://github.com/git-ai-project/git-ai/blob/main/specs/git%5Fai%5Fstandard%5Fv3.0.0.md" rel="noopener noreferrer"&gt;git-ai standard&lt;/a&gt;, for example, defines a way to record AI authorship information alongside Git work. That is useful. A team should be able to tell where AI contributed.&lt;/p&gt;

&lt;p&gt;But "an agent generated these lines" still does not tell you why the lines are right.&lt;/p&gt;

&lt;p&gt;The same model can implement two opposite pricing rules. The same agent can remove a feature because product cut it, or because it misunderstood an empty flag. Model identity answers an attribution question. It does not answer the decision question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four records, four different truths
&lt;/h2&gt;

&lt;p&gt;Teams are starting to group several kinds of traceability under the word provenance. Separating them makes the missing layer easier to see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commit provenance&lt;/strong&gt; tells you how the source tree changed: author, committer, timestamp, parent, diff.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agent provenance&lt;/strong&gt; tells you which model, agent, session, or prompt contributed to the change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Build provenance&lt;/strong&gt; tells you how source became an artifact. &lt;a href="https://slsa.dev/spec/v1.2/provenance" rel="noopener noreferrer"&gt;SLSA provenance&lt;/a&gt; is built around verifiable claims about where, when, and how an artifact was produced. &lt;a href="https://docs.github.com/en/actions/concepts/security/artifact-attestations" rel="noopener noreferrer"&gt;GitHub artifact attestations&lt;/a&gt; let a project establish signed provenance for binaries and container images.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Decision provenance&lt;/strong&gt; tells you why the change exists: the active team decision, its owner, its reason, the alternatives rejected, the evidence used, and the approval that allowed the agent to act.&lt;/p&gt;

&lt;p&gt;These records do not compete. They form a chain.&lt;/p&gt;

&lt;p&gt;A build attestation can help prove that an image came from a particular repository and workflow. GitHub is explicit that an attestation is a signed claim, not a guarantee that the artifact is safe. In the same way, an agent trace can prove that a model generated a patch without proving that the patch matches the product decision.&lt;/p&gt;

&lt;p&gt;You can have perfect artifact integrity and still ship the wrong pricing rule.&lt;/p&gt;

&lt;h2&gt;
  
  
  The missing link is the decision
&lt;/h2&gt;

&lt;p&gt;Imagine an agent receives this task: "Update the free plan eligibility logic."&lt;/p&gt;

&lt;p&gt;It searches the code, finds &lt;code&gt;isEligibleForFreePlan&lt;/code&gt;, notices that company accounts are excluded in one service but included in another, and makes them consistent. The tests pass. The change is technically coherent.&lt;/p&gt;

&lt;p&gt;What the agent did not see was the product call from last Tuesday: company accounts remain eligible during an ongoing migration because sales promised continuity to twelve customers. That exception lives in a meeting note and one message from the product lead. It never reached the agent.&lt;/p&gt;

&lt;p&gt;A useful provenance record would connect the resulting code to facts such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the request that triggered the change;&lt;/li&gt;
&lt;li&gt;the active pricing decision and the person who owns it;&lt;/li&gt;
&lt;li&gt;the migration promise that constrains eligibility;&lt;/li&gt;
&lt;li&gt;the alternative the team rejected and why;&lt;/li&gt;
&lt;li&gt;the files, tests, documents, and evidence the agent used;&lt;/li&gt;
&lt;li&gt;the review and approval that allowed the change to land;&lt;/li&gt;
&lt;li&gt;the commit, deployment, and customer-visible behavior that followed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without that chain, an audit trail becomes a pile of timestamps around an unexplained outcome.&lt;/p&gt;

&lt;p&gt;This is especially dangerous when several agents share a codebase. As we saw in &lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;the multi-agent memory problem&lt;/a&gt;, two agents can produce individually reasonable changes from different versions of the truth. Decision provenance lets a team detect that split after the fact. Shared decision memory prevents it before the code is written.&lt;/p&gt;

&lt;h2&gt;
  
  
  Saving every prompt will not fix this
&lt;/h2&gt;

&lt;p&gt;The obvious answer is to retain complete agent transcripts. Keep every prompt, response, tool call, and generated token. Then nothing is lost.&lt;/p&gt;

&lt;p&gt;Except the answer is still buried.&lt;/p&gt;

&lt;p&gt;A long transcript may show what the agent saw. It may not show which statement was authoritative, whether the underlying decision was still active, who owned it, or whether a human approved the final interpretation. Storing everything shifts the problem from missing evidence to unusable evidence.&lt;/p&gt;

&lt;p&gt;It creates a second problem too: agent sessions can contain credentials, customer data, copied messages, internal documents, and irrelevant context. Treating raw transcripts as the permanent company memory expands the privacy and security surface without guaranteeing that anyone can reconstruct the verdict later.&lt;/p&gt;

&lt;p&gt;Useful provenance is selective. Keep the evidence needed to explain the change, not every scrap that passed through the context window.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a team should record
&lt;/h2&gt;

&lt;p&gt;For consequential agent work, the provenance record needs a small set of linked facts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trigger.&lt;/strong&gt; What request or event started the work? This might be an issue, incident, customer commitment, or product change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Active decision.&lt;/strong&gt; What settled call was the agent expected to honor? State the verdict directly, not as a link to a conversation someone must re-read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Owner and approval.&lt;/strong&gt; Who had authority over the call, and what did they approve? Agent execution should not blur the difference between a suggestion, a delegated task, and an approved change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reason and rejected alternatives.&lt;/strong&gt; Why did the team choose this path, and what did it deliberately not choose? This stops a future agent from presenting a settled rejection as a new idea.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Evidence used.&lt;/strong&gt; Which code, tests, documents, incidents, and customer facts shaped the work? Evidence makes the path reviewable without preserving an entire session.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Agent contribution.&lt;/strong&gt; Which agent or model proposed or wrote what? This is where AI-specific attribution belongs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result.&lt;/strong&gt; Which commit, pull request, artifact, deployment, or product behavior came from the work?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Replacement history.&lt;/strong&gt; If the decision changes, what replaced it and why? Provenance that can be silently overwritten is only a current note wearing an audit-trail costume.&lt;/p&gt;

&lt;p&gt;This record should follow blast radius. A renamed local variable does not need a product decision attached. A pricing boundary, data-retention rule, public API shape, permission model, or customer promise does.&lt;/p&gt;

&lt;h2&gt;
  
  
  Provenance is a product question
&lt;/h2&gt;

&lt;p&gt;It is easy to make AI code provenance sound like a compliance feature for engineering. That framing is too narrow.&lt;/p&gt;

&lt;p&gt;When product asks why a feature was cut, the answer should connect the current behavior to the call that cut it. When support asks why one customer sees a different plan, the answer should point to the exception and its owner. When an engineering lead reviews a sweeping agent-generated change, the review should show which active decisions it touches. When a developer refactors the code six months later, the constraints should survive the rewrite.&lt;/p&gt;

&lt;p&gt;The whole team is asking different versions of the same question: can we trace this product behavior back to an intentional, owned decision?&lt;/p&gt;

&lt;p&gt;If the answer is no, knowing that Claude, Codex, or a human typed the line does not rescue the team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep gives teams a decision-memory layer for work done with AI coding agents. A decision is captured with its verdict and why, tied to an owner, ranked by blast radius, and preserved when a later decision replaces it. Through &lt;code&gt;get_product_context&lt;/code&gt;, any MCP-compatible agent can receive the relevant active decisions before it changes code.&lt;/p&gt;

&lt;p&gt;That creates both sides of useful provenance. Before the change, the agent gets the constraints it must honor. After the change, the team can trace the code back to the decision that shaped it, instead of searching old chats for a sentence that might have been the verdict.&lt;/p&gt;

&lt;p&gt;The next generation of codebases will contain more work produced by agents, more quickly, across more parts of the product. "Who wrote this line?" will matter.&lt;/p&gt;

&lt;p&gt;"Why does this line exist, and who decided it should?" will matter more.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Two AI agents, one codebase: keeping parallel work in sync</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Fri, 13 Nov 2026 04:02:26 +0000</pubDate>
      <link>https://dev.to/naman_here/two-ai-agents-one-codebase-keeping-parallel-work-in-sync-265f</link>
      <guid>https://dev.to/naman_here/two-ai-agents-one-codebase-keeping-parallel-work-in-sync-265f</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;One issue says: rename &lt;code&gt;POST /login&lt;/code&gt; to &lt;code&gt;/session&lt;/code&gt; and remove the old route.&lt;/p&gt;

&lt;p&gt;Another says: update the onboarding flow to call the auth endpoint after email verification.&lt;/p&gt;

&lt;p&gt;Two engineers take one issue each. Both use an AI coding agent. Both agents move fast. The first changes the server, the SDK, and the tests. The second opens a separate branch, finds the client still calling &lt;code&gt;/login&lt;/code&gt;, and keeps it because that is what the code in front of it says.&lt;/p&gt;

&lt;p&gt;Each agent did reasonable work. Together, they produced a contradiction.&lt;/p&gt;

&lt;p&gt;This is the uncomfortable part of multi-agent coding: parallel execution does not create shared understanding. It creates more places where understanding can split. (For the single-agent version of this problem, and the memory layers that address it, see the &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory guide&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Two agents do not see one codebase
&lt;/h2&gt;

&lt;p&gt;People talk about multiple agents working on one repository as if the repository were the shared brain. It is not. It is the shared output.&lt;/p&gt;

&lt;p&gt;Agent A sees its prompt, its branch, the files it opened, and the decisions someone happened to include. Agent B sees a different prompt, a different branch, and a different slice of the code. Even if both begin from the same commit, their context diverges as soon as they start.&lt;/p&gt;

&lt;p&gt;The repository can tell them that two routes exist. It usually cannot tell them that the team deliberately killed one of them after a customer migration. It can show a &lt;code&gt;false&lt;/code&gt; feature flag. It cannot show that product cut the feature because supporting it would break the new pricing model.&lt;/p&gt;

&lt;p&gt;That missing why is where agents start making independent guesses.&lt;/p&gt;

&lt;p&gt;Anthropic's guidance on &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;context engineering&lt;/a&gt; makes the core point: effective agents depend on finding and maintaining the right context, not simply filling a larger window. With several agents, you are not maintaining one useful context. You are maintaining several, while each agent changes the ground beneath the others.&lt;/p&gt;

&lt;h2&gt;
  
  
  The conflict arrives before the merge conflict
&lt;/h2&gt;

&lt;p&gt;Git is good at telling you when two branches changed the same line. Most multi-agent failures are less polite.&lt;/p&gt;

&lt;p&gt;One agent changes the trial from 14 days to 7. Another rewrites the billing email and still promises 14. Different files, clean merge.&lt;/p&gt;

&lt;p&gt;One agent removes an export because the feature was cut. Another adds a new settings screen for it. Different packages, clean merge.&lt;/p&gt;

&lt;p&gt;One agent changes an API response shape. A second updates the frontend against the old shape. A third sees both branches, decides the mismatch is accidental, and adds a compatibility layer nobody wanted.&lt;/p&gt;

&lt;p&gt;The code does not collide. The decisions do.&lt;/p&gt;

&lt;p&gt;This is &lt;a href="https://www.getlockstep.dev/glossary/decision-drift" rel="noopener noreferrer"&gt;decision drift&lt;/a&gt; at parallel speed. And it affects more than the developers resolving branches: engineering leads inherit review as a context-reconstruction job, and product people see old scope return or pricing leak into inconsistent places.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should you split work between agents?
&lt;/h2&gt;

&lt;p&gt;A large task does not become parallel merely because you spawn more agents. Good parallel tasks have low overlap and clear outputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;investigate the current authentication flow&lt;/li&gt;
&lt;li&gt;implement backend token rotation in one worktree&lt;/li&gt;
&lt;li&gt;update mobile client handling after the backend contract is accepted&lt;/li&gt;
&lt;li&gt;write integration tests against the accepted response shape&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;"Improve auth" or "fix the API and UI" are not parallel tasks; they are invitations for two agents to make overlapping plans.&lt;/p&gt;

&lt;p&gt;Claude Code's agent-team guidance says teams work best when tasks can proceed independently and coordination adds value. Each teammate has its own context window, and teams carry higher token and coordination cost than a subagent. Start with a few agents and add more only when the work actually separates. If one main agent just needs a bounded research or verification job done, a subagent is usually cheaper than an independent teammate.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/agent-teams" rel="noopener noreferrer"&gt;Claude Code agent teams&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Give each implementation task its own worktree
&lt;/h3&gt;

&lt;p&gt;A Git worktree gives each agent a separate working directory and branch while sharing repository history:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree add ../repo-auth -b agent/auth
git worktree add ../repo-client -b agent/client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code can start an isolated session in a worktree, and Cursor's parallel-agent workflows use worktrees for the same reason: one agent's edits should not overwrite another's working directory.&lt;/p&gt;

&lt;p&gt;Isolation prevents filesystem collisions. It does not prevent semantic conflicts. Worktrees solve &lt;em&gt;where&lt;/em&gt; agents edit, not &lt;em&gt;what&lt;/em&gt; the team has agreed.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://code.claude.com/docs/en/worktrees" rel="noopener noreferrer"&gt;Claude Code worktrees&lt;/a&gt; and &lt;a href="https://cursor.com/docs/configuration/worktrees" rel="noopener noreferrer"&gt;Cursor worktrees&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Make ownership and dependencies visible
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Owner&lt;/th&gt;
&lt;th&gt;Depends on&lt;/th&gt;
&lt;th&gt;Done when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Define token contract&lt;/td&gt;
&lt;td&gt;Lead&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Owner approves fields and errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Implement backend&lt;/td&gt;
&lt;td&gt;Agent A&lt;/td&gt;
&lt;td&gt;Contract&lt;/td&gt;
&lt;td&gt;Unit and integration tests pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Update mobile client&lt;/td&gt;
&lt;td&gt;Agent B&lt;/td&gt;
&lt;td&gt;Contract&lt;/td&gt;
&lt;td&gt;Retry fixture passes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cross-boundary test&lt;/td&gt;
&lt;td&gt;Agent C&lt;/td&gt;
&lt;td&gt;Backend + client&lt;/td&gt;
&lt;td&gt;Full flow passes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Dependencies matter more than simultaneous start time. Agent B can investigate the client before the contract is final, but should not hard-code a guessed response shape. Claude Code agent teams include a shared task list with dependency tracking; issues or any other task system work too, as long as every agent can see who owns what and what must finish first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Task coordination is not decision coordination
&lt;/h2&gt;

&lt;p&gt;Bounded issues, assigned directories, and a planner agent are useful controls. They solve ownership of work, not alignment on truth.&lt;/p&gt;

&lt;p&gt;A task board can say who owns onboarding. It does not say why onboarding must wait for email verification. A planner can split a migration into five steps. It does not know that the old route must never be restored, unless the decision reaches its context. Agent-to-agent messages can keep one run coordinated. They disappear with the run, and the next agent starts from zero again.&lt;/p&gt;

&lt;p&gt;Anthropic's account of its &lt;a href="https://www.anthropic.com/engineering/multi-agent-research-system" rel="noopener noreferrer"&gt;multi-agent research system&lt;/a&gt; describes the work of delegating scope, coordinating parallel paths, and bringing results back together. Coding adds another constraint: the result is not a report assembled once. It is a living product where today's agent inherits every decision yesterday's agents made.&lt;/p&gt;

&lt;p&gt;The handoff cannot carry only code. It has to carry intent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Treat interface changes as handoff events
&lt;/h3&gt;

&lt;p&gt;When an agent discovers something that affects another workstream, it should update the shared task right away, not at merge time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Auth contract update:
- refresh endpoint now returns `retry_after_ms`
- field is nullable only for permanent failures
- mobile client must not infer retry delay
- accepted in decision AUTH-12
- backend branch tests pass with `pnpm test auth`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A useful handoff names the change, the affected interface and consumers, its status (discovered, proposed, or accepted), the owner or decision reference, tests run, and remaining risk.&lt;/p&gt;

&lt;h3&gt;
  
  
  Separate exploration from decisions
&lt;/h3&gt;

&lt;p&gt;Several agents may explore alternatives in parallel. That is useful. Their findings should return to an owner before implementation paths diverge:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Agents investigate or propose.&lt;/li&gt;
&lt;li&gt;The lead summarizes options and tradeoffs.&lt;/li&gt;
&lt;li&gt;The responsible owner accepts one contract or architecture choice.&lt;/li&gt;
&lt;li&gt;The decision becomes current in the shared record.&lt;/li&gt;
&lt;li&gt;Implementation tasks unblock.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Without this gate, the first agent to commit code silently becomes the decision maker, and later agents normalize around an accidental choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the common fixes stop short
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Give every agent the whole repository.&lt;/strong&gt; Necessary, but the code is evidence of decisions, not a reliable record of them. Agents reverse-engineer intent from implementation and can reach different conclusions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Put everything in AGENTS.md.&lt;/strong&gt; Useful for stable instructions. Weak for a stream of changing product and engineering calls. The file grows, stale rules remain unmarked, and every agent pays the context cost whether a rule affects its work or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Make agents read the wiki.&lt;/strong&gt; Which page? Which version? A document store is not a briefing system. The relevant decision has to reach the agent before the agent writes against it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add more tests.&lt;/strong&gt; Tests are essential, but they only defend decisions someone encoded, and independent unit suites can pass while the combined contract fails.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use one planning agent.&lt;/strong&gt; A planner can reduce overlap in a run. It becomes another temporary memory boundary unless its decisions persist and future agents can retrieve them.&lt;/p&gt;

&lt;p&gt;Microsoft's work on &lt;a href="https://www.microsoft.com/en-us/research/publication/improving-code-localization-with-repository-memory/" rel="noopener noreferrer"&gt;repository memory&lt;/a&gt; and &lt;a href="https://www.microsoft.com/en-us/research/publication/codeplan-repository-level-coding-using-llms-and-planning-2/" rel="noopener noreferrer"&gt;repository-level planning&lt;/a&gt; points in the same direction: repository-scale work improves when agents can carry forward useful knowledge and reason across dependent changes. But a team needs more than a map of code. It needs a memory of the calls that code is supposed to honor.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shared memory must contain
&lt;/h2&gt;

&lt;p&gt;A shared transcript is not enough. Neither is a pile of summaries. Useful decision memory has a shape.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The verdict.&lt;/strong&gt; "The trial starts after email verification," not three pages of conversation someone must interpret again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The why.&lt;/strong&gt; Without the reason, a future agent cannot tell whether the decision still applies when the code changes around it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The rejected alternatives.&lt;/strong&gt; If the team considered starting the trial at signup and rejected it because disposable accounts distorted activation, record that. Otherwise an agent will rediscover the idea and present it as new.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The scope.&lt;/strong&gt; Which modules, flows, or product surfaces does the decision affect? Scope lets the system retrieve a small relevant briefing instead of dumping the entire company history into every context window.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The owner and status.&lt;/strong&gt; Who made the call? Is it active, proposed, or replaced? Shared memory should align agents without turning every passing suggestion into policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The replacement chain.&lt;/strong&gt; When seven days becomes fourteen again, the old entry should remain visible as superseded, linked to the new call and its reason. Silent rewrites create a memory nobody can audit.&lt;/p&gt;

&lt;p&gt;One agent's local memory can't play this role: other agents cannot see it, and the team cannot review it. Accepted choices need to be promoted into the shared record.&lt;/p&gt;

&lt;h2&gt;
  
  
  Brief before action, not after the mistake
&lt;/h2&gt;

&lt;p&gt;Capturing decisions is only half the system. Before an agent edits onboarding, it should receive the active decisions that affect onboarding: when the trial begins, what verification is required, and what was recently replaced. Before another agent edits billing email, it should receive the overlapping pricing and trial decisions.&lt;/p&gt;

&lt;p&gt;They do not need identical prompts. They need a consistent set of truths where their work overlaps. If a new implementation conflicts with an accepted choice, the agent should stop and name the conflict rather than silently updating the architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who integrates the result?
&lt;/h2&gt;

&lt;p&gt;A lead, human or agent, who integrates rather than merely merges:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;confirm the accepted interfaces and decisions&lt;/li&gt;
&lt;li&gt;merge the lowest-level dependency first and run its tests&lt;/li&gt;
&lt;li&gt;rebase dependent branches and run cross-boundary tests&lt;/li&gt;
&lt;li&gt;check that handoffs and decision pointers are current&lt;/li&gt;
&lt;li&gt;close temporary handoffs when the work is done&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A clean Git merge is not proof of a consistent result. For high-risk work, have agents plan before implementing; Claude Code agent teams support plan approval, so the lead can review an approach before files change.&lt;/p&gt;

&lt;p&gt;For the native ways to share what one engineer's agent learned with the rest of the team, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-team-memory" rel="noopener noreferrer"&gt;Claude Code team memory&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep is the shared decision-memory layer for teams building with AI coding agents. Owners approve decisions captured from Slack, docs, tickets, and PRs; Lockstep keeps the why and the replacement history, ranks each decision by blast radius, and briefs any MCP-compatible agent through &lt;code&gt;get_product_context&lt;/code&gt; before it acts. A PR check flags changes that may conflict with an approved decision (it warns by default; blocking is opt-in).&lt;/p&gt;

&lt;p&gt;Worktrees keep edits apart. Tasks keep ownership clear. Tests check the combined result. Lockstep keeps every agent working from the same version of the truth.&lt;/p&gt;

&lt;p&gt;Related: &lt;a href="https://www.getlockstep.dev/blog/share-memory-cursor-claude-code" rel="noopener noreferrer"&gt;how to share memory between Cursor and Claude Code&lt;/a&gt; and &lt;a href="https://www.getlockstep.dev/blog/why-claude-code-forgets-architecture-decisions" rel="noopener noreferrer"&gt;why Claude Code forgets architecture decisions&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Claude Code team memory: how to share what your agents learn</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Thu, 12 Nov 2026 04:05:03 +0000</pubDate>
      <link>https://dev.to/naman_here/claude-code-team-memory-how-to-share-what-your-agents-learn-189c</link>
      <guid>https://dev.to/naman_here/claude-code-team-memory-how-to-share-what-your-agents-learn-189c</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/claude-code-team-memory" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On Tuesday an engineer spends three hours with Claude Code on a flaky checkout test. They rule out the payment mock, find a race in the session store, and get halfway through a fix. Then they get pulled onto an incident.&lt;/p&gt;

&lt;p&gt;On Wednesday a teammate picks up the ticket. Their Claude Code starts from zero. It suggests checking the payment mock.&lt;/p&gt;

&lt;p&gt;That is the gap behind one of the most specific requests in the Claude Code tracker, &lt;a href="https://github.com/anthropics/claude-code/issues/38536" rel="noopener noreferrer"&gt;a feature proposal for shared team memory&lt;/a&gt;. Until something like it ships, here is what a team can share today, what it can't, and where each kind of knowledge should live. Facts come from Anthropic's documentation, checked on 4 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can Claude Code share memory across a team?
&lt;/h2&gt;

&lt;p&gt;Not natively. Claude Code's auto memory is stored in your home directory and, in the documentation's words, is not shared across machines or cloud environments. Your teammate's agent never sees what yours learned.&lt;/p&gt;

&lt;p&gt;What a team can share is anything that lives in the repository or a shared git host:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;Where it lives&lt;/th&gt;
&lt;th&gt;Shared with the team?&lt;/th&gt;
&lt;th&gt;Who writes it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Auto memory&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/projects/&amp;lt;project&amp;gt;/memory/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No. Machine-local&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User CLAUDE.md&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project CLAUDE.md and &lt;code&gt;.claude/rules/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The repo&lt;/td&gt;
&lt;td&gt;Yes, through git&lt;/td&gt;
&lt;td&gt;The team&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skills&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.claude/skills/&lt;/code&gt; in the repo, or a plugin&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The team&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subagent with &lt;code&gt;memory: project&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/agent-memory/&amp;lt;agent-name&amp;gt;/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes, through git&lt;/td&gt;
&lt;td&gt;The subagent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team plugin marketplace&lt;/td&gt;
&lt;td&gt;A git repo with &lt;code&gt;.claude-plugin/marketplace.json&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Yes, for anyone who adds it&lt;/td&gt;
&lt;td&gt;The team&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Managed CLAUDE.md&lt;/td&gt;
&lt;td&gt;A system path, deployed by IT&lt;/td&gt;
&lt;td&gt;Yes, every user on the machine&lt;/td&gt;
&lt;td&gt;The organization&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most teams use the third row and stop. The fifth and sixth rows are where the useful sharing is.&lt;/p&gt;

&lt;h2&gt;
  
  
  What teams actually want to share
&lt;/h2&gt;

&lt;p&gt;The feature request lists seven situations where context dies between people. Grouped by the kind of knowledge involved, they look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation from the request&lt;/th&gt;
&lt;th&gt;Kind of knowledge&lt;/th&gt;
&lt;th&gt;How long it stays true&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A sprint task changes hands mid-way&lt;/td&gt;
&lt;td&gt;Task state: what was tried, what failed&lt;/td&gt;
&lt;td&gt;Days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An incident moves to the next shift&lt;/td&gt;
&lt;td&gt;Investigation notes&lt;/td&gt;
&lt;td&gt;Hours to days&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An engineer works in another team's service&lt;/td&gt;
&lt;td&gt;Domain gotchas&lt;/td&gt;
&lt;td&gt;Months&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A reviewer wonders why the author chose an approach&lt;/td&gt;
&lt;td&gt;Rationale behind one change&lt;/td&gt;
&lt;td&gt;As long as the code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An architectural choice is made inside a session&lt;/td&gt;
&lt;td&gt;A decision&lt;/td&gt;
&lt;td&gt;Until someone replaces it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are not one thing. Task state should expire. Domain gotchas should accumulate. Decisions should be owned and replaced deliberately. A single shared memory pool would mix all three, and the team would end up trusting none of it. The options below give each kind its own home.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: commit the instructions everyone needs
&lt;/h2&gt;

&lt;p&gt;The project CLAUDE.md and &lt;code&gt;.claude/rules/&lt;/code&gt; are already shared through git. Use them for stable instructions that apply to nearly every task: commands, boundaries, conventions.&lt;/p&gt;

&lt;p&gt;Two habits make this work for a team. Keep CLAUDE.md under 200 lines, which is Anthropic's recommendation, and push anything that applies to only part of the codebase into a rule with &lt;code&gt;paths&lt;/code&gt;, so it loads only when Claude touches matching files. Then review changes to these files in pull requests like code. They are code, for the agent.&lt;/p&gt;

&lt;p&gt;What this can't hold: anything that changes weekly, and anything learned during a session that nobody stops to write down. For the full load order and limits, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-memory" rel="noopener noreferrer"&gt;how Claude Code memory works&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: give a subagent project-scope memory
&lt;/h2&gt;

&lt;p&gt;This is the most useful sharing feature in Claude Code, and the least used. A subagent can have its own persistent memory, and with &lt;code&gt;memory: project&lt;/code&gt; that memory lives in the repository at &lt;code&gt;.claude/agent-memory/&amp;lt;agent-name&amp;gt;/&lt;/code&gt;. Anthropic recommends project scope as the default because, per the documentation, it makes the subagent's knowledge shareable through version control.&lt;/p&gt;

&lt;p&gt;A domain expert for one service might look like this, saved as &lt;code&gt;.claude/agents/payments-expert.md&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
name: payments-expert
description: Knows the payments service. Use for any change under services/payments/.
memory: project
---

You are the team's expert on the payments service. Before answering,
read your memory for known gotchas. When you learn something that would
save the next engineer time, such as a race condition, a flaky test cause,
or an undocumented constraint, add it to your memory.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When anyone on the team uses this subagent, it loads the first 200 lines or 25KB of its &lt;code&gt;MEMORY.md&lt;/code&gt;, and what it writes back lands in a directory that goes through code review with everything else. The engineer from the opening example would have left the session-store race in that memory. Their teammate's agent would have read it.&lt;/p&gt;

&lt;p&gt;Three cautions. The memory is written by whoever runs the subagent, so review those files in pull requests rather than merging them blind. Two people editing &lt;code&gt;MEMORY.md&lt;/code&gt; on different branches will produce ordinary merge conflicts. And the main conversation's auto memory is not loaded into subagents, so this is a separate store, not an extension of anyone's personal memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 3: ship skills through a team plugin marketplace
&lt;/h2&gt;

&lt;p&gt;Skills hold procedures: how to cut a release, how to add a migration, how to debug the queue. For a worked example, see the &lt;a href="https://www.getlockstep.dev/blog/adrs-for-ai-coding-agents" rel="noopener noreferrer"&gt;ADR-writing skill&lt;/a&gt;. They can live in &lt;code&gt;.claude/skills/&lt;/code&gt; in one repo. When several repos need the same skills, package them as plugins.&lt;/p&gt;

&lt;p&gt;A &lt;a href="https://code.claude.com/docs/en/plugin-marketplaces" rel="noopener noreferrer"&gt;plugin marketplace&lt;/a&gt; is a git repository with a &lt;code&gt;.claude-plugin/marketplace.json&lt;/code&gt; file that lists your plugins. It can be private. Teammates register it once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin marketplace add your-org/claude-plugins
claude plugin install release-tools@your-org-plugins
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Updates reach everyone who installed from it, and an administrator can require the marketplace on every machine. This shares how the team works. It does not share what anyone learned yesterday.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 4: write handoffs for unfinished work
&lt;/h2&gt;

&lt;p&gt;Task state is the one kind of knowledge that should not live in permanent memory. It goes stale in days. For a mid-task handoff, the most reliable tool is still a short file committed to the branch: what the goal is, what was tried, what failed, and the next step.&lt;/p&gt;

&lt;p&gt;Ask Claude to write it before you stop, and ask the next session to read it before it starts. When the branch merges, delete the file. For a template and what to put in it, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;Claude Code keeps forgetting context?&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What none of these share
&lt;/h2&gt;

&lt;p&gt;Every option above covers knowledge that someone writes into the repository. The hardest kind of team knowledge rarely gets there.&lt;/p&gt;

&lt;p&gt;A product manager and an engineering lead agree in Slack that exports must exclude a customer's internal notes. The PRD is updated. Nobody edits CLAUDE.md, because it isn't an instruction about the codebase. A week later an engineer's agent builds an export endpoint from an older prototype and includes the notes.&lt;/p&gt;

&lt;p&gt;Decisions like this have properties that files in a repo don't track:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An owner.&lt;/strong&gt; Someone decided, and someone can change it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A status.&lt;/strong&gt; Proposed is different from approved.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A replacement history.&lt;/strong&gt; When the call changes, the old one should be marked replaced, not silently edited.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A source outside the repo.&lt;/strong&gt; Slack threads, PRDs, and tickets, not commits.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Knowledge&lt;/th&gt;
&lt;th&gt;Best home&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Commands, conventions, boundaries&lt;/td&gt;
&lt;td&gt;Project CLAUDE.md and rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Domain gotchas that accumulate&lt;/td&gt;
&lt;td&gt;A subagent with &lt;code&gt;memory: project&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repeatable procedures&lt;/td&gt;
&lt;td&gt;Skills, shared through a plugin marketplace&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unfinished task state&lt;/td&gt;
&lt;td&gt;A handoff file on the branch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product and architecture decisions&lt;/td&gt;
&lt;td&gt;A shared decision record with owners and status&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep is shared team memory for Claude Code, built for the last row of that table. Decisions are captured from PRDs, Slack, and pull requests, and become binding when their owner approves them. At the start of each Claude Code session, the agent is briefed on the decisions that apply to the work, and it can query the same record over MCP mid-session. When a decision is replaced, the old version is marked replaced, so no agent treats it as current.&lt;/p&gt;

&lt;p&gt;For engineering leads, Standards &amp;amp; Skills publishes versioned standards and skills once and rolls them out by team, repo, or path, with a view of which version reached which checkout. That overlaps with a plugin marketplace on distribution; the difference is the rollout control and the adoption view.&lt;/p&gt;

&lt;p&gt;It does not replace CLAUDE.md, project-scope subagent memory, or handoffs, and it does not make agents obey anything. Session briefings and managed skills work with Claude Code today; other MCP clients can call the tools without the automatic briefing. Try it on one repository with &lt;code&gt;npx lockstep-cli onboard&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources checked 4 November 2026
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/memory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/sub-agents" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/sub-agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/plugin-marketplaces" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/plugin-marketplaces&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/anthropics/claude-code/issues/38536" rel="noopener noreferrer"&gt;https://github.com/anthropics/claude-code/issues/38536&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related reading
&lt;/h2&gt;

&lt;p&gt;For every memory file and limit, read &lt;a href="https://www.getlockstep.dev/blog/claude-code-memory" rel="noopener noreferrer"&gt;how Claude Code memory works&lt;/a&gt;. For parallel agents in one repo, see &lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;two AI agents, one codebase&lt;/a&gt;. For the split between instructions and memory, see &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;. If you want a hosted store instead of git, compare &lt;a href="https://www.getlockstep.dev/blog/best-mcp-memory-servers-teams" rel="noopener noreferrer"&gt;MCP memory servers for Claude Code&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Best memory tools for Claude Code: choose the missing job, not another memory layer</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Wed, 11 Nov 2026 04:00:27 +0000</pubDate>
      <link>https://dev.to/naman_here/best-memory-tools-for-claude-code-choose-the-missing-job-not-another-memory-layer-j7o</link>
      <guid>https://dev.to/naman_here/best-memory-tools-for-claude-code-choose-the-missing-job-not-another-memory-layer-j7o</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/best-memory-tools-claude-code" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Claude Code already has memory. Before installing another tool, work out what it is failing to remember, who needs that information, and what should happen when it stops being true.&lt;/p&gt;

&lt;p&gt;If your problem is repeating personal preferences, start with native auto memory. If you need stable project instructions, use a short CLAUDE.md or AGENTS.md file. If the gap is recalling past sessions, sharing knowledge across tools, or preserving an accepted product decision, an extra layer may help. Those are different jobs.&lt;/p&gt;

&lt;p&gt;This comparison covers the native baseline, Supermemory, claude-mem, Hippo, Basic Memory, MemoryLake and Lockstep. It describes documented behavior, not a laboratory ranking. Lockstep is ours, and its section says where it fits and what remains unverified.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the native baseline
&lt;/h2&gt;

&lt;p&gt;Claude Code has two complementary mechanisms: instruction files you maintain, and auto memory Claude writes as it learns from corrections and preferences.&lt;/p&gt;

&lt;p&gt;Project instructions can be shared through version control. Auto memory is machine-local, with one repository's worktrees sharing a memory directory. It does not automatically give a teammate on another machine the same knowledge.&lt;/p&gt;

&lt;p&gt;That is a useful boundary, not a defect. Your preference for small commits need not become company policy. A product rule about who can export customer data should not live only in your personal notes.&lt;/p&gt;

&lt;p&gt;Keep the baseline if it solves the problem. Another plugin adds installation, retrieval behavior, data retention and maintenance decisions. It should earn that complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supermemory: automatic recall with a shared storage layer
&lt;/h2&gt;

&lt;p&gt;Supermemory's Claude Code plugin retrieves relevant memories before substantive prompts and captures new conversation content through hooks. Its integration supports a custom endpoint for self-hosted Supermemory as well as the hosted service.&lt;/p&gt;

&lt;p&gt;It is worth evaluating when the missing job is recalling prior work across sessions and tools. Do not assume that a repository container means every teammate sees every captured item: check the organization, scope and access rules for your chosen setup.&lt;/p&gt;

&lt;p&gt;The plugins are available on the free plan, but API usage consumes credits. At the 29 October check, Free includes $5 in monthly credits and one seat; Pro is $19 a month with $20 in credits and three seats. That is a usage model, not unlimited free memory.&lt;/p&gt;

&lt;p&gt;Before using it on company work, inspect what the capture hooks send and who can retrieve it. A recalled conversation is useful evidence, but not proof that its tentative conclusion was accepted.&lt;/p&gt;

&lt;h2&gt;
  
  
  claude-mem: continuity from captured sessions
&lt;/h2&gt;

&lt;p&gt;claude-mem captures tool-use observations, produces summaries and makes relevant context available to future sessions. Its current documentation also describes optional cloud sync and TeamBrain, so treating it as exclusively personal or exclusively local would be inaccurate.&lt;/p&gt;

&lt;p&gt;It is a candidate when the gap is remembering work already performed: what was investigated, what failed and what the next session needs. Check its current installation instructions rather than assuming a global npm install configures the hooks; the README distinguishes the library from the working integration.&lt;/p&gt;

&lt;p&gt;The limit to investigate is meaning. Can your setup distinguish an experiment from an accepted constraint? Can you find the source and retire a superseded conclusion? Session summaries alone do not answer those questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hippo: a local-first store, with important network exceptions
&lt;/h2&gt;

&lt;p&gt;Hippo stores memory in SQLite and writes readable Markdown mirrors. Its default BM25 search does not require an embedding model. Optional embeddings and other retrieval features change the setup.&lt;/p&gt;

&lt;p&gt;Local-first does not mean every configuration keeps every operation offline. The README says its consolidation step sends memory text to Anthropic when an Anthropic API key is set. Optional API embedders and rerankers can also make network calls. Its setup can add hooks and a daily scheduled job, so review those changes rather than treating installation as passive storage.&lt;/p&gt;

&lt;p&gt;It is a candidate when inspectable local storage matters and the team is comfortable owning the configuration. Test the intended configuration's network behavior before putting private project context into it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Basic Memory: a knowledge base humans and agents can share
&lt;/h2&gt;

&lt;p&gt;Basic Memory is built around structured notes, links and a knowledge graph accessed through MCP. Its Claude Code integration includes a plugin with briefing and checkpoint behavior.&lt;/p&gt;

&lt;p&gt;There is a meaningful distinction between local use and Teams. The local edition runs on your computer without team features. Teams adds a shared cloud knowledge base with per-seat billing, so one person's note can become available to another person and their agent.&lt;/p&gt;

&lt;p&gt;This is worth evaluating when people should be able to read and maintain the same knowledge their agents retrieve. Shared notes still need ownership and review. A note recording a proposed plan should not silently become a rule simply because every agent can find it.&lt;/p&gt;

&lt;h2&gt;
  
  
  MemoryLake: evaluate shared project memory, not the marketing premise
&lt;/h2&gt;

&lt;p&gt;MemoryLake describes project memory through MCP, shared access across teammates and role-based permissions. Its integration page describes free individual use and paid team collaboration.&lt;/p&gt;

&lt;p&gt;Those are relevant capabilities to test. However, its claim that Claude Code is stateless and that memory must live outside the product should not guide the purchase: Claude Code's current official documentation describes native auto memory.&lt;/p&gt;

&lt;p&gt;Evaluate the added value over that baseline. Test which events trigger capture, what loads in a new session, how permissions apply and what happens when a decision is replaced. This article has not independently tested those behaviors or verified a particular team's hosted setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits: accepted decisions across product and engineering
&lt;/h2&gt;

&lt;p&gt;Consider an illustrative example. A product lead and engineering lead agree that exports must exclude a sensitive field. An engineer's next agent session sees an old prototype that included it. The missing fact is not merely a past conversation. It is which rule was accepted, why it exists, who owns it and whether it still applies.&lt;/p&gt;

&lt;p&gt;Lockstep focuses on that decision record and the handoff to the people and agents doing the work. Its published CLI contains decision proposal, context and session-briefing operations. It also contains consent-aware advisory checks. A partial or unavailable check is not a clean result, and an advisory finding is not a guarantee that conflicting code cannot ship.&lt;/p&gt;

&lt;p&gt;The individual onboarding path is currently a Claude Code pilot. The repository and website have some release-status differences, and this comparison has not verified a fresh authenticated hosted onboarding run. Treat the documented setup as something to validate on one repository before a wider rollout, not a promise about every integration.&lt;/p&gt;

&lt;p&gt;Choose this category when the gap is accepted product and engineering choices surviving a session, a teammate or a tool. Do not add it simply to remember your preferred test command. Other products can store decisions too; compare the review, replacement and source-traceability workflow rather than claiming exclusive ownership of the word memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the missing job before adopting
&lt;/h2&gt;

&lt;p&gt;Use a small test you can inspect, not a vendor's recall score:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Record an accepted decision, its reason and a rejected alternative. Close the session and ask a fresh one what applies.&lt;/li&gt;
&lt;li&gt;Replace the decision. Check that the old version is not returned as current advice.&lt;/li&gt;
&lt;li&gt;If sharing matters, repeat from a second account or tool with the intended permissions. Do not test using one shared admin identity.&lt;/li&gt;
&lt;li&gt;Inspect captured content, deletion behavior and what leaves the machine. Local storage and external model processing are separate questions.&lt;/li&gt;
&lt;li&gt;Inspect how much context is inserted and whether irrelevant history crowds out the task.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are proposed evaluation steps, not tests completed for this article. The right result might be that your existing files and native memory already suffice.&lt;/p&gt;

&lt;p&gt;A useful memory setup gives each kind of information a home. Keep instructions reviewable, personal learning personal, unfinished work temporary, and accepted team decisions traceable. Install another layer only for the gap that remains.&lt;/p&gt;

&lt;p&gt;For memory layers you build into your own agents and apps, see &lt;a href="https://www.getlockstep.dev/blog/mem0-vs-zep-vs-letta-vs-supermemory" rel="noopener noreferrer"&gt;Mem0 vs Zep vs Letta vs Supermemory&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources checked 29 October 2026
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/memory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://supermemory.ai/docs/integrations/claude-code" rel="noopener noreferrer"&gt;https://supermemory.ai/docs/integrations/claude-code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://supermemory.ai/pricing/" rel="noopener noreferrer"&gt;https://supermemory.ai/pricing/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://supermemory.ai/docs/overview/billing" rel="noopener noreferrer"&gt;https://supermemory.ai/docs/overview/billing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/thedotmack/claude-mem/" rel="noopener noreferrer"&gt;https://github.com/thedotmack/claude-mem/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/kitfunso/hippo-memory" rel="noopener noreferrer"&gt;https://github.com/kitfunso/hippo-memory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.basicmemory.com/integrations/claude-code/" rel="noopener noreferrer"&gt;https://docs.basicmemory.com/integrations/claude-code/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.basicmemory.com/teams/about" rel="noopener noreferrer"&gt;https://docs.basicmemory.com/teams/about&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.memorylake.ai/en/integrations/claude-code" rel="noopener noreferrer"&gt;https://www.memorylake.ai/en/integrations/claude-code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lockstep-team-agent/lockstep" rel="noopener noreferrer"&gt;https://github.com/lockstep-team-agent/lockstep&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/integrations/claude-code" rel="noopener noreferrer"&gt;https://www.getlockstep.dev/integrations/claude-code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://registry.npmjs.org/lockstep-cli/latest" rel="noopener noreferrer"&gt;https://registry.npmjs.org/lockstep-cli/latest&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related reading
&lt;/h2&gt;

&lt;p&gt;For the wider context stack, see &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;the tools for AI coding-agent context&lt;/a&gt;. For connections beyond memory, see &lt;a href="https://www.getlockstep.dev/blog/best-mcp-servers-engineering-teams" rel="noopener noreferrer"&gt;MCP servers for engineering teams&lt;/a&gt;. For the decision-record workflow, see &lt;a href="https://www.getlockstep.dev/blog/best-decision-log-tools-product-engineering" rel="noopener noreferrer"&gt;decision-log tools for product and engineering&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Claude Code memory: how it works and what it doesn't share</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Tue, 10 Nov 2026 04:00:21 +0000</pubDate>
      <link>https://dev.to/naman_here/claude-code-memory-how-it-works-and-what-it-doesnt-share-28ek</link>
      <guid>https://dev.to/naman_here/claude-code-memory-how-it-works-and-what-it-doesnt-share-28ek</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/claude-code-memory" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On Monday you tell Claude Code to use pnpm, not npm. On Tuesday it uses pnpm without being asked. On Wednesday your teammate opens the same repo, and their Claude Code reaches for npm.&lt;/p&gt;

&lt;p&gt;Nothing is broken. Claude Code memory is working exactly as designed. It remembers in files, and most of those files belong to one person on one machine.&lt;/p&gt;

&lt;p&gt;This guide explains how Claude Code memory works: which files load, in what order, how much of each, what happens after compaction, and which parts your team actually shares. Everything here comes from Anthropic's &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;memory documentation&lt;/a&gt;, checked on 4 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Claude Code memory works
&lt;/h2&gt;

&lt;p&gt;Claude Code memory is two systems that load into every session. CLAUDE.md files are instructions you write. Auto memory is notes Claude writes for itself. Every session starts with a fresh context window, and these files are how anything carries over.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;CLAUDE.md files&lt;/th&gt;
&lt;th&gt;Auto memory&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who writes it&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it holds&lt;/td&gt;
&lt;td&gt;Instructions and rules&lt;/td&gt;
&lt;td&gt;Learnings, corrections, preferences&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;Organization, user, or project&lt;/td&gt;
&lt;td&gt;One repository, shared across its worktrees&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When it loads&lt;/td&gt;
&lt;td&gt;Every session&lt;/td&gt;
&lt;td&gt;Every session, first 200 lines or 25KB of the index&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who else sees it&lt;/td&gt;
&lt;td&gt;Teammates, if committed to the repo&lt;/td&gt;
&lt;td&gt;Nobody. It stays on your machine&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The documentation is direct about one point: Claude treats both as context, not enforced configuration. A memory file makes a behavior likely. It does not make it certain. If something must never happen, Anthropic points you to hooks and permission settings instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Claude Code looks for CLAUDE.md
&lt;/h2&gt;

&lt;p&gt;Claude Code reads CLAUDE.md from four kinds of location. Each one has a different owner and a different audience.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Location&lt;/th&gt;
&lt;th&gt;Shared with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Managed policy&lt;/td&gt;
&lt;td&gt;macOS: &lt;code&gt;/Library/Application Support/ClaudeCode/CLAUDE.md&lt;/code&gt;. Linux and WSL: &lt;code&gt;/etc/claude-code/CLAUDE.md&lt;/code&gt;. Windows: &lt;code&gt;C:\Program Files\ClaudeCode\CLAUDE.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Every user on the machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Only you, in every project&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;./CLAUDE.md&lt;/code&gt; or &lt;code&gt;./.claude/CLAUDE.md&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Teammates, through git&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;./CLAUDE.local.md&lt;/code&gt; (add it to &lt;code&gt;.gitignore&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Only you, in this project&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two more sources sit beside these. Files in &lt;code&gt;.claude/rules/&lt;/code&gt; split project instructions by topic, and a rule with &lt;code&gt;paths&lt;/code&gt; frontmatter loads only when Claude works on matching files. Personal rules in &lt;code&gt;~/.claude/rules/&lt;/code&gt; apply to every project on your machine.&lt;/p&gt;

&lt;p&gt;A CLAUDE.md can also pull in other files with &lt;code&gt;@path/to/file&lt;/code&gt;. Imports can nest four levels deep. They help you organize a long file, but they do not save context, because an imported file loads together with the file that imports it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What loads at session start, and what loads later
&lt;/h2&gt;

&lt;p&gt;Claude Code does not read every memory file at launch. Some load immediately and some wait until Claude touches a related file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At launch&lt;/strong&gt;, Claude Code loads:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The managed CLAUDE.md, if your organization deployed one.&lt;/li&gt;
&lt;li&gt;Your user CLAUDE.md and user rules.&lt;/li&gt;
&lt;li&gt;Every CLAUDE.md and CLAUDE.local.md from the filesystem root down to the directory where you started Claude. Files closer to your working directory come later in context, and CLAUDE.local.md comes after CLAUDE.md at each level.&lt;/li&gt;
&lt;li&gt;Project rules in &lt;code&gt;.claude/rules/&lt;/code&gt; that have no &lt;code&gt;paths&lt;/code&gt; field.&lt;/li&gt;
&lt;li&gt;The first 200 lines or first 25KB of auto memory's MEMORY.md, whichever comes first.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Later, on demand&lt;/strong&gt;, Claude Code loads:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A CLAUDE.md in a subdirectory, once Claude reads, writes, or edits a file in that subdirectory.&lt;/li&gt;
&lt;li&gt;A path-scoped rule, once Claude opens a file that matches its pattern.&lt;/li&gt;
&lt;li&gt;Auto memory topic files, when Claude decides it needs them.&lt;/li&gt;
&lt;li&gt;Skills, when you invoke one or Claude judges it relevant to your prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Files are concatenated, not merged. If two instructions conflict, the documentation says Claude may pick one arbitrarily. Run &lt;code&gt;/context&lt;/code&gt; in a session to see which memory files actually loaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Claude Code auto memory is stored
&lt;/h2&gt;

&lt;p&gt;Auto memory lives in &lt;code&gt;~/.claude/projects/&amp;lt;project&amp;gt;/memory/&lt;/code&gt;. The project path comes from the git repository, so every worktree and subdirectory of one repo shares a single memory directory.&lt;/p&gt;

&lt;p&gt;Inside, a &lt;code&gt;MEMORY.md&lt;/code&gt; index holds one line per memory, and each memory is its own markdown file. Claude tags each one with a type:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;user&lt;/code&gt;: your role, expertise, and working preferences&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;feedback&lt;/code&gt;: corrections you gave and approaches you confirmed&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;project&lt;/code&gt;: ongoing work, deadlines, and decisions it can't derive from the code&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;reference&lt;/code&gt;: where to find things outside the project, like a dashboard&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Claude skips anything it can work out from the codebase and anything your CLAUDE.md already says. It does not save something every session. When you see "Saved 2 memories" or "Recalled 2 memories", it is reading or writing this directory.&lt;/p&gt;

&lt;p&gt;Auto memory is on by default in local sessions. To manage it, run &lt;code&gt;/memory&lt;/code&gt;: it lists your memory files, opens the auto memory folder, and has the on/off toggle. The files are plain markdown, so you can read, edit, or delete any of them.&lt;/p&gt;

&lt;p&gt;Memory files are not removed by Claude Code's transcript cleanup. Old session transcripts expire after the retention period, but MEMORY.md and its topic files stay until you or Claude change them.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much memory Claude Code can hold
&lt;/h2&gt;

&lt;p&gt;Each kind of memory file has its own limit, and the limits behave differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;What happens past it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CLAUDE.md loaded at launch&lt;/td&gt;
&lt;td&gt;Recommended under 200 lines. Hard limit 4 MiB&lt;/td&gt;
&lt;td&gt;Long files reduce adherence. A file over 4 MiB is skipped entirely&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MEMORY.md index&lt;/td&gt;
&lt;td&gt;First 200 lines or 25KB&lt;/td&gt;
&lt;td&gt;Everything after the limit is not loaded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Subdirectory CLAUDE.md and path-scoped rules&lt;/td&gt;
&lt;td&gt;40,000 characters on a 200K context window; 150,000 to 200,000 on 1M, depending on model&lt;/td&gt;
&lt;td&gt;Claude receives only the start, with a note to read the rest&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;@&lt;/code&gt; imports&lt;/td&gt;
&lt;td&gt;Four levels of nesting&lt;/td&gt;
&lt;td&gt;Deeper imports are not followed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first row is the one teams hit. A CLAUDE.md that grows every time Claude makes a mistake gets longer and less effective at the same time. Claude Code warns at startup when a file is over the recommended length, and &lt;code&gt;/doctor prompt-audit&lt;/code&gt; (v2.1.283 or later) looks for outdated and conflicting instructions without changing anything until you approve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens to memory after /compact and between sessions
&lt;/h2&gt;

&lt;p&gt;Memory files survive compaction. Conversation does not. That difference explains most "Claude forgot what I told it" reports.&lt;/p&gt;

&lt;p&gt;After &lt;code&gt;/compact&lt;/code&gt;, Claude re-reads the project-root CLAUDE.md from disk. Nested CLAUDE.md files and path-scoped rules come back the next time Claude touches a matching file. An instruction you only typed into the chat is at risk. The documentation's fix is plain: if it must persist, put it in CLAUDE.md.&lt;/p&gt;

&lt;p&gt;A new session behaves the same way. It loads memory files fresh and knows nothing of the previous conversation, unless you reopen that conversation with &lt;code&gt;claude --continue&lt;/code&gt; or &lt;code&gt;claude --resume&lt;/code&gt;. For a practical guide on what to save where between sessions, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;Claude Code keeps forgetting context?&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Claude Code ignores memory you wrote
&lt;/h2&gt;

&lt;p&gt;Claude Code can load a memory file and still not follow it. CLAUDE.md content arrives as a user message after the system prompt, and Anthropic's documentation says there is no guarantee of strict compliance, especially for vague or conflicting instructions.&lt;/p&gt;

&lt;p&gt;When an instruction is being ignored, check these in order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Did it load?&lt;/strong&gt; Run &lt;code&gt;/context&lt;/code&gt; and look under Memory files. A subdirectory CLAUDE.md will not appear there, because it loads on demand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it specific?&lt;/strong&gt; "Run &lt;code&gt;npm test&lt;/code&gt; before committing" works better than "test your changes".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Does something contradict it?&lt;/strong&gt; Look across CLAUDE.md, nested files, and &lt;code&gt;.claude/rules/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is it too long?&lt;/strong&gt; A file past 200 lines spreads attention thin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Should it be a hook?&lt;/strong&gt; If an action must happen at a fixed point, such as before every commit, a hook runs as a shell command regardless of what Claude decides.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the honest limit of memory files. They inform the agent. They do not enforce anything. For each cause in detail, with a hook example, see &lt;a href="https://www.getlockstep.dev/blog/why-claude-code-ignores-claude-md" rel="noopener noreferrer"&gt;why Claude Code ignores your CLAUDE.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does Claude Code memory work with AGENTS.md?
&lt;/h2&gt;

&lt;p&gt;Yes. Since v2.1.277, Claude Code reads &lt;code&gt;AGENTS.md&lt;/code&gt; as project instructions when there is no CLAUDE.md or CLAUDE.local.md in your working directory or above it. If both exist, it reads CLAUDE.md only by default. You can change that in &lt;code&gt;/config&lt;/code&gt; under Project instructions, or import the file with &lt;code&gt;@AGENTS.md&lt;/code&gt; at the top of a CLAUDE.md. For the full rules and the &lt;code&gt;/config&lt;/code&gt; options, see &lt;a href="https://www.getlockstep.dev/blog/agents-md" rel="noopener noreferrer"&gt;AGENTS.md vs CLAUDE.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Claude Code memory doesn't share with your team
&lt;/h2&gt;

&lt;p&gt;Claude Code memory is built for one developer working in one repository. A team needs something it doesn't provide.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What a team needs&lt;/th&gt;
&lt;th&gt;What Claude Code memory offers&lt;/th&gt;
&lt;th&gt;The gap&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lessons one person taught their agent&lt;/td&gt;
&lt;td&gt;Auto memory&lt;/td&gt;
&lt;td&gt;Machine-local. Your teammate's agent never sees it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rules for every repo in the company&lt;/td&gt;
&lt;td&gt;Managed CLAUDE.md&lt;/td&gt;
&lt;td&gt;Pushed to machines by IT with MDM or Group Policy. One text for everyone on the machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rules for one team or one service&lt;/td&gt;
&lt;td&gt;Project CLAUDE.md and rules&lt;/td&gt;
&lt;td&gt;Per repository. Each repo keeps its own copy, and copies drift&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A decision made in Slack or a PRD&lt;/td&gt;
&lt;td&gt;Nothing, until someone types it into a file&lt;/td&gt;
&lt;td&gt;Most product decisions never reach a CLAUDE.md&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Knowing a rule was replaced&lt;/td&gt;
&lt;td&gt;Whatever the file says now&lt;/td&gt;
&lt;td&gt;No owner, no status, no history of what changed and why&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The demand is visible in public. A feature request for &lt;a href="https://github.com/anthropics/claude-code/issues/38536" rel="noopener noreferrer"&gt;shared team memory in Claude Code&lt;/a&gt; asks for exactly this, and a separate request about &lt;a href="https://github.com/anthropics/claude-code/issues/34556" rel="noopener noreferrer"&gt;memory lost across context compactions&lt;/a&gt; has more than 100 comments from people who built their own workarounds.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to share Claude Code memory across a team
&lt;/h2&gt;

&lt;p&gt;You can get a long way with what Claude Code already does. Start here before adding any tool:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Commit a short project CLAUDE.md.&lt;/strong&gt; Build commands, boundaries, and the conventions every task needs. Keep it under 200 lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Split the rest into &lt;code&gt;.claude/rules/&lt;/code&gt;.&lt;/strong&gt; Use &lt;code&gt;paths&lt;/code&gt; so frontend rules load only for frontend files. &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;What belongs in CLAUDE.md&lt;/a&gt; covers the split in detail.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Share rules across repos with symlinks.&lt;/strong&gt; &lt;code&gt;.claude/rules/&lt;/code&gt; follows symlinks. Claude Code asks once per project before loading links that point outside the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a managed CLAUDE.md for true company-wide rules,&lt;/strong&gt; if your IT team can deploy it. Use managed settings, not CLAUDE.md, for anything that must be blocked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep decisions in one shared record and point to it.&lt;/strong&gt; A product call with an owner, a reason, and a replacement history does not belong in a file every agent loads every session.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Steps one to four cover instructions. Step five is the part native memory leaves to you. For subagent memory that lives in git and team plugin marketplaces, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-team-memory" rel="noopener noreferrer"&gt;Claude Code team memory&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep is shared team memory for Claude Code. It handles the rows in the gap table that files can't: decisions made outside the repo, and standards that need to reach every engineer's agent at the right version.&lt;/p&gt;

&lt;p&gt;Decisions are captured from PRDs, Slack, and pull requests, and become binding when their owner approves them. At session start, Lockstep briefs Claude Code on the decisions that apply to the work, and the agent can query the same record over MCP mid-session. When a decision is replaced, the old version stays visible as replaced, so no agent treats it as current. For engineering leads, Standards &amp;amp; Skills publishes versioned standards and Claude Code skills once and rolls them out by team, repo, or path, with a view of which version reached which checkout.&lt;/p&gt;

&lt;p&gt;It does not replace CLAUDE.md or auto memory. CLAUDE.md still tells Claude how this repository works, and auto memory still learns your habits. Lockstep carries what the whole team decided. Session briefings and managed skills ship for Claude Code today; other MCP clients can call the tools but don't get the automatic briefing yet. Try it on one repository with &lt;code&gt;npx lockstep-cli onboard&lt;/code&gt; before rolling it out further.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources checked 4 November 2026
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/memory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/anthropics/claude-code/issues/38536" rel="noopener noreferrer"&gt;https://github.com/anthropics/claude-code/issues/38536&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/anthropics/claude-code/issues/34556" rel="noopener noreferrer"&gt;https://github.com/anthropics/claude-code/issues/34556&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/lockstep-team-agent/lockstep" rel="noopener noreferrer"&gt;https://github.com/lockstep-team-agent/lockstep&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related reading
&lt;/h2&gt;

&lt;p&gt;For what to save where between sessions, see &lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;Claude Code keeps forgetting context?&lt;/a&gt;. For the CLAUDE.md and memory split, read &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;. To compare add-on tools, see &lt;a href="https://www.getlockstep.dev/blog/best-memory-tools-claude-code" rel="noopener noreferrer"&gt;the best memory tools for Claude Code&lt;/a&gt;. For memory you connect over MCP, see &lt;a href="https://www.getlockstep.dev/blog/best-mcp-memory-servers-teams" rel="noopener noreferrer"&gt;the best MCP memory server for Claude Code&lt;/a&gt;. For connecting live systems instead of memory, see &lt;a href="https://www.getlockstep.dev/blog/best-mcp-servers-engineering-teams" rel="noopener noreferrer"&gt;the best MCP servers for product engineers and dev teams&lt;/a&gt;. For the five layers of agent memory beyond Claude Code, see the &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory guide&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>agentmemory</category>
      <category>ai</category>
      <category>codingagents</category>
    </item>
    <item>
      <title>Context engineering for coding agents: what belongs in the prompt, files, and team memory</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Mon, 09 Nov 2026 04:00:31 +0000</pubDate>
      <link>https://dev.to/naman_here/context-engineering-for-coding-agents-what-belongs-in-the-prompt-files-and-team-memory-482k</link>
      <guid>https://dev.to/naman_here/context-engineering-for-coding-agents-what-belongs-in-the-prompt-files-and-team-memory-482k</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/context-engineering-coding-agents" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A coding agent receives a prompt to change checkout retries.&lt;/p&gt;

&lt;p&gt;The prompt includes the feature request, a pasted architecture document, two incident summaries, a full style guide, recent Slack messages, and the transcript from yesterday's debugging session.&lt;/p&gt;

&lt;p&gt;The important constraint is one line inside the second incident: a third payment attempt can duplicate a charge with one provider.&lt;/p&gt;

&lt;p&gt;The agent has more context than ever. It still misses the fact that matters.&lt;/p&gt;

&lt;p&gt;Context engineering is not the practice of putting everything into the window. It is the practice of selecting the smallest useful set of information, giving each kind of context a reliable home, and retrieving it when the task needs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Context&lt;/th&gt;
&lt;th&gt;Best home&lt;/th&gt;
&lt;th&gt;Load when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Immediate goal and acceptance criteria&lt;/td&gt;
&lt;td&gt;Prompt&lt;/td&gt;
&lt;td&gt;Every task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stable commands and boundaries&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, scoped rules&lt;/td&gt;
&lt;td&gt;At startup or matching paths&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unfinished task state&lt;/td&gt;
&lt;td&gt;Handoff file&lt;/td&gt;
&lt;td&gt;When continuing the task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changing operational facts&lt;/td&gt;
&lt;td&gt;Live tool or MCP source&lt;/td&gt;
&lt;td&gt;When the fact drives a decision&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accepted team choices&lt;/td&gt;
&lt;td&gt;Shared decision record or ADR&lt;/td&gt;
&lt;td&gt;Before changing affected behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Large reference material&lt;/td&gt;
&lt;td&gt;Searchable docs or skills&lt;/td&gt;
&lt;td&gt;On demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Personal recurring learnings&lt;/td&gt;
&lt;td&gt;Local agent memory&lt;/td&gt;
&lt;td&gt;When useful to that person or environment&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A prompt should orient the agent, not become the team's entire knowledge system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the task in the prompt
&lt;/h2&gt;

&lt;p&gt;The prompt should answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What outcome do we want?&lt;/li&gt;
&lt;li&gt;What is in scope?&lt;/li&gt;
&lt;li&gt;What constraints are known now?&lt;/li&gt;
&lt;li&gt;What does done mean?&lt;/li&gt;
&lt;li&gt;What should the agent inspect before acting?
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Update checkout retry handling for Provider A.

Scope: services/checkout and its tests.
Done when: duplicate-charge fixture passes, existing Provider B behavior is unchanged,
and the plan names any conflict with accepted payment decisions.
Before editing: read the payment rules and current Provider A decision.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not paste every potentially relevant document. Point the agent to the sources and require retrieval where it matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put stable project context in files
&lt;/h2&gt;

&lt;p&gt;Version-controlled instruction files are for information the team would otherwise repeat in many sessions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;build and test commands&lt;/li&gt;
&lt;li&gt;repository layout&lt;/li&gt;
&lt;li&gt;coding and review conventions&lt;/li&gt;
&lt;li&gt;hard project boundaries&lt;/li&gt;
&lt;li&gt;short pointers to decisions and deeper docs
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Payments&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Run focused tests with &lt;span class="sb"&gt;`pnpm test payments`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; Never retry a non-idempotent capture automatically.
&lt;span class="p"&gt;-&lt;/span&gt; Read matching accepted records in &lt;span class="sb"&gt;`docs/adr/`&lt;/span&gt; before changing provider flows.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code reads project &lt;code&gt;CLAUDE.md&lt;/code&gt; and supports path-scoped files in &lt;code&gt;.claude/rules/&lt;/code&gt;. Cursor supports &lt;code&gt;.cursor/rules&lt;/code&gt; and &lt;code&gt;AGENTS.md&lt;/code&gt;. Both recommend focused instructions rather than large copied manuals.&lt;/p&gt;

&lt;p&gt;The test is stability. If an item changes every day, it does not belong in a startup file.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory&lt;/a&gt; and &lt;a href="https://cursor.com/docs/rules" rel="noopener noreferrer"&gt;Cursor Rules&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Put unfinished work in a handoff
&lt;/h2&gt;

&lt;p&gt;Conversation history contains exploration. A handoff contains the current state.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Checkout retry handoff&lt;/span&gt;

Done:
&lt;span class="p"&gt;-&lt;/span&gt; reproduced duplicate capture
&lt;span class="p"&gt;-&lt;/span&gt; added Provider A fixture

Next:
&lt;span class="p"&gt;-&lt;/span&gt; change retry classifier
&lt;span class="p"&gt;-&lt;/span&gt; rerun &lt;span class="sb"&gt;`pnpm test payments`&lt;/span&gt;

Constraint:
&lt;span class="p"&gt;-&lt;/span&gt; keep Provider B at three retries
&lt;span class="p"&gt;-&lt;/span&gt; current Provider A decision: PAY-18

Open risk:
&lt;span class="p"&gt;-&lt;/span&gt; manual recovery path has no integration test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A handoff should be temporary. Close or remove it when the task finishes so the next agent does not follow stale next steps.&lt;/p&gt;

&lt;p&gt;Anthropic's guidance for long-running agents recommends durable progress artifacts and clean state for the same reason: a fresh context window needs the result of prior work, not every token used to reach it.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;Effective harnesses for long-running agents&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Retrieve changing facts from live systems
&lt;/h2&gt;

&lt;p&gt;Deployment state, incident status, ticket ownership, current service health, and customer configuration change too quickly for copied memory.&lt;/p&gt;

&lt;p&gt;Use the source through a tool or MCP connection. Ask it when the fact becomes action-driving.&lt;/p&gt;

&lt;p&gt;A static note can say staging runs v2 long after a rollback. A live deployment source can answer what is running now, with its own timestamp and scope.&lt;/p&gt;

&lt;p&gt;Keep retrieval instructions in the project file. Keep the fact in the system that owns it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put accepted choices in team memory
&lt;/h2&gt;

&lt;p&gt;A team decision is different from a rule and different from a fact.&lt;/p&gt;

&lt;p&gt;"Run tests before merging" is a rule. "Staging is on v2" is a current fact. "Keep dual writes until Customer A exits the old API" is a decision.&lt;/p&gt;

&lt;p&gt;A decision record should include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;accepted choice&lt;/li&gt;
&lt;li&gt;rationale and constraints&lt;/li&gt;
&lt;li&gt;rejected options&lt;/li&gt;
&lt;li&gt;owner and date&lt;/li&gt;
&lt;li&gt;affected scope&lt;/li&gt;
&lt;li&gt;status&lt;/li&gt;
&lt;li&gt;replacement link&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This prevents search from presenting a proposal and the accepted answer as equal context. Repository ADRs work for codebase-local architecture. Cross-repository product and engineering choices need a shared system every agent can query.&lt;/p&gt;

&lt;h2&gt;
  
  
  Load large context just in time
&lt;/h2&gt;

&lt;p&gt;Anthropic describes context as a finite resource. Tool definitions, retrieved documents, conversation history, instructions, and outputs all compete inside the window.&lt;/p&gt;

&lt;p&gt;Use progressive retrieval:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Load short instructions and the task.&lt;/li&gt;
&lt;li&gt;Search an index or source for likely relevant material.&lt;/li&gt;
&lt;li&gt;Read the matching records.&lt;/li&gt;
&lt;li&gt;Follow links to current replacements.&lt;/li&gt;
&lt;li&gt;Pull large references only when the plan needs them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is more reliable than loading a complete wiki before the agent knows which subsystem matters.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;Effective context engineering for AI agents&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use subagents to protect the main context
&lt;/h2&gt;

&lt;p&gt;A focused subagent can inspect a large log, repository area, or research corpus and return the relevant result. This keeps raw material out of the main task's context.&lt;/p&gt;

&lt;p&gt;Use this when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the search space is large&lt;/li&gt;
&lt;li&gt;the task can be bounded clearly&lt;/li&gt;
&lt;li&gt;the main agent needs findings, not every source token&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not use subagents as a substitute for ownership. The final plan still needs one agent or person to reconcile findings against the current decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compact with intent
&lt;/h2&gt;

&lt;p&gt;Long sessions eventually compact. Claude Code can summarize automatically or through &lt;code&gt;/compact&lt;/code&gt; with a focus.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/compact preserve the current checkout plan, failed approaches, Provider A
constraint, tests run, and the next exact step
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Project-root instructions and several startup context mechanisms reload after compaction. Conversation-only details may survive only as summary. If a constraint must persist across sessions and people, promote it to the correct durable home instead of trusting the summary.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/context-window" rel="noopener noreferrer"&gt;Claude Code context window&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A context budget for a real task
&lt;/h2&gt;

&lt;p&gt;For a payment retry change:&lt;/p&gt;

&lt;h3&gt;
  
  
  Startup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;root project instructions&lt;/li&gt;
&lt;li&gt;payment path rule&lt;/li&gt;
&lt;li&gt;tool names, not full tool results&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Prompt
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;exact outcome&lt;/li&gt;
&lt;li&gt;files or service in scope&lt;/li&gt;
&lt;li&gt;acceptance criteria&lt;/li&gt;
&lt;li&gt;instruction to check current payment decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Retrieved on demand
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;current Provider A decision&lt;/li&gt;
&lt;li&gt;matching incident detail&lt;/li&gt;
&lt;li&gt;relevant code and tests&lt;/li&gt;
&lt;li&gt;live provider configuration&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Written during the task
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;plan and ownership in the task system&lt;/li&gt;
&lt;li&gt;handoff if unfinished&lt;/li&gt;
&lt;li&gt;new decision proposal if the current decision must change&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Not loaded unless needed
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;unrelated incidents&lt;/li&gt;
&lt;li&gt;full repository wiki&lt;/li&gt;
&lt;li&gt;old transcript&lt;/li&gt;
&lt;li&gt;every payment ADR&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Treating the prompt as long-term memory
&lt;/h3&gt;

&lt;p&gt;The next session may not receive it. Move repeated instructions and accepted choices into durable sources.&lt;/p&gt;

&lt;h3&gt;
  
  
  Treating files as live facts
&lt;/h3&gt;

&lt;p&gt;Static copies drift. Query the source that owns changing state.&lt;/p&gt;

&lt;h3&gt;
  
  
  Loading every rule in every session
&lt;/h3&gt;

&lt;p&gt;Use scope and relevance. Too many instructions can conflict and reduce adherence.&lt;/p&gt;

&lt;h3&gt;
  
  
  Using search without lifecycle fields
&lt;/h3&gt;

&lt;p&gt;Similarity finds related text, not the current authority. Decisions need status and replacement links.&lt;/p&gt;

&lt;h3&gt;
  
  
  Saving outputs but not ownership
&lt;/h3&gt;

&lt;p&gt;A note with no owner cannot tell the next agent who may confirm or change it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related guides
&lt;/h2&gt;

&lt;p&gt;For why agents forget and the memory layers that fix it, start with the &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory guide&lt;/a&gt;. For the wider market, see the &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;best tools for AI coding agent context&lt;/a&gt;. For storage boundaries, compare &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md and agent memory&lt;/a&gt;. For live protocol options, see the &lt;a href="https://www.getlockstep.dev/blog/best-mcp-servers-engineering-teams" rel="noopener noreferrer"&gt;best MCP servers for engineering teams&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For durable team choices, compare the &lt;a href="https://www.getlockstep.dev/blog/best-decision-log-tools-product-engineering" rel="noopener noreferrer"&gt;best decision log tools for product and engineering&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep is the shared home for accepted product and engineering decisions inside the context stack.&lt;/p&gt;

&lt;p&gt;Prompts can name the task. Files can guide the agent. Handoffs can carry unfinished state. MCP can retrieve live facts. Lockstep supplies the current choice, rationale, rejected options, owner, scope, and status when an agent is about to change affected work.&lt;/p&gt;

&lt;p&gt;Good context engineering does not make one mechanism remember everything. It gives the agent the right context from the right source at the right time.&lt;/p&gt;

</description>
      <category>agentmemory</category>
      <category>claudecode</category>
      <category>codingagents</category>
      <category>ai</category>
    </item>
    <item>
      <title>Why coding agent memory files go stale - and what teams should do instead</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Sun, 08 Nov 2026 04:01:16 +0000</pubDate>
      <link>https://dev.to/naman_here/why-coding-agent-memory-files-go-stale-and-what-teams-should-do-instead-1659</link>
      <guid>https://dev.to/naman_here/why-coding-agent-memory-files-go-stale-and-what-teams-should-do-instead-1659</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/coding-agent-memory-files-go-stale" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A coding agent reads a memory file that says the checkout migration is blocked on database approval.&lt;/p&gt;

&lt;p&gt;The approval landed last week. The migration shipped. The task closed. Nobody removed the note.&lt;/p&gt;

&lt;p&gt;The agent now plans around a blocker that no longer exists.&lt;/p&gt;

&lt;p&gt;This failure is easy to misdiagnose as weak retrieval. The agent retrieved the exact memory the team gave it. The problem is lifecycle: temporary state survived without an owner, status, or expiry, so old context still looked current.&lt;/p&gt;

&lt;h2&gt;
  
  
  The short answer
&lt;/h2&gt;

&lt;p&gt;Memory files go stale when they mix information with different lifetimes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;stable instructions&lt;/li&gt;
&lt;li&gt;personal preferences&lt;/li&gt;
&lt;li&gt;unfinished task state&lt;/li&gt;
&lt;li&gt;changing operational facts&lt;/li&gt;
&lt;li&gt;proposals&lt;/li&gt;
&lt;li&gt;accepted decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fix the structure:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Keep stable instructions in version-controlled project files.&lt;/li&gt;
&lt;li&gt;Keep temporary work in a handoff tied to a task and close it with the task.&lt;/li&gt;
&lt;li&gt;Query changing facts from live systems.&lt;/li&gt;
&lt;li&gt;Keep proposals separate from accepted decisions.&lt;/li&gt;
&lt;li&gt;Give durable records an owner, status, scope, date, and replacement link.&lt;/li&gt;
&lt;li&gt;Test retrieval from a fresh agent after changes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Do not solve stale memory by adding more memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why one memory file becomes a junk drawer
&lt;/h2&gt;

&lt;p&gt;A file often starts with a few useful notes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="p"&gt;-&lt;/span&gt; use pnpm
&lt;span class="p"&gt;-&lt;/span&gt; tests need local Redis
&lt;span class="p"&gt;-&lt;/span&gt; checkout migration blocked on approval
&lt;span class="p"&gt;-&lt;/span&gt; team considering event sourcing
&lt;span class="p"&gt;-&lt;/span&gt; retries capped at two
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These lines have different meanings.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;use pnpm&lt;/code&gt; is a stable instruction.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tests need local Redis&lt;/code&gt; is a project requirement.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;blocked on approval&lt;/code&gt; is temporary task state.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;considering event sourcing&lt;/code&gt; is a proposal.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;retries capped at two&lt;/code&gt; may be an accepted decision, but lacks scope and reason.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When every line looks identical, the agent cannot tell which one is current or authoritative.&lt;/p&gt;

&lt;h2&gt;
  
  
  Staleness has several forms
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The fact changed
&lt;/h3&gt;

&lt;p&gt;A deployment, owner, ticket, or customer configuration moved on. A copied note did not.&lt;/p&gt;

&lt;h3&gt;
  
  
  The task ended
&lt;/h3&gt;

&lt;p&gt;A blocker or next step survived after the branch merged.&lt;/p&gt;

&lt;h3&gt;
  
  
  A proposal was rejected
&lt;/h3&gt;

&lt;p&gt;Search retrieves the idea without the verdict.&lt;/p&gt;

&lt;h3&gt;
  
  
  A decision was superseded
&lt;/h3&gt;

&lt;p&gt;The old record remains useful history but no longer governs current work.&lt;/p&gt;

&lt;h3&gt;
  
  
  The scope changed
&lt;/h3&gt;

&lt;p&gt;A rule written for one provider or service gets applied everywhere.&lt;/p&gt;

&lt;h3&gt;
  
  
  The instruction conflicts
&lt;/h3&gt;

&lt;p&gt;Root, nested, personal, and team rules disagree. The agent may pick one arbitrarily.&lt;/p&gt;

&lt;p&gt;The maintenance strategy depends on which form you have.&lt;/p&gt;

&lt;h2&gt;
  
  
  Split memory by lifecycle
&lt;/h2&gt;

&lt;p&gt;Use separate homes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Home&lt;/th&gt;
&lt;th&gt;Maintenance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stable project rule&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, scoped rules&lt;/td&gt;
&lt;td&gt;Review with code changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Personal learning&lt;/td&gt;
&lt;td&gt;local auto memory&lt;/td&gt;
&lt;td&gt;Person reviews or deletes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task state&lt;/td&gt;
&lt;td&gt;handoff linked to task&lt;/td&gt;
&lt;td&gt;Close or archive at completion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live fact&lt;/td&gt;
&lt;td&gt;source tool or MCP&lt;/td&gt;
&lt;td&gt;Query when needed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proposal&lt;/td&gt;
&lt;td&gt;proposal queue or draft decision&lt;/td&gt;
&lt;td&gt;Accept, reject, or expire&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accepted decision&lt;/td&gt;
&lt;td&gt;ADR or shared decision system&lt;/td&gt;
&lt;td&gt;Supersede with links&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A tool may store several categories, but the records still need distinct fields and lifecycle rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add fields that let an agent judge freshness
&lt;/h2&gt;

&lt;p&gt;A durable record should answer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;owner&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Payments team&lt;/span&gt;
&lt;span class="na"&gt;scope&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;services/checkout, Provider A&lt;/span&gt;
&lt;span class="na"&gt;status&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;accepted&lt;/span&gt;
&lt;span class="na"&gt;created&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2026-04-12&lt;/span&gt;
&lt;span class="na"&gt;review_by&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2026-10-12&lt;/span&gt;
&lt;span class="na"&gt;supersedes&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;PAY-09&lt;/span&gt;
&lt;span class="na"&gt;superseded_by&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
&lt;span class="na"&gt;source&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;customer-contract-17&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Not every note needs every field. Significant team decisions do. Temporary handoffs need task and status. Live facts need a verifiable source and observation time.&lt;/p&gt;

&lt;p&gt;A timestamp alone is weak. The newest note may still be an unapproved proposal. Status and ownership establish meaning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mark replacement instead of rewriting history
&lt;/h2&gt;

&lt;p&gt;When a decision changes, keep the old record but mark it superseded and link the replacement.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Status: Superseded by PAY-24
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The new record should name what it replaces. This lets an agent follow an old search result to the current answer and preserves the reason the system used to behave differently.&lt;/p&gt;

&lt;p&gt;Deleting history removes useful context. Leaving old history unmarked creates false current context.&lt;/p&gt;

&lt;h2&gt;
  
  
  Query changing facts live
&lt;/h2&gt;

&lt;p&gt;Do not persist facts that the source can answer better:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;current production version&lt;/li&gt;
&lt;li&gt;incident state&lt;/li&gt;
&lt;li&gt;ticket owner&lt;/li&gt;
&lt;li&gt;feature flag value&lt;/li&gt;
&lt;li&gt;deployment health&lt;/li&gt;
&lt;li&gt;customer configuration&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Persist the instruction to check the source. Retrieve the fact when it becomes action-driving.&lt;/p&gt;

&lt;p&gt;This reduces duplicates and keeps freshness tied to the system that owns the state.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make task handoffs expire with tasks
&lt;/h2&gt;

&lt;p&gt;Every handoff should include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;task or issue ID&lt;/li&gt;
&lt;li&gt;branch or worktree&lt;/li&gt;
&lt;li&gt;owner&lt;/li&gt;
&lt;li&gt;status&lt;/li&gt;
&lt;li&gt;updated time&lt;/li&gt;
&lt;li&gt;done and next&lt;/li&gt;
&lt;li&gt;blockers&lt;/li&gt;
&lt;li&gt;cleanup rule&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When the task completes, remove &lt;code&gt;.handoffs/current.md&lt;/code&gt; or mark it closed and move it to history. Add cleanup to the definition of done so it does not depend on memory.&lt;/p&gt;

&lt;p&gt;A simple CI or review check can flag a current handoff that points to a closed task or has not changed for a chosen period.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep instruction files short and referenced
&lt;/h2&gt;

&lt;p&gt;Cursor recommends focused rules and referencing source files rather than copying their content. Claude Code recommends concise &lt;code&gt;CLAUDE.md&lt;/code&gt; files and warns that conflicting instructions may be followed arbitrarily.&lt;/p&gt;

&lt;p&gt;Instead of pasting a decision into three rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Before changing payment retries, read the current payment decision index.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then maintain one record. A pointer can still become stale, but it is easier to check than several duplicated explanations.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://cursor.com/docs/rules" rel="noopener noreferrer"&gt;Cursor Rules&lt;/a&gt; and &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Build maintenance into the workflow
&lt;/h2&gt;

&lt;h3&gt;
  
  
  On task close
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;archive or delete temporary handoff&lt;/li&gt;
&lt;li&gt;resolve blockers&lt;/li&gt;
&lt;li&gt;promote reusable learning into the right project rule&lt;/li&gt;
&lt;li&gt;discard intermediate guesses&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  On decision acceptance
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;mark the new record accepted&lt;/li&gt;
&lt;li&gt;mark replaced records superseded&lt;/li&gt;
&lt;li&gt;update the index&lt;/li&gt;
&lt;li&gt;link affected code, tasks, and documents&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  On code review
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;check whether instructions still match the implementation&lt;/li&gt;
&lt;li&gt;check whether the PR changes an accepted decision&lt;/li&gt;
&lt;li&gt;require a decision update when necessary&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  On a schedule
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;review records past their &lt;code&gt;review_by&lt;/code&gt; date&lt;/li&gt;
&lt;li&gt;find current records with missing owners&lt;/li&gt;
&lt;li&gt;find conflicting active decisions in the same scope&lt;/li&gt;
&lt;li&gt;find handoffs attached to closed tasks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Automation should surface candidates. Owners still decide whether the context is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test for staleness from a fresh agent
&lt;/h2&gt;

&lt;p&gt;Ask a clean session:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is currently blocking checkout migration?&lt;/li&gt;
&lt;li&gt;Which retry decision is active for Provider A?&lt;/li&gt;
&lt;li&gt;Which record did it replace?&lt;/li&gt;
&lt;li&gt;Who owns the decision?&lt;/li&gt;
&lt;li&gt;What live source confirms the deployed version?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then change one fact, close one task, and supersede one decision. Ask again.&lt;/p&gt;

&lt;p&gt;The setup passes when the agent retrieves the current answer, follows replacement links, and does not treat closed task state as active.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common bad fixes
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Append-only memory with no status
&lt;/h3&gt;

&lt;p&gt;History accumulates, but nothing tells retrieval what wins.&lt;/p&gt;

&lt;h3&gt;
  
  
  Automatic deletion by age
&lt;/h3&gt;

&lt;p&gt;Old decisions may remain valid for years. Lifecycle and ownership matter more than age alone.&lt;/p&gt;

&lt;h3&gt;
  
  
  One current summary rewritten in place
&lt;/h3&gt;

&lt;p&gt;This removes history and makes old code harder to understand. Keep replacement links.&lt;/p&gt;

&lt;h3&gt;
  
  
  Trusting semantic search ranking
&lt;/h3&gt;

&lt;p&gt;Similarity cannot establish approval or current status.&lt;/p&gt;

&lt;h3&gt;
  
  
  Copying live data into every repository
&lt;/h3&gt;

&lt;p&gt;Duplicates drift at different times. Query the owning source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related guides
&lt;/h2&gt;

&lt;p&gt;For the full map of memory layers and how they fail, start with the &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory guide&lt;/a&gt;. For the wider market, see the &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;best tools for AI coding agent context&lt;/a&gt; and &lt;a href="https://www.getlockstep.dev/blog/best-mcp-memory-servers-teams" rel="noopener noreferrer"&gt;best MCP memory servers for teams&lt;/a&gt;. For exact storage boundaries, use &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For managed choices, compare &lt;a href="https://www.getlockstep.dev/blog/best-decision-log-tools-product-engineering" rel="noopener noreferrer"&gt;decision log tools for product and engineering&lt;/a&gt;. For repository decision lifecycle, see &lt;a href="https://www.getlockstep.dev/blog/adrs-for-ai-coding-agents" rel="noopener noreferrer"&gt;ADRs for AI coding agents&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep gives team decisions the lifecycle fields generic memory files often miss: accepted choice, rationale, rejected options, owner, scope, status, and explicit replacement.&lt;/p&gt;

&lt;p&gt;Agents retrieve the current record through MCP. Product and engineering can review or supersede the same decision outside the coding session. Temporary task state stays in handoffs, changing facts stay in live systems, and instruction files point to the current decision instead of copying it.&lt;/p&gt;

&lt;p&gt;The goal is not a memory file that never changes. It is a context system that makes change visible before stale information changes the code.&lt;/p&gt;

</description>
      <category>agentmemory</category>
      <category>claudecode</category>
      <category>codingagents</category>
      <category>ai</category>
    </item>
    <item>
      <title>AI coding agent memory: why agents forget, and the fix</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Sat, 07 Nov 2026 04:01:51 +0000</pubDate>
      <link>https://dev.to/naman_here/ai-coding-agent-memory-why-agents-forget-and-the-fix-25j7</link>
      <guid>https://dev.to/naman_here/ai-coding-agent-memory-why-agents-forget-and-the-fix-25j7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On a Monday, your agent does the right thing. You tell it the team settled the auth rename weeks ago: &lt;code&gt;POST /login&lt;/code&gt; became &lt;code&gt;/session&lt;/code&gt;, the old route is dead, don't call it. It builds against &lt;code&gt;/session&lt;/code&gt;. Clean PR, merged.&lt;/p&gt;

&lt;p&gt;On Tuesday, a different session starts. Maybe a different engineer, maybe you with a fresh context window. The agent reads the code, finds a stale client still importing the old path, and helpfully "fixes" the inconsistency by calling &lt;code&gt;/login&lt;/code&gt; again. The decision that took a meeting, a Slack thread, and a small argument to settle gets unmade by a tool that was never told it existed.&lt;/p&gt;

&lt;p&gt;That is not a model quality problem. The agent did what a competent person would do with no memory of the meeting. It has no memory of the meeting.&lt;/p&gt;

&lt;p&gt;This page is the map for that problem: why agents forget, the five layers of memory teams use to fix it, how each one fails, and how to decide what goes where. The deeper guides for specific tools are linked throughout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why do AI coding agents forget?
&lt;/h2&gt;

&lt;p&gt;An AI coding agent's working memory is its &lt;a href="https://www.getlockstep.dev/glossary/context-window" rel="noopener noreferrer"&gt;context window&lt;/a&gt;. When the session ends, so does the window. Whatever was decided in yesterday's conversation, last week's pairing session, or the Slack thread where the pricing rule changed does not exist for today's run unless it was written somewhere the agent reads.&lt;/p&gt;

&lt;p&gt;Humans route around this without noticing. You overhear things at standup, absorb conventions in code review, and know not to touch billing on a Friday because of an incident nobody wrote down. As we've argued before, &lt;a href="https://www.getlockstep.dev/blog/load-bearing-hallway" rel="noopener noreferrer"&gt;the hallway is load-bearing&lt;/a&gt;, and the agent is never in it.&lt;/p&gt;

&lt;p&gt;But "the session ended" is only half the explanation. The other half is that most repositories preserve outcomes much better than reasoning.&lt;/p&gt;

&lt;h3&gt;
  
  
  The code shows the answer, not the debate
&lt;/h3&gt;

&lt;p&gt;Picture an agent opening an order service and finding a retry loop capped at two attempts. Three attempts would improve success rates in most systems, so the agent raises the limit and adds a test. The diff is clean.&lt;/p&gt;

&lt;p&gt;What the repository doesn't say is that the payment provider can repeat a capture on the third attempt. The team tried several strategies, rejected a broader retry, and accepted a lower success rate to protect customers from duplicate charges.&lt;/p&gt;

&lt;p&gt;The agent understood the code. It didn't understand why this code is intentionally different from the obvious design. Intentional compromises often look like technical debt: duplicate paths that serve different customer guarantees, an extra write required for audit, a slower call that protects ordering, a feature flag kept for rollback.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tests, commits, and transcripts each carry part of the why
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tests&lt;/strong&gt; enforce behavior. &lt;code&gt;it('stops after two attempts to avoid duplicate provider capture')&lt;/code&gt; is a good name, but it still won't list the rejected designs, the owner, or what would have to change before the limit can move.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commits and PRs&lt;/strong&gt; hold evidence, but a decision can span several commits, the message may describe the edit rather than the tradeoff, and the agent changing the file today may never search a six-month-old review thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transcripts&lt;/strong&gt; hold too much and too little. Search over raw history can return the proposal, the objection that killed it, the accepted answer, and a later reversal, all semantically similar. Nothing says which one is current.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the problem is less "the agent has no memory" and more "the team never gave the reasoning a home the agent will reliably read."&lt;/p&gt;

&lt;h2&gt;
  
  
  The five layers of agent memory
&lt;/h2&gt;

&lt;p&gt;Teams that get this right don't build one universal memory. They separate context by how long it should live, who it belongs to, and who can change it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What it holds&lt;/th&gt;
&lt;th&gt;Shared with the team?&lt;/th&gt;
&lt;th&gt;Lifetime&lt;/th&gt;
&lt;th&gt;Typical failure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rules files (&lt;code&gt;CLAUDE.md&lt;/code&gt;, &lt;code&gt;AGENTS.md&lt;/code&gt;, &lt;code&gt;.cursor/rules&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Commands, conventions, hard boundaries, pointers&lt;/td&gt;
&lt;td&gt;Yes, through Git&lt;/td&gt;
&lt;td&gt;Until someone edits it&lt;/td&gt;
&lt;td&gt;Grows into a journal; goes stale silently&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto memory&lt;/td&gt;
&lt;td&gt;One user's recurring learnings and preferences&lt;/td&gt;
&lt;td&gt;No, machine-local&lt;/td&gt;
&lt;td&gt;Until reviewed or deleted&lt;/td&gt;
&lt;td&gt;Personal notes treated as team policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task handoff&lt;/td&gt;
&lt;td&gt;Done, next, blockers, tests, branch&lt;/td&gt;
&lt;td&gt;Yes, if committed&lt;/td&gt;
&lt;td&gt;Until the task closes&lt;/td&gt;
&lt;td&gt;Outlives the task and looks current&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live context over MCP&lt;/td&gt;
&lt;td&gt;Tickets, deploys, incidents, ownership, docs&lt;/td&gt;
&lt;td&gt;Yes, by server policy&lt;/td&gt;
&lt;td&gt;Always current at query time&lt;/td&gt;
&lt;td&gt;Unranked results with no status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approved team decisions&lt;/td&gt;
&lt;td&gt;Choice, reason, rejected options, owner, scope, status&lt;/td&gt;
&lt;td&gt;Yes, by design&lt;/td&gt;
&lt;td&gt;Until superseded, with history kept&lt;/td&gt;
&lt;td&gt;Not captured at the moment of the call&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each layer is cheap on its own. Problems start when one is asked to do another's job.&lt;/p&gt;

&lt;h3&gt;
  
  
  Rules files: tell the agent how to work and where to look
&lt;/h3&gt;

&lt;p&gt;Build commands, repository layout, naming conventions, and hard boundaries shouldn't be rediscovered every session. Put them in the file your client loads from the repository: &lt;code&gt;CLAUDE.md&lt;/code&gt; for Claude Code, &lt;code&gt;AGENTS.md&lt;/code&gt; as the vendor-neutral baseline, &lt;code&gt;.claude/rules/&lt;/code&gt; or &lt;code&gt;.cursor/rules&lt;/code&gt; for path-scoped detail.&lt;/p&gt;

&lt;p&gt;The best rules files point rather than absorb:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Payments&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Run &lt;span class="sb"&gt;`pnpm test payments`&lt;/span&gt; before the full suite.
&lt;span class="p"&gt;-&lt;/span&gt; Never retry non-idempotent capture automatically.
&lt;span class="p"&gt;-&lt;/span&gt; Before changing retries, idempotency, ordering, or provider flows,
  read matching accepted records in &lt;span class="sb"&gt;`docs/adr/`&lt;/span&gt; and follow replacement links.
  If a change conflicts with a current decision, name the conflict in the plan.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep them short. Instructions enter the context window and compete with the task. Claude Code's documentation recommends concise &lt;code&gt;CLAUDE.md&lt;/code&gt; content and scoped rules for details; Cursor likewise recommends focused rules that reference files instead of copying them. Instructions guide behavior; they don't enforce it, so hard boundaries still need tests and permissions.&lt;/p&gt;

&lt;p&gt;Sources: &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory&lt;/a&gt; and &lt;a href="https://cursor.com/docs/rules" rel="noopener noreferrer"&gt;Cursor Rules&lt;/a&gt;. For the full breakdown, see &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt; and our guide to &lt;a href="https://www.getlockstep.dev/blog/agents-md" rel="noopener noreferrer"&gt;AGENTS.md&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Auto memory: a personal accelerator, not a team authority
&lt;/h3&gt;

&lt;p&gt;Claude Code auto memory stores project-specific learnings as plain Markdown: a test quirk, a debugging command, a preference that should come back next time. It's useful precisely because it's automatic.&lt;/p&gt;

&lt;p&gt;It's also machine-local. It isn't shared across machines or cloud environments, and independent subagents don't automatically inherit it. That makes it a good personal tool and a weak place for anything the team must follow. When a learning should apply to everyone, promote it into the rules file. When it's really a choice, promote it into the decision layer, where an owner accepts it. More on the distinction in the glossary entry for &lt;a href="https://www.getlockstep.dev/glossary/agent-memory" rel="noopener noreferrer"&gt;agent memory&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Handoff notes: unfinished work, nothing more
&lt;/h3&gt;

&lt;p&gt;A transcript is a poor handoff. It includes exploration, errors, and paths the agent abandoned. A handoff should be short enough to read in a minute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Checkout migration handoff&lt;/span&gt;

Done: read path moved to v2 schema.
Next: migrate write path behind &lt;span class="sb"&gt;`checkout_v2`&lt;/span&gt; flag.
Tests: unit suite passes; staging backfill not run.
Constraint: dual write remains until DEC-42 is superseded.
Open risk: rollback query needs review.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commit it with the branch when another person or tool might continue the work, and delete it when the task ends. Anthropic's guidance on &lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;long-running agents&lt;/a&gt; uses the same pattern: durable progress artifacts let a fresh context window orient itself without replaying the old conversation. The Claude Code specifics, including resume, &lt;code&gt;/compact&lt;/code&gt;, and plugins, are in &lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;Claude Code keeps forgetting context&lt;/a&gt;; the Cursor equivalent is &lt;a href="https://www.getlockstep.dev/blog/cursor-keeps-losing-context-mid-project" rel="noopener noreferrer"&gt;Cursor keeps losing context mid-project&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Live context via MCP: query it, don't copy it
&lt;/h3&gt;

&lt;p&gt;Deployment state, incident status, ticket ownership, and customer configuration change too fast for static files. A copied note saying "staging is on v2" goes wrong without anyone noticing. A live tool can say what is running now, with its own timestamp.&lt;/p&gt;

&lt;p&gt;MCP lets the agent query the owning system when the fact drives an action. Persistent memory should hold the pointer and the retrieval rule, not a duplicate of every volatile fact. MCP is a connection, though, not a guarantee of meaning: a generic memory server can return a proposal and its replacement side by side. For the options, see &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;the best tools for AI coding agent context&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Approved team decisions: the layer most teams skip
&lt;/h3&gt;

&lt;p&gt;The most important team context is often neither an instruction nor a live fact. It's a choice: use an outbox instead of direct publish, keep a synchronous confirmation path, cap provider retries at two, delay a migration until one customer leaves the old API.&lt;/p&gt;

&lt;p&gt;A record that an agent can actually apply looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Payment capture retry limit&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; Status: Accepted
&lt;span class="p"&gt;-&lt;/span&gt; Owner: Payments team
&lt;span class="p"&gt;-&lt;/span&gt; Scope: card capture through Provider A
&lt;span class="p"&gt;-&lt;/span&gt; Decided: 2026-04-12

&lt;span class="gu"&gt;## Context&lt;/span&gt;
Provider A can repeat capture after a delayed third retry. Its idempotency
window does not cover our full retry schedule.

&lt;span class="gu"&gt;## Decision&lt;/span&gt;
Attempt capture at most twice for Provider A.

&lt;span class="gu"&gt;## Rejected options&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Three retries: unacceptable duplicate-charge risk.
&lt;span class="p"&gt;-&lt;/span&gt; Queue-only capture: misses the checkout response window.

&lt;span class="gu"&gt;## Consequences&lt;/span&gt;
Some recoverable payments fail sooner. Revisit when Provider A supports a
longer idempotency window.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the useful core of the &lt;a href="https://www.cognitect.com/blog/2011/11/15/documenting-architecture-decisions" rel="noopener noreferrer"&gt;architecture decision record&lt;/a&gt; format, with owner, scope, rejected options, and a revisit condition added so an agent can apply it correctly.&lt;/p&gt;

&lt;p&gt;Four properties separate decision memory from a wiki with good intentions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Captured at the moment of the call.&lt;/strong&gt; In the PR discussion, the review, or the Slack thread, not reconstructed in a retro. A decision nobody records at the time gets re-litigated by the next six sessions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ranked by blast radius.&lt;/strong&gt; The auth rename matters to almost everything; the chart-library choice matters to one dashboard. Memory that can't tell the difference either floods the context window or buries the decision that was about to be broken.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Briefed before code is written.&lt;/strong&gt; A log the agent never reads is documentation for humans. The record earns its keep on the read side.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Superseded, not rewritten.&lt;/strong&gt; When a decision is reversed, the old entry stays, marked as replaced, with the reason. Otherwise an agent will resurrect the thing you killed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://www.getlockstep.dev/blog/why-claude-code-forgets-architecture-decisions" rel="noopener noreferrer"&gt;Why Claude Code forgets architecture decisions&lt;/a&gt; walks through this loop for Claude Code specifically.&lt;/p&gt;

&lt;h2&gt;
  
  
  How agent memory goes wrong
&lt;/h2&gt;

&lt;p&gt;Most failures aren't "the agent remembered nothing." They're the agent remembering the wrong thing with confidence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The newest note wins.&lt;/strong&gt; A recent note may be a proposal. Without a status field, retrieval treats it as equal to, or better than, the accepted answer. Status and ownership matter more than timestamps. This is the main reason &lt;a href="https://www.getlockstep.dev/blog/coding-agent-memory-files-go-stale" rel="noopener noreferrer"&gt;coding agent memory files go stale&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One person's memory becomes policy.&lt;/strong&gt; Your agent learns "the events table is append-only." Your teammate's agent never does. The team's decisions fragment across personal memories, which is a direct route to &lt;a href="https://www.getlockstep.dev/glossary/decision-drift" rel="noopener noreferrer"&gt;decision drift&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parallel agents split the truth.&lt;/strong&gt; Two agents on separate branches each make a locally sensible change built on different assumptions: one shortens the trial to 7 days, another rewrites the billing email and still promises 14. Different files, clean merge, inconsistent product. See &lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;two AI agents, one codebase&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Switching tools resets the context.&lt;/strong&gt; The code moves with you from Cursor to Claude Code; the reasoning stays in the old tool's chat and memory. See &lt;a href="https://www.getlockstep.dev/blog/share-memory-cursor-claude-code" rel="noopener noreferrer"&gt;sharing memory between Cursor and Claude Code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The cost lands outside the IDE.&lt;/strong&gt; Rework is the obvious cost. The subtler one is a product that slowly stops matching what the team agreed: pricing logic changes shape, a cut feature comes back. In &lt;a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/" rel="noopener noreferrer"&gt;METR's 2025 study of experienced open-source developers&lt;/a&gt;, developers using AI tools took 19% longer to complete their tasks while believing they were faster. The study has its own scope and caveats, but review, correction, and rework are where context gaps get paid for. Demand for a fix is public too: an engineering manager's &lt;a href="https://github.com/anthropics/claude-code/issues/38536" rel="noopener noreferrer"&gt;feature request for shared team memory in Claude Code&lt;/a&gt; calls individual-only memory "the single biggest efficiency bottleneck for teams adopting Claude Code seriously."&lt;/p&gt;

&lt;h2&gt;
  
  
  What shouldn't be remembered at all?
&lt;/h2&gt;

&lt;p&gt;More memory can reduce quality when it adds contradiction and retrieval noise. Anthropic describes context as a finite resource: the goal is the smallest high-value set, not maximum recall (&lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;Effective context engineering for AI agents&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Usually discard:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;routine tool output the source can reproduce&lt;/li&gt;
&lt;li&gt;generated plans that were never accepted&lt;/li&gt;
&lt;li&gt;intermediate guesses and temporary errors after the task closes&lt;/li&gt;
&lt;li&gt;duplicate summaries and copies of live data&lt;/li&gt;
&lt;li&gt;raw secrets and sensitive transcripts&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How do you decide where something goes?
&lt;/h2&gt;

&lt;p&gt;Sort by how fast it changes and how many people depend on it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Slow and universal:&lt;/strong&gt; rules file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow and personal:&lt;/strong&gt; auto memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Temporary and task-specific:&lt;/strong&gt; handoff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Changes outside the repo:&lt;/strong&gt; query live over MCP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A choice the team made:&lt;/strong&gt; decision record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then give anything durable six fields, so it's usable context rather than "related text":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Scope:&lt;/strong&gt; which project, service, or files?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Owner:&lt;/strong&gt; who can confirm or change it?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Status:&lt;/strong&gt; proposed, accepted, rejected, superseded?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time:&lt;/strong&gt; when was it learned or accepted?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replacement:&lt;/strong&gt; what newer record wins?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Source:&lt;/strong&gt; where can an agent verify it?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The faster something changes and the more people rely on it, the less it belongs as copied prose in a repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test it with a fresh session
&lt;/h2&gt;

&lt;p&gt;The session that wrote a memory already knows the answer, so don't test with it. Open a new session, ideally in a different client or on another machine, and ask:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is this branch trying to finish, and which command verifies it?&lt;/li&gt;
&lt;li&gt;Why are capture attempts capped at two? Does that apply to every provider?&lt;/li&gt;
&lt;li&gt;Which alternative was rejected, and who owns the decision?&lt;/li&gt;
&lt;li&gt;Which live system confirms the current deployment?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then ask it to plan a three-retry refactor. A working setup names the conflict before editing code. Finally, change one decision and one live fact and ask again. The current answer should come back, and the superseded one shouldn't be presented as equally valid.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Lockstep does about the decision layer
&lt;/h2&gt;

&lt;p&gt;We built Lockstep for the fifth layer, because it's the one the other four keep pointing at and nobody owns.&lt;/p&gt;

&lt;p&gt;Lockstep captures decisions where they're made (Slack is the most mature source; Notion, Jira, Confluence, Google Docs, and GitHub PRs are supported too) and asks the owner to approve each one with a click. Approved decisions keep their rationale, rejected options, scope, and replacement history. Before an agent writes code, Claude Code, Cursor, or any MCP-compatible agent can pull the relevant ones through the &lt;code&gt;get_product_context&lt;/code&gt; tool. A PR check flags changes that may conflict with an approved decision; it warns by default, and blocking is opt-in.&lt;/p&gt;

&lt;p&gt;It doesn't replace your rules files, auto memory, handoffs, or other MCP servers. They tell the agent how to work and what's happening now; Lockstep tells it what the team decided. It's open source under Apache-2.0, self-hostable, and early: we're working with design partners now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Go deeper
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;Claude Code keeps forgetting context&lt;/a&gt;: sessions, &lt;code&gt;/compact&lt;/code&gt;, plugins, and what to save between sessions&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/blog/why-claude-code-forgets-architecture-decisions" rel="noopener noreferrer"&gt;Why Claude Code forgets architecture decisions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/blog/coding-agent-memory-files-go-stale" rel="noopener noreferrer"&gt;Why coding agent memory files go stale&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.getlockstep.dev/blog/share-memory-cursor-claude-code" rel="noopener noreferrer"&gt;How to share memory between Cursor and Claude Code&lt;/a&gt;, including switching tools&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/blog/cursor-keeps-losing-context-mid-project" rel="noopener noreferrer"&gt;Cursor keeps losing context mid-project&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.getlockstep.dev/blog/two-ai-agents-one-codebase-shared-memory" rel="noopener noreferrer"&gt;Two AI agents, one codebase&lt;/a&gt;: worktrees, handoffs, and shared decisions&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.getlockstep.dev/blog/agents-md" rel="noopener noreferrer"&gt;AGENTS.md&lt;/a&gt;: what a vendor-neutral rules file can and can't carry&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;The best tools for AI coding agent context&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.getlockstep.dev/glossary/agent-memory" rel="noopener noreferrer"&gt;Agent memory&lt;/a&gt;, defined&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agentmemory</category>
      <category>claudecode</category>
      <category>codingagents</category>
      <category>ai</category>
    </item>
    <item>
      <title>Claude Code keeps forgetting context? What to save where</title>
      <dc:creator>Naman Jain</dc:creator>
      <pubDate>Fri, 06 Nov 2026 04:02:45 +0000</pubDate>
      <link>https://dev.to/naman_here/claude-code-keeps-forgetting-context-what-to-save-where-4f1e</link>
      <guid>https://dev.to/naman_here/claude-code-keeps-forgetting-context-what-to-save-where-4f1e</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.getlockstep.dev/blog/claude-code-keeps-forgetting-context" rel="noopener noreferrer"&gt;getlockstep.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Claude Code spends an hour tracing an authentication bug. It finds that the token refresh path must stay separate because mobile clients retry differently. It changes two files, runs the focused tests, and leaves one failing integration test for tomorrow.&lt;/p&gt;

&lt;p&gt;The next session opens the same repository and sees the code. It doesn't know which paths were ruled out, why the split is intentional, or which test is still failing. You explain the work again.&lt;/p&gt;

&lt;p&gt;That feels like one memory failure. It's usually four:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the previous conversation wasn't resumed&lt;/li&gt;
&lt;li&gt;stable project instructions existed only in chat&lt;/li&gt;
&lt;li&gt;unfinished work had no handoff&lt;/li&gt;
&lt;li&gt;the reason behind a team decision had no current shared record&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Saving more transcript fixes none of them well. Claude Code gives you six different continuity mechanisms; the trick is matching each kind of context to the right one. (For why agents forget in general, and how the same layers apply to every tool, start with the &lt;a href="https://www.getlockstep.dev/blog/persistent-memory-ai-coding-agents" rel="noopener noreferrer"&gt;AI coding agent memory guide&lt;/a&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Every Claude Code memory option, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;Best for&lt;/th&gt;
&lt;th&gt;Shared with teammates?&lt;/th&gt;
&lt;th&gt;Main risk&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Resume the session&lt;/td&gt;
&lt;td&gt;Continuing the same conversation&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Local, and tied to one client's session history&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;.claude/rules/&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Stable project instructions&lt;/td&gt;
&lt;td&gt;Yes, through Git&lt;/td&gt;
&lt;td&gt;Gets large or stale if used as a journal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto memory&lt;/td&gt;
&lt;td&gt;Your recurring learnings&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Machine-local and not authoritative&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task handoff file&lt;/td&gt;
&lt;td&gt;Unfinished branch state&lt;/td&gt;
&lt;td&gt;Yes, if committed&lt;/td&gt;
&lt;td&gt;Must be closed when the task ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plugin&lt;/td&gt;
&lt;td&gt;Reusable skills, agents, hooks, MCP setup&lt;/td&gt;
&lt;td&gt;Through distribution&lt;/td&gt;
&lt;td&gt;Packages behavior, not current truth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP server&lt;/td&gt;
&lt;td&gt;Live data and shared services&lt;/td&gt;
&lt;td&gt;Yes, by server policy&lt;/td&gt;
&lt;td&gt;Only as good as the source's status fields&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most teams need several of these at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I pick up exactly where I left off?
&lt;/h2&gt;

&lt;p&gt;Claude Code stores CLI sessions locally as you work. &lt;code&gt;claude --continue&lt;/code&gt; resumes the most recent interactive session in the current directory; &lt;code&gt;claude --resume&lt;/code&gt; opens a picker. A resumed session restores conversation history, tool calls, and results, which no summary file can match for speed.&lt;/p&gt;

&lt;p&gt;Name sessions you expect to come back to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/rename auth-refresh-debug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude &lt;span class="nt"&gt;--resume&lt;/span&gt; auth-refresh-debug
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Know the limits. The CLI, desktop app, web app, and VS Code extension keep different session histories. Sessions are local and can get very large. A session resumed after a long gap may be offered as a compacted summary. And launch flags aren't always restored: if a session depended on &lt;code&gt;--plugin-dir&lt;/code&gt;, you'll need to pass it again, or install the plugin properly. If a teammate or another environment needs the context, it has to live somewhere else.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/sessions" rel="noopener noreferrer"&gt;Claude Code session management&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why did Claude forget something mid-session?
&lt;/h2&gt;

&lt;p&gt;Usually compaction. Claude Code compacts automatically as the context window fills, and anything left out of the summary is no longer in context. You can steer it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/compact focus on the auth refresh bug, attempted fixes, current failing test,
and constraints we must preserve
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Compaction treats sources differently. Project-root &lt;code&gt;CLAUDE.md&lt;/code&gt;, auto memory, and several startup mechanisms reload afterwards. Instructions you only gave in conversation, and some path-scoped context, may be summarized away until a matching file is read again. That's the practical argument for moving anything you repeat into a file.&lt;/p&gt;

&lt;p&gt;Use &lt;code&gt;/context&lt;/code&gt; to see what's occupying the window and &lt;code&gt;/memory&lt;/code&gt; to check which memory files are loaded.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/context-window" rel="noopener noreferrer"&gt;Claude Code context window&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What belongs in CLAUDE.md?
&lt;/h2&gt;

&lt;p&gt;Anything you'd otherwise repeat in every session: build and test commands, repository layout, conventions, hard boundaries, and short pointers to deeper records.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Billing service&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; Run focused tests with &lt;span class="sb"&gt;`pnpm test billing`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; Do not make the event queue the only confirmation path.
&lt;span class="p"&gt;-&lt;/span&gt; Accepted architecture decisions are indexed in &lt;span class="sb"&gt;`docs/adr/README.md`&lt;/span&gt;.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code reads project &lt;code&gt;CLAUDE.md&lt;/code&gt; at session start, but as instructions, not enforced configuration. The documentation recommends keeping it under about 200 lines, because longer files use more context and reduce adherence. Put path-specific guidance in &lt;code&gt;.claude/rules/&lt;/code&gt;, and use &lt;code&gt;@path&lt;/code&gt; imports to share a common file such as &lt;code&gt;AGENTS.md&lt;/code&gt; across tools.&lt;/p&gt;

&lt;p&gt;Don't turn &lt;code&gt;CLAUDE.md&lt;/code&gt; into a transcript archive or a running task log. It should say how to work and where to look. The full boundary is in &lt;a href="https://www.getlockstep.dev/blog/claude-md-vs-agent-memory" rel="noopener noreferrer"&gt;CLAUDE.md vs agent memory&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory and CLAUDE.md&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What does auto memory remember, and what doesn't it?
&lt;/h2&gt;

&lt;p&gt;Auto memory is on by default. Claude saves project-specific learnings as plain Markdown on your machine: a test quirk, a debugging path, a preference that should come back next time.&lt;/p&gt;

&lt;p&gt;The boundary is in the same sentence: it's machine-local. It isn't shared across machines or cloud environments, and independent subagents don't automatically inherit the main conversation's memory. Everything is inspectable through &lt;code&gt;/memory&lt;/code&gt;, so review it and delete notes that have gone wrong rather than assuming they stay correct.&lt;/p&gt;

&lt;p&gt;Use it to make your own sessions faster. Don't let it be the only copy of an architecture choice, a policy, or an owner.&lt;/p&gt;

&lt;h2&gt;
  
  
  How should I hand off unfinished work?
&lt;/h2&gt;

&lt;p&gt;A handoff answers four questions: what's done, what's open, what the next session should do first, and which constraints it must preserve.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Auth refresh handoff&lt;/span&gt;

Done:
&lt;span class="p"&gt;-&lt;/span&gt; traced refresh failures to mobile retry timing
&lt;span class="p"&gt;-&lt;/span&gt; changed &lt;span class="sb"&gt;`token-store.ts`&lt;/span&gt; and &lt;span class="sb"&gt;`refresh.ts`&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; unit tests pass

Next:
&lt;span class="p"&gt;-&lt;/span&gt; fix &lt;span class="sb"&gt;`auth.integration.test.ts`&lt;/span&gt; case 14
&lt;span class="p"&gt;-&lt;/span&gt; rerun the mobile retry fixture

Do not change:
&lt;span class="p"&gt;-&lt;/span&gt; separate mobile refresh path; see ADR 0021

Branch: &lt;span class="sb"&gt;`fix/mobile-refresh`&lt;/span&gt;
Last good command: &lt;span class="sb"&gt;`pnpm test auth --filter refresh`&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Commit it with the branch when someone else, another machine, or another tool may continue. Delete it when the task ends, or a future session will treat old next steps as current. Anthropic's guidance for &lt;a href="https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents" rel="noopener noreferrer"&gt;long-running agents&lt;/a&gt; recommends the same thing: durable progress artifacts and clean state, so a fresh context window can orient itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is a memory plugin the answer?
&lt;/h2&gt;

&lt;p&gt;Claude Code plugins bundle skills, agents, hooks, MCP server configuration, and other reusable pieces, versioned and installable across projects and teammates. A plugin could package:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;code&gt;/handoff&lt;/code&gt; skill that writes your team's standard task summary&lt;/li&gt;
&lt;li&gt;a hook that reminds the agent to run tests before a PR&lt;/li&gt;
&lt;li&gt;a review agent with restricted tools&lt;/li&gt;
&lt;li&gt;an MCP connection to an internal system&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's distribution, not memory. A plugin can define &lt;em&gt;how&lt;/em&gt; to fetch or record context, but its files shouldn't hard-code fast-changing team state. Put the behavior in the plugin and the current data in the system it reads. Before installing anything sold as memory, ask where the data lives, who can change it, and how stale entries are retired.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/plugins" rel="noopener noreferrer"&gt;Create Claude Code plugins&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  When should Claude fetch context over MCP instead?
&lt;/h2&gt;

&lt;p&gt;When the context is shared across people or repositories, changes outside the codebase, or is too large for startup instructions. Instead of pasting a ticket, deploy status, or document into every session, Claude queries it when needed.&lt;/p&gt;

&lt;p&gt;MCP is a connection, not a guarantee of meaning. A generic memory server can return several similar notes; a docs server can find a proposal and its replacement. Review the permissions and retention of each server, and prefer sources that return scope and status, not just similar text.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;Connect Claude Code to tools via MCP&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should architecture decisions live?
&lt;/h2&gt;

&lt;p&gt;Not in a memory note. A memory can say, "We considered using the queue for confirmation." A decision record says whether the team accepted or rejected it, why, who owns the choice, and what replaced it. Without those fields, retrieval makes context loss worse: Claude finds an old proposal and a new choice and treats both as equal evidence.&lt;/p&gt;

&lt;p&gt;Give each decision:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the choice and its scope&lt;/li&gt;
&lt;li&gt;rationale and constraints&lt;/li&gt;
&lt;li&gt;rejected options&lt;/li&gt;
&lt;li&gt;owner and date&lt;/li&gt;
&lt;li&gt;status: proposed, accepted, deprecated, superseded&lt;/li&gt;
&lt;li&gt;a link to any replacement&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a single repository, an ADR can carry this. For choices that span product, engineering, several repositories, and several agents, use a shared system every tool can query. &lt;a href="https://www.getlockstep.dev/blog/why-claude-code-forgets-architecture-decisions" rel="noopener noreferrer"&gt;Why Claude Code forgets architecture decisions&lt;/a&gt; goes deeper on this layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick rule: sort by how fast it changes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Same conversation:&lt;/strong&gt; resume the session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow and universal:&lt;/strong&gt; &lt;code&gt;CLAUDE.md&lt;/code&gt; or a scoped rule.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slow and personal:&lt;/strong&gt; auto memory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Temporary and task-specific:&lt;/strong&gt; handoff file.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Repeatable behavior:&lt;/strong&gt; plugin.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Current external state:&lt;/strong&gt; MCP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A choice the team made:&lt;/strong&gt; decision record.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In a repository, that tends to look like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;repo/
  CLAUDE.md                  # stable instructions + pointers
  .claude/rules/             # path-scoped rules
  docs/adr/                  # repository decisions
  .handoffs/current.md       # temporary task state

plugin/
  skills/handoff/SKILL.md    # how to write the handoff
  hooks/                     # repeatable checks
  .mcp.json                  # shared service connections
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Before you close a meaningful session
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Name the session if you may resume it.&lt;/li&gt;
&lt;li&gt;Move repeated instructions into &lt;code&gt;CLAUDE.md&lt;/code&gt; or a scoped rule.&lt;/li&gt;
&lt;li&gt;Update the branch handoff with done, next, risks, and commands.&lt;/li&gt;
&lt;li&gt;Record any accepted architecture or product decision in the team's decision log.&lt;/li&gt;
&lt;li&gt;Commit the handoff and decision pointer with the code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then prove it. Open a fresh session, ideally on another machine or client, and ask: what is this branch trying to finish, which test is failing, why must the mobile refresh path stay separate, and which decision governs that? Then change the decision and ask again. If the answers require reopening the old transcript, the durable context is incomplete.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Lockstep fits
&lt;/h2&gt;

&lt;p&gt;Lockstep covers the one layer above that shouldn't depend on a single session or a single machine: accepted team decisions. Owners approve decisions captured from Slack, docs, tickets, and PRs; Claude Code reads the relevant ones through the &lt;code&gt;get_product_context&lt;/code&gt; MCP tool before it writes code, and a PR check flags changes that may conflict (warnings by default, blocking only if you opt in). Resume, &lt;code&gt;CLAUDE.md&lt;/code&gt;, auto memory, handoffs, and plugins keep doing their jobs alongside it.&lt;/p&gt;

&lt;p&gt;For moving work between tools, see &lt;a href="https://www.getlockstep.dev/blog/share-memory-cursor-claude-code" rel="noopener noreferrer"&gt;how to share memory between Cursor and Claude Code&lt;/a&gt;. For the wider landscape, compare the &lt;a href="https://www.getlockstep.dev/blog/best-tools-ai-coding-agent-context" rel="noopener noreferrer"&gt;best tools for AI coding agent context&lt;/a&gt; and &lt;a href="https://www.getlockstep.dev/blog/best-decision-log-tools-product-engineering" rel="noopener noreferrer"&gt;decision log tools for product and engineering&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>contextloss</category>
      <category>agentmemory</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
