Agent Context Memory (ACM) eliminates external servers and heavy setup. Instead of pasting long chat transcripts or entire doc folders into every new session, it surfaces only your active tasks, learned patterns, and key architecture decisions (ADRs) within a tight token budget.
-
Local SQLite + FTS5 + 6-Char Short IDs: Persists tasks, patterns, and ADRs in .agents/acm/local/memory.db (node:sqlite, zero external DB services) with collision-free IDs (TSK-XXXXXX, P-XXXXXX, LOG-XXXXXX).
-
4-Channel Local Viewer & IDE MCP App: Browse, search, edit, compact, and dispatch tasks directly inside your IDE side pane (acm_viewer), a one-shot local browser UI (acm ui), terminal static/TUI mode (acm view), or an offline HTML snapshot.
-
Zero-Setup Stdio MCP Server (14 Tools): Connects over standard stdio JSON-RPC 2.0 (acm mcp) with multi-workspace rootDir isolation and ui://acm/viewer.html.
-
Clean Per-Task Commits & Non-Git Support: Commits only [Ready] tasks individually via scripts/acm/group-status.cjs, guards against unsafe deletes with Task Hygiene, and works outside Git repositories without crashing.
-
Optional Multi-PC Cloud Sync (acm cloud): Opt-in free sync across machines (office/home) via a private GitHub vault (github-vault) or local cloud folder (local-folder)—syncing SQLite/Markdown memory, config.json, and optional custom rules without polluting project Git history.
[!TIP]
New to terminals or coding tools? Jump straight to the Step-by-Step Guide for Non-Developers right below.
Set up ACM in any folder with a single command. During interactive setup, choose your Language (en default or ko) and Storage (sqlite recommended or markdown).
# 1. Interactive setup: choose language, storage (SQLite recommended), and rule files
npx -y agent-context-memory
# Or non-interactive / AI agent / CI setup (skips prompts and backup restore prompt)
npx -y agent-context-memory init --non-interactive --no-restore-backup
npx -y agent-context-memory init --lang=ko --storage=sqlite --non-interactive --no-restore-backup
# Target specific rule file(s) in a project folder
npx -y agent-context-memory ./my-project --rule-file=CLAUDE.md,AGENTS.md
# 2. Run right after setup
npx agent-context-memory ui # launch one-shot local browser viewer
npx agent-context-memory view # inspect memory in terminal
npx agent-context-memory status # preview task file groupings (or Memory Viewer outside Git)
npx agent-context-memory mcp --print-config # print MCP config JSON for your IDE
[!NOTE]
Node.js >=22.13.0 is required for built-in node:sqlite. Starting in v0.3.1, ACM selectively suppresses Node 22's node:sqlite ExperimentalWarning internally so --json CLI and stdio MCP output never breaks while other warnings still surface.
Existing Markdown records under .agents/acm/ (or legacy .agents/) are imported into .agents/acm/local/memory.db automatically on setup, and previous local or Git backups (acm-backups) are detected for optional restore (--restore-backup).
# Option B. Install as devDependency (runs postinstall setup automatically; macOS / Linux / Git Bash)
npm install -D agent-context-memory
ACM_LANG=ko npm install -D agent-context-memory
ACM_SKIP_POSTINSTALL=1 npm install -D agent-context-memory
# Option C. Global CLI ('acm')
npm install -g agent-context-memory
acm
acm --lang=ko
acm ui
acm view
# Option D. Local installer script directly
node scripts/acm/install-template.cjs /path/to/my-project --lang=ko --rule-file=CLAUDE.md,GEMINI.md
# Advanced npx flags
ACM_NON_INTERACTIVE=1 npx -y agent-context-memory init --lang=ko # macOS / Linux / Git Bash
npx -y agent-context-memory init --markdown-projection # sync .agents/acm/task/*.md alongside SQLite
npx -y agent-context-memory init --storage=markdown # Markdown-only mode
npx -y agent-context-memory init --restore-backup=latest # restore from local or Git backup
npx -y agent-context-memory --force # overwrite existing ACM template files
Windows Terminal (PowerShell / CMD) — use shell-native env var syntax instead of VAR=...:
# Windows PowerShell
$env:ACM_LANG="ko"; npm install -D agent-context-memory
$env:ACM_SKIP_POSTINSTALL="1"; npm install -D agent-context-memory
$env:ACM_NON_INTERACTIVE="1"; npx -y agent-context-memory init --lang=ko
:: Windows Command Prompt (CMD)
set ACM_LANG=ko && npm install -D agent-context-memory
set ACM_SKIP_POSTINSTALL=1 && npm install -D agent-context-memory
set ACM_NON_INTERACTIVE=1 && npx -y agent-context-memory init --lang=ko
| Flag |
Scope |
Description |
-f, --force |
init / uninstall |
Skip prompts; overwrite templates on init or strip modified rule blocks on uninstall |
-l, --lang <en\|ko> |
All |
Set installation and runtime language (en default or ko) |
--storage=<sqlite\|markdown> |
init |
Select storage backend (sqlite default on Node >= 22.13) |
--markdown-projection / --no-markdown-projection |
init |
Enable or disable .agents/acm/task/*.md projection in SQLite mode (default: disabled) |
--non-interactive |
init / uninstall / Git |
Skip prompts safely (also via ACM_NON_INTERACTIVE=1 or CI=true) |
-r, --rule-file=<files> |
init / uninstall |
Target specific agent rule file(s), comma-separated (e.g. CLAUDE.md,AGENTS.md) |
--dry-run |
uninstall / DB / Git |
Preview actions without modifying files or Git refs |
--no-backup |
uninstall |
Skip creating a .acm-backup-* archive during uninstall |
--backup-format=<zip\|tar.gz\|dir> |
uninstall |
Archive format for backups (default: zip) |
--backup-target=<local\|git\|both> |
uninstall |
Store backup locally, on Git orphan branch, or both (default: local) |
--backup-branch=<branch> |
init / uninstall |
Override backup Git orphan branch name (default: acm-backups) |
--backup-remote=<remote> |
init / uninstall |
Override Git remote for backup branch (default: origin) |
--restore-backup[=<ref>] |
init |
Restore existing backup (latest, local, git, filename, or path) |
--no-restore-backup |
init |
Skip backup discovery and restore prompts |
If you build projects using AI assistants (Antigravity IDE, Cursor, Claude Code, Windsurf, etc.) without a software engineering background, follow these 5 simple steps in order. You do not need to memorize technical terms or manage any servers.
Before You Start (1 Minute)
-
No accounts, no external servers, no API keys: Everything stays inside a single folder on your computer.
-
Install Node.js (v22.13 or newer): Visit nodejs.org and install the latest LTS version just like any normal app.
-
Open the terminal inside your AI editor: Open your project folder in Antigravity, Cursor, or VS Code, then press Ctrl + ~ (or click Terminal -> New Terminal in the top menu). Type node -v and press Enter to confirm you see v22.13.0 or higher.
Step 1. Install ACM in Your Project
In that terminal inside your project folder, run this single command:
npx -y agent-context-memory
It will ask you 3 quick questions on screen:
-
Language: Choose English or Korean.
-
Storage: Choose SQLite (Recommended) so your memory stays fast and tidy in one database file.
-
AI Tool Rule File: If asked, use the arrow keys and Space to pick your tool (AGENTS.md for Antigravity/Codex, CLAUDE.md for Claude Code, .cursorrules for Cursor), then press Enter.
[!TIP]
Prefer not to answer terminal prompts? Just copy and paste this sentence into your AI chat instead:
Install agent-context-memory in this project with SQLite defaults. (npx -y agent-context-memory init --storage=sqlite --non-interactive --no-restore-backup)
Step 2. Work With Your AI Like Usual
Once installed, you do not have to type special commands every day. Your AI automatically reads the rule file (AGENTS.md / CLAUDE.md) and tracks your work in the background.
Try talking to your AI just like this:
-
Starting something new: "Register a new task for redesigning the login screen and let's start working on it."
-
Opening a brand new chat later: "Check my active ACM tasks and pick up where we left off."
-
Saving a helpful tip for next time: "Save the fix we just found as an ACM pattern so we don't hit this issue again."
Step 3. View Your Saved Memory Visually
Whenever you want to see what your AI remembers in a clean screen instead of reading code files, run:
npx agent-context-memory ui
Your web browser will open automatically. You can click the Tasks, Patterns, ADRs, and Archive tabs, search by keyword, or create and edit tasks like a regular web app. When you are done looking, go back to the terminal and press Ctrl + C to close it.
[!NOTE]
If your IDE connects ACM over MCP (such as Antigravity IDE), you can simply tell your AI "Open the ACM Viewer" in chat to inspect everything right inside the side pane. See the viewer preview below.
Step 4. Finish & Save Your Progress Safely
When the AI finishes coding, it deliberately pauses your task at Ready instead of immediately pushing or committing changes on its own. Review the result first, then wrap up in one sentence:
-
If your folder uses Git: Tell your AI "Commit this task" (or run npm run acm:commit). ACM checks for errors, commits only that task's files, and moves the task card to Done.
-
If your folder does NOT use Git: No problem at all. Tell your AI "Mark this task done"—ACM cleanly archives the task record without any Git errors.
[!TIP]
Switching between office and home PCs? ACM stays 100% local by default, and you can optionally link Multi-PC Online Sync (acm cloud) to carry over your tasks and memories across machines without touching your project's Git history.
Step 5. Remove ACM Safely Anytime
If you decide you no longer need ACM in a folder, run:
npx agent-context-memory uninstall
It offers to save a .zip backup of your notes first, then deletes only ACM's own files while leaving all of your code and custom AI instructions untouched.
Plain-Language Glossary (4 Terms Only)
| Term |
Plain-English Meaning |
| Task |
A "to-do card" tracking what you are currently building (Todo -> In Progress -> Ready -> Done). |
| Pattern |
A "troubleshooting recipe" saved so your AI remembers how you fixed a tricky problem next time. |
| ADR |
A short "big decision note" explaining why you chose a certain design or tool for your project. |
| MCP |
A "plugin bridge" that lets your AI click dedicated ACM buttons directly instead of typing terminal commands. |
Inspect and manage your entire project memory without digging through hidden .agents/acm/ files or raw SQLite rows. All four channels share a unified Read-Model (scripts/acm/viewer/read-model.cjs) and an offline Preact UI bundle with zero external CDN dependencies.
# Terminal viewer (static text by default; add -i for interactive TUI)
npx agent-context-memory view --tab=tasks --status=ready
npx agent-context-memory view --tab=patterns --search="sqlite" --limit=20
npx agent-context-memory view --id=K7M2
npx agent-context-memory view -i --read-only
# One-shot loopback browser UI (stops cleanly with Ctrl+C)
npx agent-context-memory ui
npx agent-context-memory ui --tab=adrs --port=43825 --no-open
# Standalone read-only HTML snapshot
npx agent-context-memory export --format=html --out=.agents/acm/viewer-snapshot.html
| Command |
Supported Flags |
acm view |
--tab=<tasks\|patterns\|adrs\|archive>, --status=<all\|active\|todo\|in_progress\|ready\|paused\|done>, --search=<query> / -q <query>, --id=<code\|uid>, --limit=<N> (default 50), -i / --interactive, --read-only, --no-color, --json, -l / --lang <en\|ko> |
acm ui |
--port=<N> (default 43821, auto-fallback to 43840), --no-open, --read-only, --tab=<tasks\|patterns\|adrs\|archive>, -l / --lang <en\|ko> |
ACM injects its marked governance block (<!-- ACM_GOVERNANCE_START -->) into your root rule files without altering your existing instructions, and connects to every MCP-capable coding agent.