Getting Started

This repository packages the claude-ctx context management toolkit as a Claude Code plugin. It bundles the curated agents, commands, modes, rules, and supporting Python CLI so teams can install the complete experience through the plugin system or keep using the standalone claude-ctx script.

What’s inside

The plugin manifest lives in .claude-plugin/plugin.json so Claude Code detects commands and agents automatically when the marketplace entry points to this repository.

Installing via Claude Code

  1. Add the marketplace that references this repository (see the companion NickCrew/claude-marketplace project).
  2. Install the plugin with /plugin install claude-ctx@<marketplace-name>.
  3. Restart Claude Code so the new commands and agents load.

After installation, the /plugin browser will list the bundled commands, and the /agents panel will show all active agents from the agents/ directory.

Using the bundled CLI

python3 -m pip install .
claude-ctx mode list
claude-ctx agent graph --export dependency-map.md

Running the CLI directly will operate on the directories in this repository, which mirror the layout expected inside ~/.claude.

Tip: The CLI looks in this order for its data folder: CLAUDE_CTX_HOME, CLAUDE_PLUGIN_ROOT (set automatically when Claude Code runs plugin commands), then ~/.claude. After installing the plugin you can point the standalone CLI at the cached copy with:

export CLAUDE_CTX_HOME="$HOME/.claude/plugins/cache/claude-ctx"

or, if you work from another checkout:

export CLAUDE_CTX_HOME="$HOME/Developer/personal/claude-ctx-plugin"

Set that once (for example in ~/.zshrc) and both the CLI and Claude Code will use the same data without reinstalling.

Shell completion

claude-ctx ships with optional argcomplete support. Install the project (editable installs work too), then register the completer:

# editable install via pipx
pipx install --include-deps --editable .

# one-time registration for the active shell session
eval "$(~/.local/pipx/venvs/claude-ctx-py/bin/register-python-argcomplete claude-ctx)"

# add the same eval line to ~/.zshrc or ~/.bashrc for persistence

If you install the package with a different toolchain, point register-python-argcomplete at the virtual environment where claude-ctx lives.

Development notes

For marketplace configuration examples, see ../claude-private-marketplace.