Your AI's memory. Your say.
Memory for your AI assistants that you can read, correct and take with you.
PersonaKit reads the conversations you already have with your assistants, proposes short memories ("you prefer direct, practical feedback"), keeps the exact quote each one came from, and serves only what you allow back to your assistants over MCP. Everything runs on your own machine. There is no PersonaKit server and no account.
Status: 0.2, early release. This repository is being built in public. See docs/ROADMAP.md for what exists and what is planned.
- Every memory has a receipt. Each memory is stored with the quote it came from, in your own words, so you can see why your assistant believes something about you.
- You have the last word. Approve, restrict, hide or forget any memory. Restricted memories are never served. Assistants can read and propose, but only you can decide.
- Local by design. One SQLite file on your machine. No account, no PersonaKit server, no telemetry. Extraction uses a model you already use, and sends it only the turns you wrote.
- Small enough to read. A short pure-Python core with no required dependencies, so you can check what it does before you trust it with your conversations.
Requires Python 3.10+ and a signed-in claude or codex CLI for extraction.
git clone https://github.com/Yanir-R/personaKit.git
cd personaKit
pip install -e ".[mcp]"
personakit sweep --cli claude --model <model-name> --max-calls 20 # read sessions, extract memories
personakit review # optional: approve, restrict, hide, forget
personakit list # see what is stored
personakit stats # counts only, never memory text
personakit tidy # plan: fold near-identical twins, archive stale memories
personakit tidy --apply # carry the plan out (reverse any with `personakit undo <id>`)
personakit merges # list what was folded, with ids
personakit undo <memory-id> # reverse one fold or one stale archive
personakit digest # what changed in the last 7 days (local, prints memory text)
personakit hints <memory-id> --answers "<question>" # help the right question find a memory (never sent to assistants)
personakit serve # MCP server over stdio for your assistants
personakit forget <memory-id> # delete a memory and its quotes for goodsweep, list, stats, tidy and digest also take --json for stable, sorted machine-readable output.
The model name is always yours to choose. Nothing leaves your machine except the turns you wrote, sent to the model you named. See docs/PRIVACY.md.
personakit serve is a standard MCP server over stdio, so any client that can launch a local
MCP server can use it.
Claude Code
claude mcp add personakit -- personakit serveCodex (~/.codex/config.toml)
[mcp_servers.personakit]
command = "personakit"
args = ["serve"]Your assistant gets two tools:
| Tool | What it does |
|---|---|
personakit_read |
Returns only the memories relevant to a question (and, if the assistant says, to what it is about to do), each with whether you have confirmed it. Nothing relevant means an empty answer. Evidence quotes are sent only when the assistant asks for them, and a memory already sent in the same session comes back as its id only. |
personakit_propose |
Lets the assistant suggest a new memory. It is stored as unconfirmed until you review it. |
- Ingest reads local session files. Only the turns you wrote leave the parsing step.
- Extract asks a model you already use, through your own signed-in
claudeorcodexCLI, to propose memories. The CLI runs with its tools off, in an empty temporary directory. - Store keeps each memory with its source quote, a state, and a scope.
- Review is optional. Memories you never review are served marked unconfirmed; you can approve, restrict, hide or forget any of them at any time.
- Serve exposes the store to assistants over MCP: a small packet of relevant memories, with evidence on request.
- Tidy (on request) folds near-identical memories into one, and
archives unconfirmed memories not seen again for 90 days. It shows a plan first; nothing changes without
--apply, nothing is deleted, andpersonakit undo <id>reverses a step.
A memory is always in one of four states:
| State | Served to assistants? |
|---|---|
unconfirmed (default) |
Yes, labelled as unconfirmed |
approved |
Yes |
restricted |
Never |
archived |
Never |
Stated plainly, so you know what you are installing:
- Extraction is a model's guess. Review is how you correct it.
- Ranking is word overlap, on whole words in Latin letters and digits. Questions and memories
in other scripts are not matched yet, so such a question gets an empty answer.
personakit hintslets you add the questions and situations a memory is for, which counts towards matching. - A decision cannot be changed, only undone by forgetting.
reviewshows unconfirmed memories; there is no command yet to edit a memory's wording or move a decided memory to another state. - Twin detection compares words, not meaning. It folds memories phrased almost the same way, from any session, and misses paraphrases on purpose: a missed merge costs nothing, a wrong one costs trust. Expect it to find little when the same fact is worded differently each time.
- Decay looks only at time. An unconfirmed memory not extracted again for 90 days is archived (reversible); that says nothing about whether it is still true. Approved and restricted memories never decay.
- A memory an assistant already received stays in that conversation. Restricting it applies to future reads.
- Paste and credential detection is by shape, not by meaning. Look before you share a store.
| Status | |
|---|---|
| Claude Code sessions | Available in 0.1 |
| Codex sessions | Available in 0.1 |
| Any MCP client (read and propose) | Available in 0.1 |
| Merge of near-identical memories (reversible) | Available in 0.2 |
| Decay of stale unconfirmed memories (reversible) | Available in 0.2 |
| Digest of the last days | Available in 0.2 |
| Extension points for relevance and similarity (docs/PLUGINS.md) | Available in 0.2 |
| ChatGPT, claude.ai and Gemini export import | Planned for 0.3 |
- personakit.me/docs: guides, concepts, tidy and undo, extensions, and the MCP tools reference.
- docs/ARCHITECTURE.md: the design, module by module.
- docs/PRIVACY.md: exactly what is sent where.
- docs/PLUGINS.md: the extension point and what a plugin cannot do.
- docs/ROADMAP.md: what exists and what is planned.
Issues and small pull requests are welcome. Read CONTRIBUTING.md first; commits are signed off under the DCO. To report a security problem, see SECURITY.md.
Apache-2.0. See LICENSE. The PersonaKit name and logo are covered by TRADEMARK.md.
