CLI guide
CLI guide
Section titled “CLI guide”The CLI is the default path for routine Aictx work. MCP is supported only when
the agent client has already launched and connected to aictx-mcp.
All CLI commands render human-readable output by default. Add --json for the
shared response envelope:
aictx check --jsonSetup and maintenance
Section titled “Setup and maintenance”aictx initaictx setupaictx checkaictx rebuildaictx resetinitcreates.aictx/and optional repo-level agent guidance.setupguides first-run onboarding and bootstrap memory preview.checkvalidates canonical memory and generated index health.rebuildregenerates indexes from canonical memory.resetbacks up and clears local.aictx/storage.
Routine memory work
Section titled “Routine memory work”aictx load "change auth routes"aictx suggest --after-task "change auth routes" --jsonaictx audit --jsonaictx save --stdinaictx search "auth route conventions"Load narrowly before non-trivial work. Save only durable knowledge directly as active memory. Saving nothing is valid when the task produced no durable future value.
Inspection and debugging
Section titled “Inspection and debugging”aictx inspect <id>aictx staleaictx graph <id>Use these commands to inspect one memory object, list stale/superseded memory, or view a one-hop relation neighborhood.
Git inspection and recovery
Section titled “Git inspection and recovery”aictx diffaictx historyaictx restore <commit>aictx rewindAictx writes local files and never commits automatically. Git remains the source of truth for history and rollback when the project is inside a Git worktree.
Export and viewer
Section titled “Export and viewer”aictx export obsidianaictx projects listaictx view --openaictx view starts a local, read-only memory viewer. It is CLI-only in v1.
CLI-only capabilities are not MCP parity gaps.
Documentation
Section titled “Documentation”aictx docsaictx docs getting-startedaictx docs agent-integration --openaictx docs lists bundled public docs topics. aictx docs <topic> prints the
bundled Markdown for that topic. Use --open to open the hosted docs site.