Skip to main content

Persistent AI context management for multi-tool development — syncs Claude, Gemini, Cursor, Codex and Copilot transcripts into a single LLM-tuning file.

Project description

mind

PyPI Python Tools License

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

  1. After every git commit, the hook runs mind sync in the background.
  2. mind sync finds transcripts newer than the last sync and extracts the user + assistant text.
  3. It calls your configured LLM with the extracted content and the current mind.md.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

project_mind-0.2.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

project_mind-0.2.1-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file project_mind-0.2.1.tar.gz.

File metadata

  • Download URL: project_mind-0.2.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for project_mind-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b208c22c908906a082448041406a6989b40ffa58393d002da562a5e260ab8877
MD5 fba5b1ab566b1a6a18f281e16e6bf563
BLAKE2b-256 dd5abb4ebceab1870b238796ea35781941a7ac40bee1baedd5d85edd2530a3c5

See more details on using hashes here.

File details

Details for the file project_mind-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: project_mind-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for project_mind-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d73fe229fdb368c0a82e896d4f6327156480f852a92fd2111ef4fe81268f9178
MD5 c1d2263184aecd23527048562c2e8740
BLAKE2b-256 460802430e9d68b2ca0f6a4603b4e0e8c866ae02909407c2bc31543b11cf24a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page