diff --git a/README.md b/README.md index de9d3e3..fdf3e3e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,25 @@ -# PersonaKit +

+ PersonaKit logo +

-Memory for your AI assistants that **you** can read, correct and take with you. +

PersonaKit

+ +

+ Your AI's memory. Your say.
+ Memory for your AI assistants that you can read, correct and take with you. +

+ +

+ tests + License: Apache-2.0 + Python 3.10+ + MCP server + Status: pre-release +

+ +

+ Terminal demo: personakit sweep, review, list and serve, with example data +

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, @@ -10,12 +29,26 @@ machine. There is no PersonaKit server and no account. > **Status: pre-release (0.1 in progress).** This repository is being built in public. > See [docs/ROADMAP.md](docs/ROADMAP.md) for what exists and what is planned. -## Try it +## Why PersonaKit + +- **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. + +## Quickstart Requires Python 3.10+ and a signed-in `claude` or `codex` CLI for extraction. ```sh +git clone https://github.com/Yanir-R/personaKit.git +cd personaKit pip install -e ".[mcp]" + personakit sweep --cli claude --model --max-calls 20 # read sessions, extract memories personakit review # optional: approve, restrict, hide, forget personakit list # see what is stored @@ -28,6 +61,32 @@ personakit serve # MCP serve 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](docs/PRIVACY.md). +## Connect your assistant + +`personakit serve` is a standard MCP server over stdio, so any client that can launch a local +MCP server can use it. + +**Claude Code** + +```sh +claude mcp add personakit -- personakit serve +``` + +**Codex** (`~/.codex/config.toml`) + +```toml +[mcp_servers.personakit] +command = "personakit" +args = ["serve"] +``` + +Your assistant gets two tools: + +| Tool | What it does | +|---|---| +| `personakit_read` | Returns the memories relevant to a question, each with its evidence quotes and whether you have confirmed it. | +| `personakit_propose` | Lets the assistant suggest a new memory. It is stored as *unconfirmed* until you review it. | + ## How it works ```mermaid @@ -44,12 +103,40 @@ flowchart LR 2. **Extract** asks a model you already use (your own CLI login or API key) to propose memories. 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, edit, restrict or remove any of them at any time. + can approve, restrict, hide or forget any of them at any time. 5. **Serve** exposes the store to assistants over MCP, with the evidence attached. -Read [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the design and -[docs/PRIVACY.md](docs/PRIVACY.md) for exactly what is sent where. +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 | + +## What works today + +| | Status | +|---|---| +| Claude Code sessions | Available in 0.1 | +| Codex sessions | Available in 0.1 | +| Any MCP client (read and propose) | Available in 0.1 | +| ChatGPT, claude.ai and Gemini export import | Planned for 0.3 | + +## Documentation + +- [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. + +## Contributing + +Issues and small pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) first; +commits are signed off under the [DCO](DCO). To report a security problem, see +[SECURITY.md](SECURITY.md). ## License -Apache-2.0. See [LICENSE](LICENSE). +Apache-2.0. See [LICENSE](LICENSE). The PersonaKit name and logo are covered by +[TRADEMARK.md](TRADEMARK.md). diff --git a/docs/assets/demo.gif b/docs/assets/demo.gif new file mode 100644 index 0000000..553e81b Binary files /dev/null and b/docs/assets/demo.gif differ diff --git a/docs/assets/logo.svg b/docs/assets/logo.svg new file mode 100644 index 0000000..5185fb1 --- /dev/null +++ b/docs/assets/logo.svg @@ -0,0 +1,9 @@ + + PersonaKit Signature + + + + + + +