ResearchPublication
Prism
A post of June 2026 introducing Prism, a layer under Claude Code and Cursor that learns how a person works from their sessions and brings that knowledge back as memory whose confidence rises with evidence and decays when unused.

Where this comes from
This is a post on the Prosus AI Tech Blog, published on 25 June 2026 by Lara Baseggio, which names Lara Baseggio and Gaurav Maheshwari as its contributors. It introduces Prism, a tool whose code the post links on GitHub, in the ProsusAI organization, and it is listed here as published work on the Prosus AI Tech Blog. What follows is from the post.
What the post asks
AI coding tools such as Claude Code and Cursor forget what they learned from one session to the next, so the person using them explains the same things again and the tool learns them again. Prism is meant to remember for them: a lightweight layer under both tools that learns how a person works and brings the right context back when it is needed, across tools and projects.
The author has used it on four projects while working as usual, and found it had picked up things such as how charts should be plotted and how data should be aggregated and labeled in analysis work, to the point of thinking “Look, now it did it correctly”.
Knowledge that behaves like memory
The post’s idea is that what a tool should know about a person can be observed in their work, and that once captured it should behave like memory: it grows stronger when it proves useful and fades when it stops being true. Prism turns the patterns it sees into engrams, small units of knowledge that change over time. Each carries a confidence score that rises with evidence and decays without use.
It works on its own by default. A person can also mine past sessions of Claude Code or Cursor for observations, teach it a rule, correct an engram or archive one, ask what it holds and how often its knowledge is retrieved, and browse engrams, projects and registries in a dashboard on their own machine.
How it works
Observe
A hook that runs before each of the agent’s tool uses records what the agent did, scrubbed of secrets and compressed to its signal. It starts in the background and exits at once, so it never blocks the editor, and the observations are kept in a SQLite file on the person’s own machine.
Extract
Once enough observations have gathered, a fast, cheap model reads the recent ones and proposes candidate engrams: corrections, preferences, solutions, domain facts, procedures and recipes for errors. A stronger model approves, rejects or rewrites each one.
Feed back
Engrams return through two channels. A file,
prism.md, is put into the context when a session starts, with the person’s preferences and corrections and anything they taught Prism directly. An MCP server retrieves engrams during a session, when they apply.Update
Each engram’s confidence climbs as it proves useful and decays when it stops being true, so the conventions a person follows stay sharp and the stale ones sink and disappear.
From one person to a team
All of this is personal. The post then turns to sharing the best of it with a team.
- Promote turns an engram into a skill once it has earned real confidence and evidence.
- Mine runs Prism’s pipelines on a codebase to find patterns worth reusing: in an agentic codebase its architecture, memory, tools and safety, in another its design trade-offs, and in its git history what happened in the past.
- Share and query publishes skills to a team’s registry, asks it for advice, and audits code against it.
What it costs
Prism runs through the editor’s own command line tool, so there are no API keys and no SDK to manage. Each extraction makes two model calls, one for each phase. The post gives these estimates.
- new observations that trigger an extraction
- 15
- observations in a typical session
- 50 to 100
- entries at most in prism.md, roughly 1.5k tokens of the context window
- 10
With Claude Code the extraction uses Haiku 4.5 to propose and Sonnet 4.6 to validate, and with Cursor it uses Composer-2.5 and Sonnet 4.6. The models can be changed in the configuration, and automatic capture can be switched off, so that the commands are run by hand and the cost is easier to oversee.
Getting it
The code is on GitHub. The post’s instructions are to clone it, run its install script, start Prism in a project and work as usual, so that knowledge accumulates on its own. In a project it adds a hook and a file of knowledge for each editor; in the person’s home folder it keeps the observations, an index of confidence and the engrams themselves, as markdown files.
The post
PrismLara Baseggio, Gaurav Maheshwari. Prosus AI Tech Blog, 2026Authors
Lara Baseggio
Gaurav Maheshwari
References
- PrismLara Baseggio, Gaurav Maheshwari. Prosus AI Tech Blog, Medium, 25 June 2026
- ProsusAI/prismGitHub, the code the post links