Skip to content
tryatlasPublic

About

Atlas CLI is the command-line version of Atlas. It hooks into the coding agents you already use, such as Claude Code, Codex, Cursor, and captures every session live to the cloud. It also gives every agent one shared project memory that they search by meaning, using a model that runs locally.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

atlas: shared memory and session capture for coding agents

Atlas CLI

Shared memory and session capture for coding agents, from the terminal.
Claude Code, Codex, Cursor, Copilot, OpenCode, Droid, Antigravity and Pi keep their own UIs;
Atlas records every session and gives every agent the same memory of the project.

Latest release Pure Go macOS and Linux Apache-2.0

Install · Quick start · Shared memory · Session capture · Agents · Commands


Atlas CLI is the headless Atlas: one Go binary that signs in like the Atlas desktop app, binds a folder to an organisation and a cloud Project, and plugs into the hooks of the agents you already use. It writes the same files the app writes, byte for byte, so a folder works the same whether it is open in the app, in a terminal on a server, or both.

Install

macOS (Apple silicon, Intel) and Linux (amd64, arm64):

curl -fsSL https://tryatlas.cc/install.sh | sh

tryatlas.cc/install.sh is the install.sh from the latest GitHub release, served by the Atlas site. The installer verifies the archive's sha256 and puts atlas-cli in ~/.local/bin (ATLAS_INSTALL_DIR changes it, ATLAS_VERSION=v0.4.0 pins it). Later, atlas-cli update does the same in place. From source: make build (pure Go, no cgo).

Coming from a release up to v0.4.0, where the command was atlas: atlas update (or the installer) brings the new version, which renames itself to atlas-cli the first time you run it. Then run atlas-cli agents add --all in each Project to point the agents' hooks at the new name.

To remove it: atlas-cli uninstall takes Atlas's hooks and memory entries out of every Project, stops the listeners, and deletes the CLI's state and binary. Each Project's .atlas/ and your sign-in stay for the desktop app (atlas-cli logout first to sign out too).

Quick start

atlas-cli login      # sign in (the same account as the desktop app)
cd ~/work/backend
atlas-cli init       # organisation → Project → agents → background sync
claude               # …or codex, cursor-agent, opencode, copilot: work as usual
atlas-cli status     # what was captured, what synced, what agents remember

atlas-cli init is a guided flow on a terminal:

step asks
1 · Organisation which organisation the folder belongs to (skipped when you have one)
2 · Project the cloud Project: the one matching this repository first, the others, or a new one, which you then name (its handle follows the name; a taken one is said at once)
3 · Agents which agents found on this machine to hook, with an All agents row
4 · Background sync keep a listener running so every event reaches the cloud at once
5 · Memory search download the local search model (87 MB, once) when it is missing

--local binds without a cloud. In scripts, flags answer instead: --org, --project | --create (with --name and --slug for the new one), --agents claude-code,codex | --all-agents, --sync on|off.

atlas-cli settings changes any of it later on one screen: account, capture and memory, each agent, background sync, the local model, updates.

One folder, several repositories

When a product is a folder of repositories, each with its own git, bind the folder once as a workspace:

cd acme-shop && atlas-cli init --workspace

On a terminal, plain atlas-cli init asks ("This folder only" is pre-selected), then offers each repository as a Project of its own. A workspace is never made by default, because it captures every repository below it. A folder already bound on its own becomes one with atlas-cli workspace on.

Each repository is either a Project in the workspace, with its own .atlas/sessions.db and timeline, or a folder that still records into the workspace until it is added (ADR-0016). Agents started anywhere in the workspace share its one memory.

acme-shop/        workspace folder: sessions started here record here
├── frontend/     Project in the workspace: its own sessions and timeline
├── backend/      Project in the workspace
└── mobile/       records into the workspace (atlas-cli workspace add mobile)

Sessions are tagged with the Projects they change (ADR-0017). A session started in acme-shop/ that edits backend/ and frontend/ stays in the workspace's timeline and is tagged backend and frontend. A session started in backend/ that also edits frontend/ is tagged frontend. A commit in a Project links to the session that wrote it, wherever it started.

In the cloud the workspace is a group (ADR-0018), where the organisation has workspace groups:

Atlas cloud                    slug
▣ acme-shop                    acme-shop            the whole product: every session, one timeline
 ├─ ▢ frontend                 acme-shop-frontend   its own sessions, plus those tagged frontend
 ├─ ▢ backend                  acme-shop-backend
 └─ ▢ mobile                   acme-shop-mobile
  • The workspace's cloud Project becomes the group when its first Project is added, and new Projects are created inside it.
  • A Project in a workspace is slugged under it: <workspace>-<folder>, so frontend in acme-shop is acme-shop-frontend and another product's frontend never clashes with it. Its name stays frontend. A Project moved into the group takes the prefix too, when that slug is free.
  • Deleting the workspace on the web asks whether its Projects go with it; by default they stay, each on its own.
  • A Project the CLI finds in the cloud by its git history is moved into the group only after you say yes on a terminal, or with --yes.
  • Sessions sent before a Project was in the group are sent again once, so they get their tags.
  • Where the organisation has no groups, nothing in the cloud changes: each Project is a cloud Project on its own, as before.

A repository cloned into the workspace later records into it at once. atlas-cli serve points it out once, and atlas-cli workspace sync offers to make it a Project. Nothing is bound without a yes, because binding may send a repository to the cloud. atlas-cli init inside a repository of a workspace binds it as a Project in the workspace; --workspace=false binds it on its own instead.

command does
atlas-cli workspace draws the workspace: each folder, whether it is a Project, its cloud Project, and which agents are hooked
atlas-cli workspace add <folder>… / --all makes folders Projects in the workspace; --yes also moves Projects found in the cloud into its group
atlas-cli workspace remove <folder> takes a folder out: a Project goes on on its own, keeping its sessions, and leaves the cloud group
atlas-cli workspace upgrade / --dry-run / --yes brings an older workspace up to date in one run: repositories become Projects, they are grouped in the cloud, earlier sessions get their tags; safe to run again
atlas-cli workspace sync hooks folders added since and offers to bind new repositories
atlas-cli workspace on / off turns an already bound folder into a workspace, or back (its Projects go on on their own)

atlas-cli serve in the workspace folder also sends its Projects' waiting sessions, so a turn recorded offline in backend/ reaches the cloud without a new hook there.

Shared memory

Every agent in the project reads and writes one memory, through the atlas_memory MCP server that atlas-cli agents add registers in the agent's own config. Nothing is ever injected into a prompt: agents pull what they need.

tool what an agent gets
memory_briefing at session start: the active plan, recent file changes, decisions, facts, failures, architecture, conventions, and the previous session's handoff
memory_search memories ranked by meaning and words, plus the project's documents (CLAUDE.md, AGENTS.md, notes, captured sessions)
memory_remember save a decision, fact, failure, architecture note or preference; near-duplicates merge
memory_changes what other sessions recorded since this one last looked
memory_get · memory_history · memory_why one memory, its earlier wordings, and the sessions behind a file or commit
memory_forget · memory_feedback · memory_list remove, rate and list
  • Search by meaning. A small local model (MiniLM, the one the app uses) runs in pure Go on your machine; nothing is sent anywhere. Ask "how do we rotate tokens" and find "signing keys rotate every week". Without the model, search falls back to words.
  • Sized to the machine. Background indexing runs at a lower priority, on half the cores, one Project at a time. On a small machine (one core, or under 2 GB) search stays on keywords; with a GPU, point it at Ollama or any OpenAI-compatible embeddings server (TEI, vLLM), used once its vectors match the app's model.
  • Plans are captured, not typed. When an agent writes its to-do list (TodoWrite, update_plan, todowrite, Claude's tasks and plan mode, …), it becomes the project's plan, and the next session, or another agent, sees it in its briefing.
  • Memories write themselves. Decisions an agent states in its reply, and what the extractor distils from long sessions, land as memories; at session end a handoff note tells the next session where things stand.
  • One record with the app. .atlas/memory/ holds the app's exact files: memory.sqlite (with its vectors), corpus.sqlite, memory.snapshot.sqlite (a daily backup, restored automatically if the record is damaged) and extract-state/.
atlas-cli memory browse   # entries by kind, search, history
atlas-cli memory index    # embed every memory, index the project's documents
atlas-cli memory compute  # how this machine embeds: auto, off, cpu, ollama or a URL
atlas-cli memory compute … for
auto (default) the CPU; keywords only on a small machine; a local Ollama with all-minilm when found
off keywords only: the model is never loaded
cpu [--threads N] the CPU whatever the machine, on at most N cores
ollama Ollama here (ollama pull all-minilm)
http://gpu-box:8080/v1 an OpenAI-compatible server on a GPU

ATLAS_EMBED, ATLAS_EMBED_MODEL and ATLAS_EMBED_THREADS override the setting for one environment (CI, a container).

Session capture

Capture happens per event, as the agent works:

  1. The prompt opens the turn the moment you submit it.
  2. Each tool call lands as the agent's post-tool hook fires, with the files it wrote, including files a shell command changed.
  3. The reply closes the turn at the agent's stop hook, with token usage and the model, read from the transcript the agent names.
  4. Commits an agent makes get their checkpoint: a git post-commit hook links each commit to the session and turn that wrote it.

Every event reaches the cloud Project within seconds: the hook writes the store and syncs, or hands the event to atlas-cli serve, or spools it while the desktop app has the folder open. A hook never fails the agent; problems go to atlas-cli status.

atlas-cli sync on     # a background listener your agents' hooks keep alive
atlas-cli serve       # the same in the foreground, with a live feed of hook events

Agents

atlas-cli agents add <agent> writes the hook and the memory server into the agent's own config in the project; atlas-cli agents remove takes them out. Nothing is wrapped and no environment variable changes.

agent hook written to memory server written to
claude-code Claude Code .claude/settings.local.json .mcp.json, approved in the local settings
codex Codex .codex/hooks.json: choose Trust all and continue once .codex/config.toml
cursor Cursor CLI and IDE .cursor/hooks.json .cursor/mcp.json, approved once in Cursor
copilot GitHub Copilot CLI .github/hooks/atlas.json, once the folder is trusted .github/mcp.json
opencode OpenCode .opencode/plugins/atlas.ts opencode.json
droid Factory Droid .factory/settings.json .factory/mcp.json
antigravity Antigravity (agy) .agents/hooks.json .agents/mcp_config.json
pi Pi .pi/extensions/atlas/index.ts, once the project is trusted .pi/mcp.json

Keep atlas-cli current on PATH, including ~/.local/bin, which some agents put first.

Commands

Every command draws its own screen on a terminal (the Atlas palette: monochrome, colour only for status) and prints plain text to pipes and scripts.

command what
atlas-cli the overview: logo, commands by group
atlas-cli login · logout · whoami sign in with the device grant; the session file is the only secret kept (mode 0600)
atlas-cli org list | use | create organisations
atlas-cli init bind the folder, hook the agents, choose background sync and memory search; --workspace for a folder of repositories
atlas-cli workspace [add | remove | upgrade | sync | on | off] a folder of repositories bound once: its Projects, here and in the cloud
atlas-cli settings everything on one screen
atlas-cli status sign-in, Project, capture health, commits linked, sync, memory, agents
atlas-cli agents add | remove | list | sessions the hooks and memory entry per agent; the sessions seen
atlas-cli sync [on | off] background sync
atlas-cli serve the Project's listener: memory server, sync drain, receiver of hook events
atlas-cli memory browse | list | index | verify | export | import shared memory
atlas-cli memory compute [auto | off | cpu | ollama | <url>] how memory search embeds on this machine
atlas-cli memory enable | disable the shared-memory gate for this repository
atlas-cli capture enable | disable | sync | retry | link the capture gate; sync now, retry failed rows, link commits
atlas-cli update [--check] [--version vX.Y.Z] replace this binary with a release, checksum verified
atlas-cli uninstall [--yes] [--keep-binary] remove Atlas's hooks from every Project, stop the listeners, delete the CLI's state and the binary; .atlas/ and the sign-in stay

What lives where

path what
.atlas/ the app's per-project files only: sessions.db, blobs/, memory/, project.json
<repository>/.atlas/workspace.json in a Project of a workspace: {"memberOf": ".."}, the link to the workspace folder
~/.local/state/atlas-cli/projects/<hash>/ the CLI's own: hook state, hooks.log, the listener's run file, preferences; for a workspace, which repositories were pointed out and which group its sessions were last sent for
~/.local/state/atlas-cli/compute.json this machine's memory compute setting, and endpoint verdicts beside it
~/Library/Application Support/dev.atlas.ide/models/ the local search model, shared with the app (~/.local/share/… on Linux)

Development

make build    # ./bin/atlas
make test     # go test ./...
make lint     # golangci-lint
doc what
docs/progress.md what was built, what was verified live, what was not
docs/adr/ decisions; 0013 is capture through agents' hooks
docs/research/entire-cli.md the per-agent hook facts the integrations follow
docs/atlas-reference/ the desktop app's specification and file formats
docs/RELEASE.md how to release, and the acceptance checklists

Ground rules: a hook reads only the transcript file the agent's own payload names, from the turn's offset, while the hook runs, and never scans an agent's folders; memory is never injected into prompts; an Authorization header is never logged; every stored text passes the redactor; no secret persists except the session token file.

The ACP path of v0.1 (atlas-cli run <agent>) is parked under the hidden atlas-cli acp group.

License

Apache-2.0

About

Atlas CLI is the command-line version of Atlas. It hooks into the coding agents you already use, such as Claude Code, Codex, Cursor, and captures every session live to the cloud. It also gives every agent one shared project memory that they search by meaning, using a model that runs locally.

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages