From 71b06d372acfa42f2563638bd686abbf66c9bb98 Mon Sep 17 00:00:00 2001 From: Yanir Rot <67261194+Yanir-R@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:47:11 +0200 Subject: [PATCH 1/2] Docs: match the README, privacy and architecture pages to the 0.1 code; add two diagrams Extraction runs only through a signed-in CLI (there is no API-key client), reads are filtered by state (scope is stored but not used yet), review has no edit action, and the system does not merge or archive on its own in 0.1. The README gains a limits section and a diagram that shows what leaves the machine; PRIVACY.md gains a diagram of what stays and what goes where. Co-Authored-By: Claude Signed-off-by: Yanir Rot <67261194+Yanir-R@users.noreply.github.com> --- README.md | 30 ++++++++++++++++++++---------- docs/ARCHITECTURE.md | 11 ++++++----- docs/PRIVACY.md | 12 +++++++++--- docs/assets/data-boundary.svg | 24 ++++++++++++++++++++++++ docs/assets/how-it-works.svg | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 91 insertions(+), 18 deletions(-) create mode 100644 docs/assets/data-boundary.svg create mode 100644 docs/assets/how-it-works.svg diff --git a/README.md b/README.md index fdf3e3e..38ad04a 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ personakit review # optional: personakit list # see what is stored personakit stats # counts only, never memory text personakit serve # MCP server over stdio for your assistants +personakit forget # delete a memory and its quotes for good ``` `sweep`, `list` and `stats` also take `--json` for stable, sorted machine-readable output. @@ -89,18 +90,13 @@ Your assistant gets two tools: ## How it works -```mermaid -flowchart LR - A[Claude Code / Codex sessions] --> B[ingest] - B -->|your own words only| C[extract] - C --> D[(local SQLite store)] - D --> E[review CLI, optional] - D --> F[MCP server] - F --> G[your assistants] -``` +

+ How PersonaKit works: session files are read on your machine, only the turns you wrote go to the model you chose, memories are stored in a local SQLite file, and the MCP server serves approved and unconfirmed memories to your assistants +

1. **Ingest** reads local session files. Only the turns you wrote leave the parsing step. -2. **Extract** asks a model you already use (your own CLI login or API key) to propose memories. +2. **Extract** asks a model you already use, through your own signed-in `claude` or `codex` CLI, + to propose memories. The CLI runs with its tools off, in an empty temporary directory. 3. **Store** keeps each memory with its source quote, a state, and a scope. 4. **Review** is optional. Memories you never review are served marked *unconfirmed*; you can approve, restrict, hide or forget any of them at any time. @@ -115,6 +111,19 @@ A memory is always in one of four states: | `restricted` | Never | | `archived` | Never | +## Limits in 0.1 + +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; approved memories are still returned as standing context. +- **A decision cannot be changed, only undone by forgetting.** `review` shows unconfirmed memories; + there is no command yet to edit a memory's wording or move a decided memory to another state. +- **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. + ## What works today | | Status | @@ -126,6 +135,7 @@ A memory is always in one of four states: ## Documentation +- [personakit.me/docs](https://personakit.me/docs/): guides, concepts, and the MCP tools reference. - [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md): the design, module by module. - [docs/PRIVACY.md](docs/PRIVACY.md): exactly what is sent where. - [docs/ROADMAP.md](docs/ROADMAP.md): what exists and what is planned. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 68153e5..590ae02 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -33,14 +33,14 @@ flowchart TB | Module | Responsibility | Depends on | |---|---|---| -| `model` | Plain data types: `Turn`, `Memory`, `Evidence`, `State`, `Scope`. No I/O. | nothing | +| `model` | Plain data types: `Turn`, `Session`, `Memory`, `Evidence`, `State`, `Decider`. No I/O. | nothing | | `ingest/` | One adapter per source (`claude_code`, `codex`) plus `common` for the rules they share. Reads a session file, returns the owner's `Turn`s with a count of what was dropped and why. | `model` | -| `llm` | One interface, `complete(prompt) -> str`, with a CLI-backed and an API-backed implementation. Spend cap lives here. | nothing | +| `llm` | One interface, `complete(prompt) -> str`, implemented by two CLI-backed clients (`claude`, `codex`). The per-run call budget lives here. | nothing | | `extract` | Builds the prompt from owner turns, validates the reply into `Memory` + `Evidence`, and counts what it rejects and why. | `model`, `llm` | | `sweep` | Runs ingest, extract and store over new sessions. Skips unchanged files, stops only on budget or model error, never because unreviewed memories are piling up. | `ingest`, `extract`, `llm`, `store` | | `retrieve` | The one read policy: approved and unconfirmed memories are served, restricted and archived never are. It also shapes the evidence quotes an assistant receives (email addresses masked, cut at a word boundary). Word-overlap ranking, a baseline to be measured. | `model` | | `store` | The only module that touches SQLite. Schema, migrations, queries, state changes. | `model` | -| `review` | Terminal UI over the store: approve, edit, restrict, remove. Optional by design. | `store` | +| `review` | Terminal UI over the store: approve, restrict, hide, forget. Optional by design. | `store` | | `mcp_server` | Two tools for assistants: `personakit_read` and `personakit_propose`. Holds no read-policy constants of its own. Assistants cannot approve, restrict, hide or forget; only the owner can, in `review`. | `store`, `retrieve`, `extract` | | `stats` | Counts only (memories by state, sessions extracted, reads and how many returned something). Never content. | `store` | | `cli` | Argument parsing and wiring; no logic. | all | @@ -60,8 +60,9 @@ model, only `ingest` reads session files.** A second implementation of any of th 1. A memory with no evidence is not stored. 2. Unconfirmed memories are served, labelled as unconfirmed. Review is a quality tool, not a gate. -3. The system may merge duplicates and archive stale items (reversible). It never deletes or - widens a scope on its own. +3. The system never changes a memory's state or deletes a memory on its own. Extracting the same + statement again adds evidence to the existing memory and leaves your decision alone. Merging + near-duplicates and archiving stale items are planned for 0.2 and will be reversible. 4. Only text the owner wrote is sent to a model. 5. Statistics are counts, never content, and are local unless the owner chooses to share them. diff --git a/docs/PRIVACY.md b/docs/PRIVACY.md index 403d4b1..91e0542 100644 --- a/docs/PRIVACY.md +++ b/docs/PRIVACY.md @@ -1,12 +1,18 @@ # Privacy +

+ What stays on your machine and what leaves it: only the turns you wrote go to the model you chose; assistants receive approved and unconfirmed memories with shortened, email-masked quotes and a count of withheld memories; nothing goes to PersonaKit +

+ - **Where data lives:** a SQLite file on your machine. Nothing is uploaded by PersonaKit. - **What a model sees:** extraction sends only the turns *you* wrote, to the model you - configure (your own CLI login or API key), under that provider's terms. Assistant replies, + name, through your own signed-in `claude` or `codex` CLI, under that provider's terms. Assistant replies, tool output and file contents from sessions are not sent. -- **What assistants see:** only what the MCP server returns, which respects each memory's - scope and state. The evidence quotes it returns are shortened to a word boundary and email +- **What assistants see:** only what the MCP server returns. Restricted and archived + memories are never returned; unconfirmed ones are labelled. The evidence quotes it returns are shortened to a word boundary and email addresses in them are masked; the store itself keeps the quote as you wrote it. +- **Read log:** each read stores the time and two counts (returned, withheld) in your local + store. The question and the memory text are not recorded. - **Statistics:** `personakit stats` prints counts to your terminal. It never includes memory text. Sharing the output is your choice. - **Deletion:** `personakit forget` removes a memory and its evidence from the store. diff --git a/docs/assets/data-boundary.svg b/docs/assets/data-boundary.svg new file mode 100644 index 0000000..e26ce9d --- /dev/null +++ b/docs/assets/data-boundary.svg @@ -0,0 +1,24 @@ + +What stays on your machine and what leaves itSession files, assistant replies, tool output, pasted blocks, the store with your quotes as written, and restricted and hidden memories stay on your machine. Only the turns you wrote go to the model you chose. Your assistants receive approved and unconfirmed memories, up to two shortened and email-masked quotes each, and a count of withheld memories. There is no PersonaKit server. + + + +STAYS ON YOUR MACHINE +Session filesread in place, never copied out +Assistant replies and tool outputdropped before extraction +Pasted blocks and injected contextdropped before extraction +The storeone SQLite file, quotes as you wrote them +Restricted and hidden memoriesnever returned to an assistant +Questions assistants asknot recorded, only two counts per read + +GOES TO THE MODEL YOU CHOSE +Only the turns you wrotethrough your own signed-in CLI, tools off + +GOES TO YOUR ASSISTANTS +Approved and unconfirmed memoriesunconfirmed ones are labelled +Up to two quotes eachshortened, email addresses masked +A count of withheld memories +on sweep +on each read +Nothing goes to PersonaKit: there is no PersonaKit server, no account and no telemetry. + diff --git a/docs/assets/how-it-works.svg b/docs/assets/how-it-works.svg new file mode 100644 index 0000000..e2cb192 --- /dev/null +++ b/docs/assets/how-it-works.svg @@ -0,0 +1,32 @@ + +How PersonaKit 0.1 worksSession files are read on your machine, only the turns you wrote are sent to the model you chose, proposed memories are stored in a local SQLite file, you can review them, and an MCP server serves approved and unconfirmed memories to your assistants. + + + + +YOUR MACHINE +OUTSIDE YOUR MACHINE +Session filesClaude Code, Codex +1. Sweepkeeps your turns +2. Extractproposes memories +Model you choseyour own CLI login + + + +your turns only + +proposed memories + +4. Reviewoptional, in your terminal +3. Local storeone SQLite file +5. MCP serverpersonakit serve +Your assistantsany MCP client + + + +approved and unconfirmed only + +proposals + +No PersonaKit server. No account. Nothing else leaves. + From 9aa43718dc7b59c2aaea588068e2cbb1cc370847 Mon Sep 17 00:00:00 2001 From: Yanir Rot <67261194+Yanir-R@users.noreply.github.com> Date: Thu, 12 Nov 2026 20:48:59 +0200 Subject: [PATCH 2/2] Architecture: list only what the roadmap covers under out of scope Co-Authored-By: Claude Signed-off-by: Yanir Rot <67261194+Yanir-R@users.noreply.github.com> --- docs/ARCHITECTURE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 590ae02..8710bd9 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -68,5 +68,5 @@ model, only `ingest` reads session files.** A second implementation of any of th ## Out of scope for 0.1 -Hosted service, accounts, sync, ChatGPT/Gemini/claude.ai import, embeddings, third-party name -detection, autonomous curation. Each is planned as an optional module; see the roadmap. +Hosted service, accounts, sync, ChatGPT/Gemini/claude.ai import and third-party name detection. +See the roadmap for what is planned.