Docs
Pensieve documentation
This page tells you what Pensieve is, what its parts do, and where to start.
Pensieve keeps the context of your work in one place on your Mac. It reads your AI agent sessions, git, GitHub and your issue tracker, and it makes a thread for each piece of work. In Developer mode, it also indexes the repos and files that you choose. You search them from a panel, and your coding agents search them over MCP. Each person's context is different, so Pensieve builds it from your own work and keeps it on your Mac.
Pensieve is free and open source under the MIT license. It is for developers and their AI agents.
Two modes
You choose a mode at setup. We recommend Threads mode to start. To change the mode, go to Settings. The setup then starts again at the mode step.
| Mode | What it does | What it needs |
|---|---|---|
| Threads mode (the default) | Reads your agent sessions, git, GitHub and your issue tracker, and makes threads from them. | No index and no model. |
| Developer mode | Everything that Threads mode does. It also indexes the repos and files that you choose, so that your agents can search them. It adds the Map, People and Insights tabs. | The search model. It runs on the GPU of your Mac. |
The main parts
Threads
Pensieve makes one thread for each agent session and each branch that the session did work on. A thread joins the session with its branch, PRs and tickets, and with the Slack messages that name them. It gives the steps left to close the work, and the command that resumes the session. The threads of one branch sit together in a cluster. A ticket that is assigned to you, with no work on it yet, is a to-do. Each thread has one of six states: Open, To-do, Thoughts, Loose ends, Closed or Forgotten. Threads need no index and no model. Read about threads.
MCP server
Pensieve is an MCP server. Your coding agent asks it one question and gets the few files and lines that match. Each hit shows the path, the line, the enclosing definition and the line that matched. Each agent connection works in a scope. By default, the scope is the repo that the agent started in. Connect your agent, or read the MCP tools reference.
Search
Search is part of Developer mode. It finds items by meaning and by exact words. It blends a vector search with a full-text search. Then it gives more weight to exact text and to names that a file defines. A search takes about 0.1 to 0.2 seconds. Your agents search over MCP, and you search in the app with ⌘+K. Search covers only the sources that you chose.
| Query | Finds |
|---|---|
pricing model | Items about that subject, by meaning |
"rate limit" | Items that contain those exact words (case-insensitive) |
-draft | Leaves out items with that word |
kind:code | Code only. Also kind:doc, kind:session, kind:folder, kind:repo, kind:person |
by:sam terraform | Only what that person wrote (code by git blame, documents by author) |
ext:pdf | One file type |
in:my-app | The path or the repo contains this text |
since:3d, until:2026-10-01 | Only what changed in that time: a session by its last activity, code by its last commit, a file by its last change. Use a date, a time back (12h, 3d, 2w, 1m), today or yesterday. until: includes that day. |
project:my-app | Agent sessions of that project only |
kind:session since:yesterday | With no other words: the sessions that match, newest first |
Who knows what
In Developer mode, Pensieve reads git blame for each indexed repo. Ask about a subject, not a file, and it names
the people who wrote the most related code. Agents get the same data from the people tool.
Knowledge gaps
A knowledge gap is an area of a repo that people who are no longer active wrote most of. In Developer mode, the Insights tab shows the gaps. For each area, Pensieve shows who wrote it, which active person knows it best, and its bus factor. The bus factor is the number of active people who hold 10% or more of the lines. By default, a person with no commit in 180 days is not active.
Connections
Connections collect your tickets, messages and pages from MCP servers. To connect Jira, Linear or Asana, sign in at setup or in Settings → Sources → Cloud connectors. Your tickets then become to-do threads, and a ticket that is done closes its thread. Pensieve calls only read-only tools. Read about connections.
What Pensieve indexes
Threads mode reads your agent sessions and indexes nothing. In Developer mode, you choose each source at setup. You can change your choice in Settings → Sources.
- AI agent sessions: Claude Code, Codex and Qwen Code transcripts.
- Files and folders: documents in
~/Documents,~/Desktop,~/Downloadsand the folders that you add. - Git repositories: committed, staged, modified and untracked files, and linked worktrees.
- Connections: items from MCP servers. Each one is off by default.
Pensieve never indexes files that look like secrets, such as .env files, keys and credentials.
Models
Threads mode runs no model. Developer mode runs one model: the search model. It turns text into vectors, and it always runs on your computer. The default for a new index is EmbeddingGemma 2.
Session summaries, topic names and insights are text jobs. By default, Pensieve runs no text model of its own. The agent that you connect over MCP does the jobs when you ask it to do Pensieve's pending work. In Settings → Models → Summaries and insights, you can choose another engine: the built-in Qwen 3.5 9B on your Mac, a command-line agent, or a model server that you run, such as LM Studio or Ollama. Threads, search, agent context, ownership and knowledge gaps need none of them.
Something wrong or missing? Tell us on GitHub.