pi-anchor1.3.2
Cross-session sticky notes and session bookmarks for Pi — out-of-repo ~/.anchor storage, belowEditor dock, interactive board, /back session resume, and optional todo sync.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-anchor
Cross-session sticky notes and session bookmarks for Pi, stored outside git repositories under ~/.anchor/.
English | 简体中文
Overview
Long refactors leave follow-up fixes behind when terminals close. pi-anchor stores your notes in ~/.anchor/state.json with atomic locking instead of polluting git status, keeps notes strictly scoped to their workspace, renders a compact dock below the editor, and bookmarks each note's original Pi session for /anchor back.
Features & Commands
- Zero-token capture: type
pin: <note>/note: <note>(or/anchor pin <note>) to pin immediately at 0ms. - Progress bars & checklists: include
[1/4]or numbered steps (1. Extract interface 2. Cookie tests) and toggle steps with/anchor check <k>or/anchor step <id>. - Interactive board & belowEditor dock: run
/anchorto open the keyboard-driven note board (↑↓,d/Enter settle,sstep,wwake/sleep,bback to session,ppin,uundo) withui.selectRPC fallback; pressAlt+Ato fold the dock to one line. - Prompt-cache friendly: injects
<sticky-notes>at most once per session without modifying prompts on subsequent turns or touching~/.anchor/during test runs (NODE_TEST_CONTEXT). Notes idle for 7 days quietly sleep (sleeping). - Optional
todosync & standalone CLI: mirrorstodotool snapshots persessionFilewithout clobbering parallel sessions, and ships a standaloneanchorCLI.
| Command / Input | Behavior |
|---|---|
/anchor |
Open interactive note board (with Tab completions for subcommands & IDs) |
/anchor pin <note> or pin: <note> |
Stick a note at 0ms |
/anchor back [id] |
Resume the Pi session where the note was created |
/anchor step <id> [n] / check [id] <k> |
Advance ratio progress or toggle checklist step k |
/anchor done <id> / undo |
Tear off to archive.jsonl or restore last settled note |
/anchor search <q> / history / fold |
Search notes, view archive, or fold the dock (Alt+A) |
Install & Development
pi install npm:pi-anchor
Build and run the test suite locally (compiles against @earendil-works/pi-coding-agent and @earendil-works/pi-tui >= 1.7.0):
npm install
npm run check # typecheck + build + 12 tests (including bin/anchor.js CLI & toolflow handshake)
Stores state in ~/.anchor/ (override with ANCHOR_DIR) and sets anchor badge ⌖ <count> cleanly for pi-tui-status-beautifier.
MIT © Jason