Skip to content

feat(note): add /note status-line reminder skill#4

Merged
i8ramin merged 1 commit into
mainfrom
feat/add-note-skill
Jun 10, 2026
Merged

feat(note): add /note status-line reminder skill#4
i8ramin merged 1 commit into
mainfrom
feat/add-note-skill

Conversation

@i8ramin

@i8ramin i8ramin commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What

Adds a new note skill: /note <reminder> synthesizes a terse one-liner and pins it to the Claude Code status line as a bold black-on-yellow sticky note on its own row. /note clear removes it.

Why

A lightweight, always-visible "don't forget" for the current task (e.g. revert the test-only flag before merging) without leaving the terminal.

Design notes

  • Per-session scoping — notes live at $CFG/notes/<session_id>.txt (keyed off CLAUDE_CODE_SESSION_ID / the status-line session_id), so a note pinned in one session never shows up in another.
  • Self-contained installerscripts/install-note-statusline.sh is idempotent and handles three cases: no status line (creates one + prints the settings.json line), an existing standard status line that captures input=\$(cat) (appends a guarded snippet), or a custom status line it doesn't recognize (prints the snippet to paste, never edits).
  • Left-aligned — Claude Code's status line only honors SGR color / OSC 8 link escapes and trims leading whitespace, so right-alignment isn't achievable. Verified empirically (COLUMNS is delivered, but neither space-padding nor cursor-forward escapes reposition the row).

Test

Installer fresh-install / idempotency / append / custom-untouched paths all verified; render confirmed left-aligned on its own line.

🤖 Generated with Claude Code

Pin a short, synthesized reminder to the Claude Code status line as a bold
black-on-yellow sticky note on its own row. Notes are scoped per session
(stored at $CFG/notes/<session_id>.txt) so they don't leak across sessions,
and persist until cleared via `/note clear`.

Ships an idempotent installer (scripts/install-note-statusline.sh) that wires
the status line: creates one if absent (and prints the settings.json line),
appends a guarded snippet to an existing standard status line, or prints the
snippet for the user to paste when the existing status line is custom.

Note: Claude Code's status line only honors SGR color / OSC 8 link escapes and
trims leading whitespace, so the note is left-aligned (right-alignment isn't
achievable).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@i8ramin i8ramin merged commit 5aa5719 into main Jun 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant