Notes
notes stores Markdown files in a Git-backed vault. The default vault is ~/Documents/notes; set NOTES to use a different path. DOT_NOTES_DIR is still read as a compatibility fallback when NOTES is unset.
Layout
Section titled “Layout”Repository notes live under:
{vault}/repo-notes/{owner}/{repo}/{slug}.mdThe {owner}/{repo} segment is resolved from the current Git repository’s remote URL. notes prefers upstream, then origin, then the first remote.
Frontmatter
Section titled “Frontmatter”Notes are ordinary Markdown files. The CLI reads these fields from YAML frontmatter when present:
---repo: owner/repodate: 2026-07-06T12:00:00+01:00name: Useful Notedescription: One-line summary.tags: [research, handoff]priority: medium---name, description, tags, and priority are used for listings. Writes refresh the date: line automatically.
Safety
Section titled “Safety”Read, write, and delete operations are restricted to the notes vault. Paths are expanded, resolved, and checked before file I/O.
Writes and deletes are committed to the vault Git repo. If the vault has a remote, notes attempts a best-effort push. Push failures are reported but do not fail the note operation.
Listing
Section titled “Listing”notes listnotes list --format jsonnotes list --allnotes list --tag researchThe JSON form returns structured note metadata for scripts and plugins.