Command reference
This table answers three questions: which command matches the user’s intent, whether it can change their knowledge base, and which model roles may be involved.
| Command | Purpose | Knowledge-base write? | Model roles |
|---|---|---|---|
init | Configure models, folder admission, and first-run actions | Approved index opt-ins | Preflight or approved index/recall roles |
index | Reconcile derived state with files | No by default | Embedding, derive |
recall <query> | Find and rank cited page/document evidence | No | Expansion, embedding, reranker |
answer <question> | Return a direct grounded answer and citations | No | Expansion, embedding, answer; reranker opt-in |
read <slug> | Read one exact page or document | No | None |
list | Browse folders, pages, or a tree | No | None |
graph [seed] | Inspect bounded exact evidence paths and locators | No | None |
timeline | Retrieve authored events and typed document dates | No | None |
context <query> | Assemble broad context or precision-first automatic recall | No | Embedding; reranker at an ambiguous boundary |
write | Create, append, patch, or replace a page | Yes | Vision for textless attachments only |
remember <text> | Extract durable knowledge and route it | Yes or held proposal | Maintenance or derive, plus recall roles |
folder <path> | Declare a folder and its default policy | Yes, akno.jsonc | None |
approve / decline | Resolve a held routing proposal | Approval may write | Depends on the held action |
forget | Retract a fact or trash a page/document | Yes | None |
undo <change-id> | Restore exact bytes from a journalled change | Yes | None |
move <from> <to> | Move a page and its owned documents | Yes | None |
ingest <path|url> | Extract, name, route, store, and index | Yes | Derive; vision when needed |
inbox | Process arrivals in configured routed folders | Yes | Same as ingest |
adopt <document-id> | Give an orphan document a minimal owned page | Policy-dependent plan | Maintenance or derive |
dream | Run the seven maintenance phases | Depends on policy | Maintenance or derive |
plan | Inspect, revise, decide, apply, retire, or prune plans | Apply only | None after planning |
serve | Run watcher and operation doors | No by itself | None by itself |
service | Install, inspect, or remove background jobs | Outside the knowledge base | None |
doctor | Diagnose health and preview read-only admission rules | Cache only | Probes configured roles |
rules [path] | Explain effective folder and maintenance policy | No | None |
config | Print resolved, redacted configuration | No | None |
bench | Measure latency and invented-corpus quality gates | Only explicit write test | Roles selected by target |
redeploy | Build, restart, and wait for the local service | No | None |
Add --help to any command for its current flags and examples:
akno --help
akno recall --help
akno dream --help
Commands that support machine-readable output accept --json.
Global flags
| Flag | Meaning |
|---|---|
--akno-path <path> | Override the knowledge base for this invocation |
--state-dir <path> | Override disposable/durable operational state location |
--json | Use the command’s structured output |
--connect | Require a running service; do not fall back in process |
-h, --help | Show command help |
When a command resolves an explicit memory or state directory, a running service must identify the same
knowledge-base path in its handshake. Akno refuses a mismatched service instead of operating on the memory
behind the default socket; pair --akno-path with that memory’s --state-dir when connecting.
Retrieval choices
- Use
recallwhen you want ranked evidence results or intend to synthesize with another model. - Use
answerwhen you want Akno to answer a memory question and verify its support. - Use
readwhen you already know the exact slug or document id. - Use
graphwhen the relationship path matters more than page content. - Use
timelinewhen time is the primary filter. - Use
context --profile auto_recallfrom an agent host before a substantive turn with no explicit memory question.
See Reading memory for ranking, qualification, citations, and result-state details.
Write choices
- Use
writewhen destination and wording are already known. - Use
rememberwhen Akno must decide what is durable and where it belongs. - Treat
no_writable_destinationas an authorization hold, not an empty memory result: inspect the typed approval reason and name or admit a destination.requires_folderinstead asks the caller to declare taxonomy. maintenance.retain.fallback_pagecan provide one exact last-resort destination. It is used only after ordinary routing and managed-page creation fail, and only when page or folder policy independently admits it.akno doctorreports whether the configured fallback is ready.- Use
ingestfor a file, folder, or URL; useinboxfor configured drop folders. - Use
forgetfor a deliberate retraction andundowhen reversing a known Akno change. - Use
planfor maintenance decisions.approveanddeclineare for held remember/ingest routing proposals, not dream-plan items. - Use
plan revisewhen the proposed destination and transformation are right but the exact result is not. It creates a guarded immutable revision inside the existing path/evidence scope and invalidates approval; it does not edit the knowledge base by itself.
See Writing and ingestion and The dream cycle.
Agent operations
The CLI names correspond to operations in the shared protocol registry. Agent hosts should discover schemas from MCP or use the typed client rather than constructing CLI arguments. Some operator-only surfaces—service management, journal listing, plan decisions, and broad private diagnostics—are intentionally not granted to an agent merely because it can call memory.