memo-cli
Overview
memo-cli is a capture-first memo CLI with an agent enrichment loop.
Default output is human-readable text. JSON is explicit and intended for service/agent callers.
Usage
Usage:
memo-cli [--db <path>] [--format <text|json> | --json] <command> [options]
Commands:
add <text> Capture a raw memo entry
list [--limit <n>] [--offset <n>] List entries (default: newest first)
search <query> [--limit <n>] Search raw + active derived text
report <week|month> [--tz <iana-tz>] Build period summaries
fetch [--limit <n>] [--cursor <opaque>] Pull records for enrichment workers
apply (--input <file> | --stdin) Apply enrichment payloads
Commands
add: append one immutable raw capture record.list: show records with deterministic ordering and optional state filters.search: run keyword/prefix search across capture and active enrichment.report: render weekly/monthly summaries with capture fallback when enrichment is missing.fetch: machine-facing pull for pending enrichment work.apply: machine-facing write-back for normalized enrichment results.
JSON
- Text mode is the default for all commands.
--jsonis shorthand for--format json.fetchandapplyare machine-facing commands and support both--jsonand--format json.list,search, andreportalso support JSON mode for automation and dashboards.- In JSON mode, parse
stdoutonly.stderris diagnostic-only and not part of the data contract. - Exit code policy:
0success,64usage error,65input data error,1runtime failure.
Examples
Capture quickly
Agent enrichment loop
Example enrichment-batch.json payload:
Pagination note:
Human and machine reports
Runbooks
- Agent workflow:
docs/runbooks/memo-cli-agent-workflow.md - Rollout/rollback:
docs/runbooks/memo-cli-rollout.md