Persistent AI context management for multi-tool development — syncs Claude, Gemini, Cursor, Codex and Copilot transcripts into a single LLM-tuning file.
Project description
What is mind?
mind is a single file memory layer for AI-assisted development. It reads your conversations from Claude Code, Gemini, Cursor, Codex, and Copilot after every commit and synthesizes them into one token efficient mind.md that every tool can load as context.
I built this because I kept hitting the same wall across projects — every AI tool has its own rules, its own memory, its own prompt format, and none of them talk to each other. You can configure behaviors per tool (rules and skills etc), but there's no shared, consistent context that travels with the project. So I'd find myself re-explaining the same architecture decisions, the same gotchas, the same "we tried that and it didn't work" notes to a different model every other day.
mind is the simplest fix I could think of: one file, written and updated by LLM after each commit, aggregating context from every tool you use into one place.
Install
pip install project-mind
Quick start
cd your-project
mind init # creates _mind/, installs git hook, writes mind.toml
mind sync # extract transcripts and rebuild mind.md
mind status # show tracked tools and last sync
The git hook runs mind sync automatically after every commit.
Supported tools
| Tool | Source |
|---|---|
| Claude Code | ~/.claude/projects/{slug}/*.jsonl |
| Gemini | ~/.gemini/tmp/{project}/chats/*.json |
| Cursor | ~/.cursor/projects/{slug}/agent-transcripts/ |
| Codex | ~/.codex/sessions/**/rollout-*.jsonl |
| Copilot | VS Code workspaceStorage/{hash}/state.vscdb |
How it works
- After every
git commit, the hook runsmind syncin the background. mind syncfinds transcripts newer than the last sync and extracts the user + assistant text.- It calls your configured LLM with the extracted content and the current
mind.md. - The LLM rewrites
mind.md— compressing old entries, adding new ones, preserving the sections you care about.
mind.md structure
## behavior user corrections — never compressed
## context project state — rewritten each sync
## active in-flight tasks
## decisions architectural choices
## lessons what worked, what didn't
## history compressed timeline
Configuration
# mind.toml
[project]
name = "my-project"
[llm]
provider = "claude" # claude | gemini | codex
[tools]
enabled = ["claude", "gemini", "cursor", "codex", "copilot"]
[limits]
max_messages_per_sync = 150
mind_max_lines = 150
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file project_mind-0.2.0.tar.gz.
File metadata
- Download URL: project_mind-0.2.0.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7e159c62f20135be93f69f88aaf0323ce38edff3c1ec87f4a59dadb50d58b5a
|
|
| MD5 |
f74ad5c3dd5d4c4fd386d3e246dfca32
|
|
| BLAKE2b-256 |
308372923c09574342e66955c4a94ca0f5d5165d8d51df2d637a87692a1b6182
|
File details
Details for the file project_mind-0.2.0-py3-none-any.whl.
File metadata
- Download URL: project_mind-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6512d29d1d635d6f0b45d3629b64335f5d7280012ea4e6a05f60553acf77f9e
|
|
| MD5 |
fbab1f57ec7ccfdb3cf82339347a9576
|
|
| BLAKE2b-256 |
c7863f078cc826dfb5a6415dc52dc98d5255c8c0c1b5e177c01bdabfb056c848
|