Skip to Content
coaadedocs

Memory, sessions and checkpoints

Project memory, resuming saved conversations, rewinding code and conversation to checkpoints, branching, and context compaction.

Project memory

The agent can save lasting preferences and corrections with its memory_write tool. Memory is loaded into later prompts and sessions for the same project and account. It's background information, never permission to run a tool.

CommandEffect
/memoryRead the saved notes
/memory add Use pnpm for package commandsSave a note yourself
/memory auto offAsk before the model changes memory
/memory auto onLet the model change memory (the default)
/memory clearRemove all notes

Memory is private to your account and project folder, stored under ~/.coaade/cli/projects/. It isn't synced to the cloud.

Sessions

Conversations are saved locally under ~/.coaade/cli/sessions. They can include code and tool output.

coaade -r                  # open the history picker for this folder
coaade -r SESSION_UUID     # resume one directly, also in scripts
coaade sessions            # list sessions

The picker shows recent chats first. Use ↑↓ or the mouse wheel to choose, type to filter, Enter to resume and Esc to close. It only lists sessions for the current folder, account and provider.

Resuming restores the visible messages and your input history. Background tasks don't restart, and interrupted tool calls aren't replayed. Inside chat, /session prints the resume command.

Saved sessions are capped at 96 MB.

Checkpoints and rewind

A checkpoint is made before every prompt. edit_file and write_file record each file's content before and after a change.

Run /rewind and choose to restore code, conversation or both.

  • Before restoring, the CLI checks every file against what's on disk. If a file was changed outside the CLI, it stops without touching anything.
  • If a restore fails partway, files already restored are rolled back where possible.
  • The picker keeps the latest 100 checkpoints, and checkpoints survive resume.

Shell commands, MCP servers, hooks and edits you make in your editor aren't checkpointed. Keep using Git for real version history.

Branching

/branch copies the conversation into a new branch with its own checkpoint timeline. It doesn't create a Git branch or worktree, and doesn't copy your files.

Compaction

When the context reaches about 450 KB of text, the CLI summarizes it automatically so you can keep working. Run /compact yourself at any time, optionally with a focus:

/compact focus on the API migration
  • The newest turn is kept when possible, and a tool call is never separated from its result.
  • The full original transcript is kept. Open it with /transcript or Ctrl+O, and search it with /.
  • Summaries lose detail. The files and the transcript remain the source of truth.
  • Compaction is a normal model request; you can interrupt it, and a failed summary leaves the conversation as it was.

On this page