Getting Started

Prerequisites¶
ctx does not require git, but using version control with your .context/
directory is strongly recommended:
AI sessions occasionally modify or overwrite context files inadvertently.
With git, the AI can check history and restore lost content:
Without it, the data is gone.
Also, several ctx features (journal changelog, blog generation) also use
git history directly.
Installation¶
Every setup starts with the ctx binary: the CLI tool itself.
If you use Claude Code, you also install the ctx plugin, which
adds hooks (context autoloading, persistence nudges) and 25+ /ctx-*
skills. For other AI tools, ctx integrates via generated instruction
files or manual context pasting: see
Integrations for tool-specific setup.
Pick one of the options below to install the binary. Claude Code users should also follow the plugin steps included in each option.
Option 1: Build from Source (Recommended)¶
Requires Go (version defined in
go.mod) and
Claude Code.
Install the Claude Code plugin from your local clone:
- Launch
claude; - Type
/pluginand press Enter; - Select Marketplaces → Add Marketplace
- Enter the path to the root of your clone,
e.g.
~/WORKSPACE/ctx(this is where.claude-plugin/marketplace.jsonlives: It points Claude Code to the actual plugin ininternal/assets/claude) - Back in
/plugin, select Install and choosectx
This points Claude Code at the plugin source on disk. Changes you make to hooks or skills take effect immediately: No reinstall is needed.
Local Installs Need Manual Enablement
Unlike marketplace installs, local plugin installs are not
auto-enabled globally. The plugin will only work in projects that
explicitly enable it. Run ctx init in each project (it auto-enables
the plugin), or add the entry to ~/.claude/settings.json manually:
Verify:
Use the Source, Luke
Building from source gives you the latest features and bug fixes.
Since ctx is predominantly a developer tool, this is the
recommended approach:
You get the freshest code, can inspect what you are installing, and the plugin stays in sync with the binary.
Option 2: Binary Download + Marketplace¶
Pre-built binaries are available from the releases page.
Download ctx-0.6.0-windows-amd64.exe from the releases page and add it to your PATH.
Claude Code users: install the plugin from the marketplace:
- Launch
claude; - Type
/pluginand press Enter; - Select Marketplaces → Add Marketplace;
- Enter
ActiveMemory/ctx; - Back in
/plugin, select Install and choosectx.
Other tool users: see Integrations for tool-specific setup (Cursor, Copilot, Aider, Windsurf, etc.).
Verify the Plugin Is Enabled
After installing, confirm the plugin is enabled globally. Check
~/.claude/settings.json for an enabledPlugins entry. If missing,
run ctx init in your project (it auto-enables the plugin), or add
it manually:
Verify:
Verifying Checksums¶
Each binary has a corresponding .sha256 checksum file. To verify your download:
# Download the checksum file
curl -LO https://github.com/ActiveMemory/ctx/releases/download/v0.6.0/ctx-0.6.0-linux-amd64.sha256
# Verify the binary
sha256sum -c ctx-0.6.0-linux-amd64.sha256
On macOS, use shasum -a 256 -c instead of sha256sum -c.
Plugin Details
After installation (either option) you get:
- Context autoloading:
ctx agentruns on every tool use (with cooldown) - Persistence nudges: reminders to capture learnings and decisions
- Post-commit hooks: nudge context capture after
git commit - Context size monitoring: alerts as sessions grow large
- 25+ skills:
/ctx-status,/ctx-add-task,/ctx-recall, and more
See Integrations for the full hook and skill reference.
Quick Start¶
1. Initialize Context¶
This creates a .context/ directory with template files and an
encryption key at ~/.ctx/ for the
encrypted scratchpad.
For Claude Code, install the ctx plugin
for automatic hooks and skills.
2. Check Status¶
Shows context summary: files present, token estimate, and recent activity.
3. Start Using with AI¶
With Claude Code (and the ctx plugin installed), context loads automatically
via hooks.
With VS Code Copilot Chat, install the
ctx extension and use
@ctx /status, @ctx /agent, and other slash commands directly in chat.
Run ctx hook copilot --write to generate .github/copilot-instructions.md
for automatic context loading.
For other tools, paste the output of:
4. Verify It Works¶
Ask your AI: "Do you remember?"
It should cite specific context: current tasks, recent decisions, or previous session topics.
Next Up:
- Your First Session →: a step-by-step walkthrough from
ctx initto verified recall - Common Workflows →: day-to-day commands for tracking context, checking health, and browsing history