$ cat ~/map/pi-bookmarks.md
pi-bookmarks
Keyboard-driven bookmarks for pi: save replies and tool calls, ask follow-ups, pin cards so they survive /compact.
extensions✓ Nov 8
Facts
- repository
- github.com/thrishma/pi-bookmarks ↗
- GitHub Stars
- ★ 0
- Forks
- 0
- license
- MIT
- npm / mo
- —
- last push
- Nov 6, 2026
install
pi install git:github.com/thrishma/pi-bookmarks (needs pi 1.4 or later of @earendil-works/pi-coding-agent; pi -e git:github.com/thrishma/pi-bookmarks tries it for one session without installing).## TL;DR
A pi extension that bookmarks anything you or the model said — replies, your messages, tool calls with their output — into a keyboard-driven side pane whose cards can be asked to explain, summarize, locate in code, or verify, while pinned cards ride in the project's system prompt and survive /compact.
## Key points
- $Bookmarking is keyboard-only: /bm or Alt+M saves the model's last reply, /bm me your last message, /bm tool the last tool call and what came back, and /bm plus words bookmarks the latest message containing them; -- #tag a note adds tags and a note.
- $/bookmarks or Alt+O opens the side pane; bookmarked messages also get a star label in /tree so you can find them there.
- $Open cards carry Ask actions: e Explain goes deeper with an example, t TL;DR gives three bullets at most, c In code returns where it lives as file:line, v Verify checks each claim and changes nothing, and r Remember adds the lesson to AGENTS.md.
- $Card actions handle the rest: p pin/unpin, y copy (the command, else the first code block, else the text), g group, o color, x remove; space ticks several cards and C Connect, L Checklist, D Design note and G Group run across the ticked set.
- $Pins are per project and ride along in the system prompt of every turn in the folder they were made in — up to 12,000 characters in all, 3,000 each — so the model keeps them in context even after /compact; the footer shows a pin count while any are pinned here.
- $Bookmarks are saved in ~/.pi/agent/bookmarks.json, readable only by you, shared by every project and session, with up to 500 kept.
- $An ask closes the pane and sends the prompt, waiting its turn while the model is busy; a button already asked shows as locked until its answer ends, so a double press cannot send it twice.
- $A port of the same author's Bookmarks for Claude Code with the same prompts and card layout; /bm-emoji off swaps emoji for plain marks if the terminal draws them badly.
## FAQ
Q Do pinned bookmarks survive /compact?
Yes — pins ride in the system prompt of every turn in the project folder, up to 12,000 characters in all (3,000 each), so the model keeps them in context even after /compact.
Q Where are bookmarks stored?
In ~/.pi/agent/bookmarks.json — readable only by you and shared by every project and session, with up to 500 kept.
Q Is this the same as the Bookmarks for Claude Code extension?
It is a port of it by the same author (thrishma), with the same prompts and the same card layout, driven from the keyboard.
Q Can I bookmark with the mouse?
No — pi has no hover or selection hooks, so bookmarking goes through /bm and Alt+M; /bookmarks or Alt+O opens the pane.
Q What happens if I ask the same card twice?
A button already asked shows as locked until its answer ends, so a double press does not send it twice; while the model is busy an ask waits its turn.
## References
## Related entries
$ big-pi
Model-driven compression that summarizes completed phases into tiered blocks while Pi's JSONL transcript stays authoritative and untouched.
$ inception
A curator LLM replaces pi's compaction, rewriting old history every few turns to keep the context dense.
$ motus
Redacts exact secret values from pi tool output, blocks the commands and files that print them, and fails closed.
## Guides
Last updated: Nov 6, 2026