Watch Mode
Watch mode monitors your source files and regenerates notes automatically when a file changes.
Start
bun src/cli/index.ts watch --root ./
# With a specific output language
bun src/cli/index.ts watch --root ./ --language pt-BR
Behaviour
- On startup, runs a full
generatepass for all files not already in cache. - Watches all files matching your
includepatterns for changes. - On each change: re-analyzes the modified file, updates its
.jsonand.mdnote, and rebuildsindex.jsonandindex.md. - Cache is updated so unchanged files are never reprocessed.
- LLM synthesis is triggered for changed files that meet the
llmThreshold, same as a normalgeneraterun.
Use cases
- Active development: notes stay fresh as you edit files.
- Combined with the Web UI: open
http://localhost:7842in another terminal and reload to see updated notes. - Combined with the MCP server: your AI assistant always has current context.
tip
Watch mode is most useful during active development on a complex module. For CI, use generate instead.