Getting started
Getting started
Section titled “Getting started”Aictx works inside an existing project. It writes local, reviewable memory files
under .aictx/ and keeps generated indexes separate from canonical memory.
Requirements
Section titled “Requirements”Aictx requires Node.js >=22.
Install
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. You do not need to add Aictx to each project’s package.json unless that
project should pin its own Aictx version.
For project-local version pinning:
pnpm add -D @aictx/memorynpm install -D @aictx/memoryIf aictx is not on PATH, run the same 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”Run this once at the project root:
aictx initBy default, init creates .aictx/ and updates marked Aictx sections in
AGENTS.md and CLAUDE.md so coding agents are told to load memory before
non-trivial work and save durable memory after meaningful work.
Use --no-agent-guidance when you do not want those repo instruction files
updated.
First memory loop
Section titled “First memory loop”Load relevant project memory before non-trivial work:
aictx load "change auth routes"Do the task. When the work creates durable knowledge future agents should know, save a structured patch:
aictx save --stdinSaved memory is active immediately after Aictx validates and writes the patch. Inspect it asynchronously when needed:
aictx viewaictx diffAictx writes local files and never commits automatically.
Guided setup
Section titled “Guided setup”For first-run onboarding:
aictx setupaictx setup --applyUse aictx setup when you want a guided bootstrap preview. Use
aictx setup --apply when the conservative bootstrap memory patch should be
applied immediately.