curl -fsSL https://raw.githubusercontent.com/momo590/tinm/main/mvp/scripts/install.sh | bashRead it instead of watching
# Yesterday I shipped Phase 1 of the TINM paper.
# Today, new terminal, new session, no /load, no file open.
# TINM seeded with `tinm demo` (see README).
$ claude -p "What was the biggest absolute effect we
measured on the 2WikiMultihopQA pilot?"
**+0.114 absolute lift** for tinm_a085 over rag_baseline
(t=4.03, paired, n=50). tinm_a085 scored 0.481 — the
largest measured effect in the Phase 1 pilot set.
Source: benchmark/runs/pilot_wiki2hop_results.json
(per the loaded TINM thread).
# +0.114 surfaced from yesterday — no file read, no context paste.
macOS / Linux, ~3 minutes (most of it is pip install), fully reversible. The walkthrough is in docs/QUICKSTART.md.
Every new Claude Code session today starts the same way: you scroll Slack, your last terminal, your own notes — then copy-paste yesterday's key decisions before any work begins. Or you grow CLAUDE.md until it becomes noise. Either way, the context Claude needs is somewhere — just not where Claude can see it.
- Auto-recall. Past decisions, designs, and answers surface into your next session automatically — no
/load, no file paste. - Works with what you already use. Three small hooks plug into Claude Code. Nothing else in your setup changes.
- Not locked to one client. Memory is stored in an open format (PCP) — a simple JSON layout any AI client can read. Your context belongs to you, not to a vendor.
- Works with browser AI too. ChatGPT, Claude.ai, Perplexity, Notion AI — copy any response with
@tinm saveon the first line and it lands in your TINM memory. Native desktop notification confirms each capture.
What's PCP? Personal Context Protocol. A vendor-neutral way to store AI conversation memory on disk. Other clients (Cursor, OpenClaw, Aider, …) can read the same memory through bundled adapters.
The install ships a short demo thread so you can see cross-session recall on bundled sample data, without first having to accumulate your own history.
# 1. Verify the hooks loaded
~/.tinm/.venv/bin/python ~/.claude/skills/tinm/tinm_status.py
# 2. Install the bundled demo thread (a real research session from the TINM paper)
~/.tinm/.venv/bin/python ~/.claude/skills/tinm/tinm_demo.py
# 3. Open a fresh Claude Code session and paste this prompt verbatim:
# "What was the biggest absolute effect we measured on the 2WikiMultihopQA pilot?"Claude will answer with a specific number from the demo's stored memory — one it could not have produced without TINM pulling that memory into its context. That's the mechanism: prior-session content surfaced into a fresh session, no manual load, no file read.
When you're ready to use TINM on your own work:
/tinm init my-project # create your first real thread
/tinm save "the architecture decision" # mark a key decision for future sessions
Next session, ask anything that touches that decision — TINM brings it back without you re-pasting.
The browsers where you actually use ChatGPT or Perplexity have no hooks. TINM bridges them with an opt-in clipboard watcher: copy any response prefixed with @tinm save and it lands in your TINM memory with a native desktop notification.
# One-time enable (auto-starts with every future Claude Code session)
~/.tinm/.venv/bin/python ~/.claude/skills/tinm/tinm_clipboard.py --enableThen anywhere — ChatGPT web, Claude.ai, Perplexity, Notion AI, even a plain text file:
@tinm save
<paste the AI response you want to remember>
Copy that block (Cmd/Ctrl+C). ~3 seconds later you get a system notification: TINM captured to <thread>. Done. The content is now searchable cross-session like any other TINM memory.
Privacy. The watcher does nothing unless @tinm save is the first non-empty line — case-insensitive but exact. Trigger line is stripped, never stored. Clipboard is read, never modified.
macOS and Linux. Disable anytime: tinm_clipboard.py --disable. Full docs in mvp/clients/clipboard_install.md.
- Three hooks. Claude Code fires
SessionStart,UserPromptSubmit, andStopevents as you work. TINM listens to all three. - At session start, TINM loads your most relevant past notes into Claude's context. Recent decisions, named files, answers you approved — they're back.
- On every prompt, TINM scores your message against everything it remembers and surfaces the matches into context, automatically.
- At session end, TINM captures the answers you implicitly approved (by moving on without correction) — so next session knows what you agreed on, not just what you asked.
- Storage. Everything lives in
~/.tinm/as plain JSON files. Open them in any text editor. Nothing leaves your machine.
TINM-lite (the algorithm behind the product) reaches +0.114 F1 over a strong RAG baseline on the 2WikiMultihopQA benchmark (n=50, paired t=4.03). Pareto-best on 4 of 5 long-context benchmarks. Full evaluation in paper/; the MVP applies the same mechanism to your Claude Code sessions.
Everything is local in ~/.tinm/ by default. Nothing leaves your machine unless you explicitly enable telemetry sharing — and even then only aggregate counts, never prompts or file contents. The privacy contract is enforced and tested in mvp/tests/test_telemetry.py.
python ~/.claude/skills/tinm/tinm_telemetry.py status # check current state
python ~/.claude/skills/tinm/tinm_telemetry.py off # opt out anytimeAdapters ship for Cursor, OpenClaw, Windsurf, Cline, Aider, Codex CLI, and Continue.dev (all [BETA]). A universal clipboard watcher captures conversations from ChatGPT web, Claude.ai, Perplexity, and any other browser-based AI tool via an opt-in trigger phrase. See mvp/clients/ for install guides.
- v0.2.2 — cross-session memory, intra-session relevance scoring, 8 vendor adapters. Stable on macOS and Linux.
- Next — handoff-prompt generator (compose the perfect prompt for the next agent/machine), telemetry-tuned scoring weights.
bash ~/.tinm/source/mvp/scripts/uninstall.shLeaves a ~/.claude/settings.json.pre-uninstall backup so you can roll back manually if needed. TINM_KEEP_PCP=1 bash ... preserves your thread history at ~/tinm-pcp-keep-<ts>/ for future reinstalls.
mvp/— the Claude Code MVP (skills, hooks, scripts, tests). The thing you install.mvp/pcp_v0_spec.md— the open standard. Start here if you only read one file.mvp/seeds/— bundled demo threads, includingtinm-tour.mvp/clients/— MCP server and non-Claude-Code adapters (Cursor, OpenClaw, Windsurf, Cline, Aider, Codex, Continue.dev, clipboard).
paper/— paper draft + figures (Fig 1 Pareto plot).benchmark/— 5 long-context benchmarks comparing TINM-lite vs RAG baselines.notes/— internal ADRs and design docs (kept public for transparency).
MIT — see LICENSE.
If you try it, DM @MmakhtarDiop on X what you noticed — magical, weird, boring, or broken. That is the data this stage needs more than any commit.
⭐ Star if it saves you time — it helps others find it.
