Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 94 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# PersonaKit
<p align="center">
<img src="docs/assets/logo.svg" width="96" alt="PersonaKit logo">
</p>

Memory for your AI assistants that **you** can read, correct and take with you.
<h1 align="center">PersonaKit</h1>

<p align="center">
<strong>Your AI's memory. Your say.</strong><br>
Memory for your AI assistants that you can read, correct and take with you.
</p>

<p align="center">
<a href="https://github.com/Yanir-R/personaKit/actions/workflows/tests.yml"><img src="https://github.com/Yanir-R/personaKit/actions/workflows/tests.yml/badge.svg" alt="tests"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
<img src="https://img.shields.io/badge/python-3.10+-blue.svg" alt="Python 3.10+">
<img src="https://img.shields.io/badge/MCP-server-b94f30.svg" alt="MCP server">
<img src="https://img.shields.io/badge/status-pre--release-orange.svg" alt="Status: pre-release">
</p>

<p align="center">
<img src="docs/assets/demo.gif" width="760" alt="Terminal demo: personakit sweep, review, list and serve, with example data">
</p>

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,
Expand All @@ -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 <model-name> --max-calls 20 # read sessions, extract memories
personakit review # optional: approve, restrict, hide, forget
personakit list # see what is stored
Expand All @@ -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
Expand All @@ -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).
Binary file added docs/assets/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading