khipumaq
Quechua: one who makes a khipu, the knotted-cord record. The name states the job: keep the record, so it can be read back.
khipumaq keeps every Claude Code and Codex session you have had — your words
and the assistant's responses, not summaries — in one searchable store, and
gives the instances that come after a tool to search it.
The problem
A coding agent starts every session without its past. What was decided last week, what you already explained, what a prior instance got wrong: all of it is in transcripts on disk, and none of it is reachable from inside a session. The agent asks you again, or guesses, or searches the filesystem and finds nothing. The information exists; the path to it does not. And Claude Code deletes transcripts after about 30 days, so the record does not even wait.
What it does
- Ingests Claude Code transcripts (including subagents and Cowork tasks) and Codex CLI rollouts into an ArangoDB collection: one episode per assistant turn, paired with the user turn before it, labelled by project, with the host, machine id, and source path it came from.
- Stays current without you: a SessionEnd hook for Claude Code and Codex
ingests each session as it closes, and a daily sweep catches anything a hook
missed. On WSL the sweep also reads the Windows side (Claude Code, Cowork,
Codex on Windows) through
/mnt/c. - Serves it read-only over MCP:
search(BM25 over both sides of the conversation, filterable by project and date, returning how many matched),recall(one whole episode), anddescribe(what the store holds). At start the server says one sentence about itself — how much it holds, how fresh it is, and when to reach for it — and says plainly when ingestion looks stale.
There is no write tool: episodes come only from the transcripts, and nothing the server offers can change them. That is not tamper-proofing. An instance with a shell can read the database password in your config file, or edit its own transcript before the session ends, and the next ingest will store what it finds.
Install
khipumaq runs on Linux and on WSL; it uses systemd, /etc/machine-id, and
fcntl, so macOS and native Windows are not supported. You need Python 3.11
or newer, uv, and an ArangoDB 3.12
server you control (a local container is fine) with a database and a user
that can read and write it. khipumaq creates its collection and search view on
first use.
ArangoDB now ships one edition: the Enterprise build, which runs without a license for databases up to 100 GB. Install it from ArangoDB's downloads; the older community apt repository stops at 3.12.4 and is signed with a key whose published copy has expired. To create the database and its user, as ArangoDB's root user on a new server, or by whoever administers an existing one:
curl -u root -X POST http://127.0.0.1:8529/_api/database \
-d '{"name":"khipumaq","users":[{"username":"khipumaq","passwd":"..."}]}'
khipumaq needs nothing beyond read and write on that one database, so every machine that should share a store gets the same config file (step 1).
-
Write
~/.config/khipumaq/db-config.ini(mode 0600):[database] host = 127.0.0.1 port = 8529 database = khipumaq user_name = khipumaq user_password = ...
$KHIPUMAQ_CONFIGpoints elsewhere if you prefer. An optional[khipumaq]section withperson = <your name>lets the server's sentence name you ("Before asking what happened…"); the default is "the user". -
Wire this machine:
uvx khipumaq install uvx khipumaq sweep # first run ingests everything on disk
installadds the Claude Code SessionEnd hook, the MCP server entry for Claude Code and for Codex, the Codex hooks (and the trust Codex requires before running them), a daily systemd user timer for the sweep, and — on WSL — the MCP entry for Claude Code and Claude Desktop on Windows.khipumaq uninstallremoves all of it and leaves the store alone.Codex asks before running a new hook;
installrecords its own hooks as trusted, so runninginstallis that approval. The hooks and the server are pinned to the version you installed, so a new release never runs on your transcripts until you choose it:uvx khipumaq@latest install. -
Restart Claude Code. Run
installon each machine whose sessions should land in the store; they can all point at one database.
Remote or hosted ArangoDB (ArangoDB Cloud, a server across a WAN) should work through the same config file but is not tested; pull requests welcome.
Privacy
The store holds your conversations in full. It lives where you put it and
nowhere else: khipumaq sends nothing to any service but your database. Its
operational event log (~/.local/state/llm-memory/events.jsonl) records
identifiers, digests, and counts, never query text or episode content;
queries are digested with a random key kept on your machine, so a digest
cannot be reversed by hashing guesses. The store itself also keeps how it
is used: each search's text, window, match count and returned keys, and
which hit was opened afterwards, in a queries collection beside the
episodes, so search can be improved from real use. It also keeps every line
of every transcript it reads, verbatim, in a raw collection: token usage,
tool calls, and tool results, including whatever a tool printed, such as a
file with a password in it or a token echoed to the terminal. Nothing is
filtered, because deciding at intake what to keep is how metadata gets lost.
The tools never search queries or raw. Point it at a database on a
network you trust, and treat its backups like the transcripts themselves.
Status
Pre-alpha, and used daily. Design notes and the record of how it got here are in the design spec.
khipumaq was written by Claude (Anthropic) in Claude Code, with its tests written separately by Codex (OpenAI), under the direction of its human author, who decided what it should be. The commit history records which hand wrote what.
License
MIT. Contributions are accepted under the Developer Certificate of Origin; see CONTRIBUTING.md.
Metadata
Release files for khipumaq 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| khipumaq-0.1.5.tar.gz | 31.2 kB | Without provenance | Details for khipumaq-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| khipumaq-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for khipumaq-0.1.5-py3-none-any.whl |
Total release size: 68.3 kB
Release files / khipumaq-0.1.5.tar.gz
| Download URL | khipumaq-0.1.5.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f680ed730a4fc6ecb743a9f7b96cda9f25234c67bdce89cbd5431817012618d2
|
|
BLAKE2b-256 checksum How to use checksums |
729324f4c7ddafae8bf2f8edc4049fd5e097bd8153850da42e4a496a3c6d9b2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / khipumaq-0.1.5-py3-none-any.whl
| Download URL | khipumaq-0.1.5-py3-none-any.whl |
|---|---|
| Size | 37.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
77ee5a4434164449208cb8657e5835daf3246f36cee573bbe639a09bd5d20811
|
|
BLAKE2b-256 checksum How to use checksums |
a806b77abdf23413209027995ccd6a87054969e4e85d1623e78410c069ed7913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for khipumaq 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.