clinotes
Project memory for AI coding agents — git-native, ~200 tokens to recall, one line to wire as MCP.
AI coding agents forget everything between sessions, so they re-ask and re-decide
things you settled last week. clinotes keeps a project's decisions and
learnings as plain Markdown in a .clinotes/ folder in your repo. Your agent
recalls a compact index (~200 tokens), then pulls the full reasoning for a single
entry only when it's relevant.
Because it's just text in the repo, the memory is diffable, reviewable, and your teammate's agent inherits it via git — no database, no embeddings, no server.
Why it's different
inline comments → rot, scattered, not addressable by the agent
wikis / Notion → live OUTSIDE the repo, the agent never reads them
vector-DB memory → infra, embeddings, opaque, not human-readable
global rules files → not per-decision, not shared with teammates via git
─────────────────────────────────────────────────────────────────────
clinotes → per-repo · git-tracked · plain Markdown · MCP-native
L0 index (~200 tok) → L2 detail only when relevant
Install
pip install clinotes
Wire it into your agent (the 30-second path)
Claude Code — one line:
claude mcp add clinotes -- uvx clinotes-mcp
Cursor (.cursor/mcp.json):
{
"mcpServers": {
"clinotes": {
"command": "uvx",
"args": ["clinotes-mcp"]
}
}
}
Now your agent can record decisions/learnings and recall them in any future
session — pip install not even required, uvx fetches it on demand.
How it works
Two tiers, so recall stays cheap:
recall_index → the L0 map (~200 tok) "here's everything we've recorded"
│ ↓ agent picks the relevant id
recall_detail → one L2 entry (full why) "give me d2's full reasoning"
On disk, in your repo:
.clinotes/
INDEX.md # L0 — titles + ids, grouped by Decisions / Learned
detail/
d1.md d2.md # L2 — full "why" + alternatives + refs (YAML frontmatter)
l1.md l2.md # full notes for each learning
Commit .clinotes/ with your code and the memory travels with the repo.
Features
- Git-native — plain Markdown + YAML frontmatter. Diffable, reviewable, portable.
- Token-frugal — survey the whole project in ~200 tokens; expand on demand.
- MCP-native — 4 tools (
recall_index,recall_detail,note_decision,note_learned). - Decisions and learnings — capture why we chose X and the gotcha that cost 3 hours, each with refs back to the code.
- No infra — no database, no embeddings, no daemon. Just files.
- Concurrency-safe — cross-process lock + atomic writes, so parallel agents don't clobber the index.
- Human-readable — the same files serve the model and the next engineer.
Python API
from clinotes import note_decision, recall_index, recall_detail
note_decision(
title="postgres over mysql",
why="client DBA only supports pg",
alternatives=["mysql", "sqlite"],
refs=["infra/db.py"],
)
print(recall_index()) # L0 — cheap survey
print(recall_detail("d1")) # L2 — full detail
CLI
clinotes init # scaffold .clinotes/ in the current repo
clinotes ls # print the index (L0)
clinotes show d1 # print one entry's full detail (L2)
Recording new memory happens through the MCP tools or the Python API; the CLI is for scaffolding and inspecting.
Format
The on-disk layout, ID scheme, and frontmatter spec are defined in SPEC.md.
License
MIT — see LICENSE.
Metadata
Release files for clinotes 0.1.1
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 |
|---|---|---|---|---|
| clinotes-0.1.1.tar.gz | 20.2 kB | Without provenance | Details for clinotes-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clinotes-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for clinotes-0.1.1-py3-none-any.whl |
Total release size: 34.5 kB
Release files / clinotes-0.1.1.tar.gz
| Download URL | clinotes-0.1.1.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9adac63e33a79f9730a5389390b39f1818bf104950870691de1fe5473b6d4bcf
|
|
BLAKE2b-256 checksum How to use checksums |
daccf0425f1d345eebe762d02179bb4b275753efeb07462cac8baf78efc36898
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / clinotes-0.1.1-py3-none-any.whl
| Download URL | clinotes-0.1.1-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
960be1adcf72781e47d7d86b3aa0cef28f0b107e68bacbcc51eea4539b91984d
|
|
BLAKE2b-256 checksum How to use checksums |
5748d6256b48959d1c34972d4e386b6ee55f44aefea18741d2cb5d1c1dfafdb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for clinotes 0.1.1
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.