omp packages

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.

jason-zeros Published 2 days ago MIT ~1.1K downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-anchor

Cross-session sticky notes and session bookmarks for Pi, stored outside git repositories under ~/.anchor/.

npm version Tests License: MIT

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.

pi-anchor preview

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 /anchor to open the keyboard-driven note board (↑↓, d/Enter settle, s step, w wake/sleep, b back to session, p pin, u undo) with ui.select RPC fallback; press Alt+A to 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 todo sync & standalone CLI: mirrors todo tool snapshots per sessionFile without clobbering parallel sessions, and ships a standalone anchor CLI.
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