--- title: "Memory for coding agents" description: "Memory for coding agents: Claude Code, Codex and Cursor start each task with your team's past decisions, review comments and conventions, with sources." canonical: https://past.dev/use-cases/coding-agents last-updated: 2026-11-24 --- # Memory for coding agents Source: https://past.dev/use-cases/coding-agents past.dev is a memory API. With its plugin, you get memory for coding agents like Claude Code, Codex and Cursor. Every session you have is saved when it ends. Before each new prompt, your agent gets the notes that match it: the decisions, the review comments, your team's conventions. So it starts each task with what you and your team already worked out. ## What you build A coding agent that remembers how your team works. Ask it why the retry queue was removed in March, and it has the answer. It also has the approach your reviewer rejected last week, and the way your team names a migration. All of it comes from sessions you already had, so nobody writes anything down twice. And when 3 people each run their own agents, every agent can check what the others found. ## The same agent without memory - **Every session starts from zero.** Your agent reads the code again. But the reasons behind the code were said in old sessions, and those are gone. - **A rules file only has what someone wrote.** You fill CLAUDE.md or AGENTS.md by hand, and it gets old. The whole file goes into every prompt, even when the task does not need it. - **A search in old sessions gives you too much.** You search for a word and get the whole transcript around it. Your agent reads a lot to find 1 sentence. - **An old decision looks as valid as a new one.** Your team moved from one approach to another. Your agent finds both and can't tell which one is current. - **Your teammate's sessions are on their laptop.** What their agent found yesterday, your agent can't see today. ## What past.dev changes - **Your agent checks the memory first.** Before each prompt, it gets the notes that match the task. Each note has its date and the session it came from. - **You write nothing.** Your sessions are saved when they end: what you typed and what your agent replied. Your files, your diffs and your command output stay on your machine. - **Your agent gets a short answer.** It gets the few notes that answer the question. - **Your agent gets the current decision.** When a decision changes, your agent gets the one that is true now. The old one stays in the history, with its date. - **1 memory for the team.** Everyone connects to the same project, each with their own identity. You choose what the whole team can see and what stays in a smaller group. ## Measured results - **61% more tasks done right**: Claude Code got 519 of 599 tasks right with past.dev. With its built-in memory: 323. 599 paired DolphinBench tasks, 3 users, Claude Opus 5.5 on both sides. [See the paired runs](/#compare) - **52% lower cost**: A Claude Code task costs $0.13 with past.dev. With Claude Code's built-in memory: $0.27. 599 paired DolphinBench tasks, 3 users, Claude Opus 5.5 on both sides. [See the paired runs](/#compare) - **98% fewer tokens**: 1 recall brings back 1,985 tokens, as a median. With a text search over the team's session transcripts: 121,074 tokens. 20 questions with a known answer, measured by the Invariant team. [Read the Invariant page](/blog/projects/invariant) - **25% less time**: The median Codex task takes 30 seconds with memory v2 and the past.dev plugin. With memory v2 alone: 40 seconds. 600 DolphinBench tasks, Codex on both sides. [Read the Codex post](/blog/codex-memory-v2-past-dev) We ran the Claude Code and Codex tests ourselves on DolphinBench, a benchmark from Mem0, so they are not official scores. The [DolphinBench page](/benchmarks/dolphinbench) has every setup. The Invariant number comes from the team's own test. ## Set it up with 1 prompt ```prompt Add past.dev memory to my coding sessions. Read the full instructions at https://past.dev/SKILL.md (with curl -fsSL when you can run commands) and follow them. Set it up for a team: install the past.dev plugin for the coding agent I use, connect it to 1 project that my team shares, and save the sessions already on this machine. Then tell me what you recall about this repository. ``` Paste it into Claude Code, Codex, Cursor or another coding agent. It follows our setup instructions and creates a project. You sign in once to keep it. ![Diagram of memory for coding agents. Three developers each run a coding agent with the past.dev plugin. When a session ends, each plugin sends what was said to one shared past.dev project. Before each prompt, each plugin recalls from that project as its developer's identity and adds the result to the prompt. Tool calls, file contents and diffs stay on each machine.](https://past.dev/images/guides/use-case-coding-agents.svg) *Every session is saved to 1 project when it ends. Before each prompt, your agent recalls from that project as you.* ## Examples - Project: [Invariant](/blog/projects/invariant). 3 people and their Claude Code agents work on 1 research question, with 1 shared memory of papers, results and sessions. - Post: [Codex memory v2 with past.dev](/blog/codex-memory-v2-past-dev). The test behind the Codex number, with the method and the full table. - Docs: [The Claude Code plugin](/docs/plugins/claude-code). How to install it, how to connect it, and what stays on your machine. ## Frequently asked questions ### Is my code sent to past.dev? Your files, your diffs and your command output stay on your machine. past.dev saves what you typed and what your agent replied, with the name of the project folder and the git branch. Anything that looks like a key or a token is replaced before it leaves your machine. ### How is this different from CLAUDE.md or AGENTS.md? You write a rules file by hand, and your agent gets the whole file with every prompt. With past.dev, your sessions are saved for you, and your agent gets only the notes that match the prompt, with their date and source. You can keep a short rules file for fixed conventions and use memory for everything else. ### Can my teammate's agent see what my agent saved? Yes, if you both use the same project and you saved it with no audience. To keep some sessions to a smaller group, connect your plugin with an audience. Each person's agent only gets what that person is allowed to see. ## Related - [Agent swarms](https://past.dev/use-cases/agent-swarms) - [Company brain](https://past.dev/use-cases/company-brain) - [Plugin docs](https://past.dev/docs/plugins/overview) - [Benchmarks](https://past.dev/benchmarks) - [Pricing](https://past.dev/pricing)