Getting started
Aictx works inside an existing project. By the end of this page you will have a
local .aictx/ directory, repo-level agent guidance, and the commands for the
first memory loop.
What you need
Section titled “What you need”- Node.js
>=22 - A project directory where you want AI coding agents to remember durable project context
Check Node with:
node --versionInstall
Section titled “Install”Install globally for the simplest CLI and MCP setup:
npm install -g @aictx/memoryGlobal install is the recommended default for regular CLI use and optional MCP use. A project-local dependency is only needed when a project should pin its own Aictx version.
For project-local version pinning:
pnpm add -D @aictx/memorynpm install -D @aictx/memoryWhen aictx is not on PATH, run commands through the package manager or local
binary:
pnpm exec aictx initnpm exec aictx init./node_modules/.bin/aictx initFor one-off execution without a global or local install:
pnpm --package @aictx/memory dlx aictx initnpx --package @aictx/memory -- aictx initInitialize a project
Section titled “Initialize a project”From the project root:
aictx initinit creates .aictx/ and, by default, updates marked Aictx sections in
AGENTS.md and CLAUDE.md. Those sections tell coding agents to load memory
before non-trivial work and make a save/no-save decision after meaningful work.
Use --no-agent-guidance when you want to leave those instruction files
unchanged.
Seed first-run memory
Section titled “Seed first-run memory”For guided onboarding:
aictx setupaictx setup --applyaictx setup previews a conservative bootstrap memory patch. aictx setup --apply applies it immediately.
If you want to inspect the patch file manually:
aictx suggest --bootstrap --patch > bootstrap-memory.jsonaictx patch review bootstrap-memory.jsonaictx save --file bootstrap-memory.jsonaictx checkThis is the right path when memory feels empty after init, or when you want
source-backed product intent, feature map, roadmap, architecture, conventions,
and agent guidance syntheses without hand-writing JSON.
Run the first memory loop
Section titled “Run the first memory loop”Load memory before non-trivial work:
aictx load "change auth routes"After work creates durable knowledge for future agents, save a structured patch:
aictx save --stdinSaved memory is active immediately after Aictx validates and writes it. A task that produced no reusable project knowledge does not need a save.
Inspect memory later:
aictx viewaictx diffCLI and MCP
Section titled “CLI and MCP”The CLI is the default interface for routine memory work. 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.