CLI guide
The CLI is the default interface for Aictx. It is the quickest path for setup, routine memory work, inspection, recovery, export, documentation, and the local viewer.
Most days, an agent only needs:
aictx load "task summary"aictx save --stdinaictx diffThe rest of the CLI is there for setup, review, recovery, and maintenance.
Quick checks
Section titled “Quick checks”aictx checkaictx diffaictx view --opencheckvalidates canonical memory and generated index health.diffshows memory changes, including untracked files in Git projects.view --openstarts the local read-only browser viewer.
Setup and bootstrap
Section titled “Setup and bootstrap”aictx initaictx setupaictx setup --applyaictx patch review bootstrap-memory.jsoninitcreates.aictx/and optional repo-level agent guidance.setupguides first-run onboarding and bootstrap memory preview.setup --applyapplies the conservative bootstrap memory patch immediately.patch reviewreviews a structured memory patch without writing it.
Routine memory work
Section titled “Routine memory work”aictx load "change auth routes"aictx search "auth route conventions"aictx inspect decision.auth-route-conventionsaictx suggest --after-task "change auth routes" --jsonaictx audit --jsonaictx save --stdinThe routine loop is narrow load, work, and save only durable knowledge as active memory. A task that produced no reusable project knowledge does not need a save.
Commands that support structured output accept --json:
aictx check --jsonInspection and debugging
Section titled “Inspection and debugging”aictx staleaictx graph <id>stale lists stale and superseded memory. graph shows a one-hop relation
neighborhood for debugging retrieval and provenance.
Maintenance
Section titled “Maintenance”aictx checkaictx rebuildaictx upgradeaictx resetaictx reset --allrebuild regenerates indexes from canonical memory. reset backs up and clears
local .aictx/ storage. reset --all resets every project in the user-level
registry; add --destroy only when you intend to delete each registered
.aictx/ without backup.
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, viewer, and docs
Section titled “Export, viewer, and docs”aictx export obsidianaictx projects listaictx view --openaictx docsaictx docs getting-startedaictx docs demand-driven-memoryaictx docs agent-integration --openaictx view starts a local, read-only memory viewer. aictx docs lists bundled
public docs topics. aictx docs <topic> prints bundled Markdown for that topic.
--open opens the hosted docs site.
CLI and MCP
Section titled “CLI and MCP”MCP is available when the agent client has launched and connected to
aictx-mcp.
MCP exposes exactly load_memory, search_memory, inspect_memory,
save_memory_patch, and diff_memory. Setup, maintenance, recovery, export,
registry, viewer, docs, suggest, audit, stale, and graph workflows are CLI-only
in v1. These CLI-only commands are part of the v1 integration model rather than
MCP parity gaps.
Local MCP is the near-term integration path for local agent harnesses. Remote
MCP, hosted sync, cloud auth, cloud hosting, and ChatGPT App SDK UI are future
work. Future ChatGPT-compatible search/fetch names are adapter aliases over
search and inspect behavior, not local MCP tool names.