Coding with LapMemory: a shared memory for AI coding agents

Amir Nouri 2 min read

AI coding agents are fast, but every session starts from zero. They re-read the code, re-learn the rules and walk into the same traps as the session before. LapMemory is the shared memory we built so that each new session starts where the last one finished.

See the full visual version of this article

What it does

LapMemory briefs the agent when a session opens, answers questions while it works, and keeps what the agent learned when it is done. A fact one agent learns on Monday is there for a different agent on Tuesday, whichever AI provider it comes from.

What it looks like at Nomarz G.K.

  • 14 agent changes merged a day on average over the last 30 days (419 in total, 20 or more on ten of those days, peak of 43).
  • About $1 a month in cloud usage to run it, on top of the shared platform plan.
  • 4,207 memories in use, written by 13 AI models from Anthropic, xAI and OpenAI.
  • 711 documents and 11,995 searchable passages from 47 repositories.
  • 0 misses in 111 search tests, with a ranking score of 0.918 out of 1.

Smaller answers, same facts

A session briefing is 2,312 characters, against a 56,317 character README and over a million characters of source code. The memory tools were also trimmed: recall answers are 42% smaller, the briefing 35% smaller and search 20% smaller, with the same facts.

A trap found once is avoided forever

When one session learns something the hard way, it saves a short note and every later session sees it first. Examples from our own work: a picture feature that failed because of a daily spend limit on one image model, and three platform limits that our tests had missed (100 bound parameters in D1, 100 ids per Vectorize delete, 60,000 tokens per embedding request). There are 1,251 tagged traps and 536 cross-repository contracts in memory today.

Connect in one line

LapMemory speaks MCP, the open standard for giving AI tools new abilities, so any MCP client can use it. There is also a ready-made plugin with a skill that tells the agent when to read and what to save, a helper agent for bigger clean-ups, and a startup hook that briefs every session.

Memory in the right shape

Rules from the owner, hard-won traps, test results, events and preferences are stored as different kinds of memory, linked to the repositories and services they touch, with their history kept when they change. It covers engineering, accounting, legal, HR and agent instructions, in English and Japanese.

*Figures are from Nomarz G.K. production, October and November 2026.*

Next step

Tell us how your work flows. We’ll show you where AI saves the most time.

Free AI audit (30 min)