@tribalnerd/pi-notes
A Pi extension for deterministic human notes across project and global scopes.
Package details
Install @tribalnerd/pi-notes from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@tribalnerd/pi-notes- Package
@tribalnerd/pi-notes- Version
0.2.0- Published
- Apr 6, 2026
- Downloads
- 335/mo · 8/wk
- Author
- tribalnerd
- License
- MIT
- Types
- extension, skill
- Size
- 176.1 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-notes
A human-first notes extension for Pi, built to keep quick notes organized, searchable, and safe directly inside your Pi workflow.
Summary
pi-notes adds a /notes command family to Pi so you can create, read, update, search, and safely remove notes without leaving your terminal flow.
Notes are stored in markdown and can live at:
- project scope:
.pi/notes/ - global scope:
~/.pi/notes/
Install
pi install npm:@tribalnerd/pi-notes
Bundled agent skill
This package also ships a pi-notes skill (skills/pi-notes/SKILL.md) for agent-side routing.
- Invokable as
/skill:pi-notes - Guides note intent resolution (global vs project)
- Uses command-first responses and safe handoff for restricted operations
Commands
Pi extension command family:
/notes(usage/help)/notes help/notes commands/notes setup/notes ls [--project|--global]/notes show <name> [--project|--global]/notes new <name> [--project|--global]/notes edit <name> [--project|--global]/notes append <name> <text> [--project|--global]/notes rm <name> [--project|--global]/notes grep <query> [--project|--global]/notes rewrite <name> <instruction> [--project|--global]/notes move <name> --to-global|--to-project [--project|--global] [--overwrite]/notes rename <from> <to> [--project|--global] [--overwrite]/notes uninstall [--project] [--global]
Package CLI (deterministic non-interactive flows):
CLI invocation options:
npx @tribalnerd/pi-notes <command> ...(works without global install)pi-notes <command> ...(requires global npm install/link)node dist/src/cli.js <command> ...(repo-local/dev)
Examples:
npx @tribalnerd/pi-notes show <name> [--project|--global]npx @tribalnerd/pi-notes new <name> [--project|--global]npx @tribalnerd/pi-notes append <name> <text> [--project|--global]npx @tribalnerd/pi-notes ls [--project|--global]npx @tribalnerd/pi-notes grep <query> [--project|--global]npx @tribalnerd/pi-notes move <name> --to-global|--to-project [--project|--global] [--overwrite]npx @tribalnerd/pi-notes rename <from> <to> [--project|--global] [--overwrite]npx @tribalnerd/pi-notes rm <name> [--project|--global] [--yes]npx @tribalnerd/pi-notes uninstall [--project] [--global] [--yes]
Scope behavior
Default behavior:
- read from project scope first
- fallback to global scope
Flags:
--project-> project scope only--global-> global scope only
Parser semantics:
- scope flags are parsed only at argument edges (leading/trailing)
- move flags (
--to-global,--to-project,--overwrite) are parsed only for/notes moveand only at argument edges - flag-like tokens inside content are preserved as literal text
- use
--to force all following tokens to be treated literally
Purpose
- Keep lightweight human notes close to actual coding work
- Avoid context switching into separate apps/tools
- Maintain predictable command behavior and safe write/delete flows
Features
- Deterministic note commands for CRUD + search
- Dual-scope storage (project + global)
- Safe name normalization and path protections
- Atomic note creation and serialized note mutations
- Confirm-gated destructive operations (
rm,uninstall, overwrite move) - Markdown-preserving editor workflow with
/notes edit - Bootstrap setup flow with starter global note (
/notes setup) - Markdown + frontmatter note format
Docs
- Commands:
docs/commands.md - Storage model:
docs/storage.md - Security model:
docs/security.md - Architecture:
docs/architecture.md - Release guide:
docs/release.md
License
MIT — see LICENSE.