Documentation
ΒΆ
Overview ΒΆ
Command nt is a terminal task & note manager that stores data as plain files (todo.txt tasks + markdown notes) so editors, grep, git, and AI agents can read and write it directly. See SPEC.md for the design.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
internal
|
|
|
aisync
Package aisync mirrors a Claude Code session's TodoWrite list into the nt store (SPEC Β§8, Β§10).
|
Package aisync mirrors a Claude Code session's TodoWrite list into the nt store (SPEC Β§8, Β§10). |
|
cli
Package cli implements nt's command-line interface.
|
Package cli implements nt's command-line interface. |
|
config
Package config loads nt's optional config file, $NT_DIR/config.toml.
|
Package config loads nt's optional config file, $NT_DIR/config.toml. |
|
dateparse
Package dateparse parses the human date and priority inputs nt accepts on the CLI and in the TUI (SPEC Β§7.3), kept in one place so both surfaces agree.
|
Package dateparse parses the human date and priority inputs nt accepts on the CLI and in the TUI (SPEC Β§7.3), kept in one place so both surfaces agree. |
|
links
Package links implements the unified cross-item linking model (SPEC Β§5.1): a single [[target]] syntax that resolves to a note (by slug, title, or id) or a task (by ULID / short prefix), plus backlinks computed on demand by scanning files β no stored index.
|
Package links implements the unified cross-item linking model (SPEC Β§5.1): a single [[target]] syntax that resolves to a note (by slug, title, or id) or a task (by ULID / short prefix), plus backlinks computed on demand by scanning files β no stored index. |
|
lock
Package lock provides an advisory file lock around the critical section that mutates tasks.txt (SPEC Β§6.4).
|
Package lock provides an advisory file lock around the critical section that mutates tasks.txt (SPEC Β§6.4). |
|
mcp
Package mcp serves nt over the Model Context Protocol (stdio, JSON-RPC 2.0), so an agent uses typed tools (nt_ready, nt_add, β¦) instead of constructing CLI shell strings.
|
Package mcp serves nt over the Model Context Protocol (stdio, JSON-RPC 2.0), so an agent uses typed tools (nt_ready, nt_add, β¦) instead of constructing CLI shell strings. |
|
mutate
Package mutate is the single ULID-keyed mutation engine shared by the CLI and (later) the TUI, implementing the write contract from SPEC Β§6.1β6.3.
|
Package mutate is the single ULID-keyed mutation engine shared by the CLI and (later) the TUI, implementing the write contract from SPEC Β§6.1β6.3. |
|
note
Package note implements nt's markdown notes with light YAML frontmatter (SPEC Β§5).
|
Package note implements nt's markdown notes with light YAML frontmatter (SPEC Β§5). |
|
quickadd
Package quickadd normalizes the natural-language conventions people type into a task's text β across the CLI, TUI, web, and MCP add paths β so they all behave identically.
|
Package quickadd normalizes the natural-language conventions people type into a task's text β across the CLI, TUI, web, and MCP add paths β so they all behave identically. |
|
search
Package search implements files-only search (SPEC Β§7.1): ripgrep when a real rg binary is on PATH, otherwise a built-in walker.
|
Package search implements files-only search (SPEC Β§7.1): ripgrep when a real rg binary is on PATH, otherwise a built-in walker. |
|
store
Package store resolves the nt data directory ($NT_DIR) and the paths of the files within it.
|
Package store resolves the nt data directory ($NT_DIR) and the paths of the files within it. |
|
task
Package task implements nt's todo.txt task model with the lossless round-trip guarantee from SPEC Β§4: a file is parsed into an ordered list of nodes (each a parsed task or a preserved raw line), and an unmodified line is re-emitted byte-for-byte.
|
Package task implements nt's todo.txt task model with the lossless round-trip guarantee from SPEC Β§4: a file is parsed into an ordered list of nodes (each a parsed task or a preserved raw line), and an unmodified line is re-emitted byte-for-byte. |
|
tui
Package tui implements nt's terminal UI (SPEC Β§12) with Bubble Tea.
|
Package tui implements nt's terminal UI (SPEC Β§12) with Bubble Tea. |
|
ulid
Package ulid generates ULIDs (Universally Unique Lexicographically Sortable IDs) with zero external dependencies.
|
Package ulid generates ULIDs (Universally Unique Lexicographically Sortable IDs) with zero external dependencies. |
|
undo
Package undo implements the append-only transaction journal from SPEC Β§6.3.
|
Package undo implements the append-only transaction journal from SPEC Β§6.3. |
|
view
Package view persists named "smart views" β saved bundles of the `nt list` filter so a user can capture a query once and recall it by name (T4).
|
Package view persists named "smart views" β saved bundles of the `nt list` filter so a user can capture a query once and recall it by name (T4). |
|
web
Package web is the HTTP adapter: a localhost notes viewer (`nt web`).
|
Package web is the HTTP adapter: a localhost notes viewer (`nt web`). |
|
web/apitypes
Package apitypes defines the JSON wire contract for the web SPA's /api/* endpoints.
|
Package apitypes defines the JSON wire contract for the web SPA's /api/* endpoints. |
Click to show internal directories.
Click to hide internal directories.

