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
commands/
– slash command definitions that surface curated behavioural promptsagents/
andagents-disabled/
– Claude subagents with dependency metadatamodes/
andmodes-inactive/
– opinionated context modules that toggle workflow defaultsrules/
– reusable rule sets referenced by the CLI and plugin commandsprofiles/
,scenarios/
,workflows/
– higher-level orchestration templates for complex workstreamsclaude_ctx_py/
andclaude-ctx-py
– Python CLI entrypoint mirroring the originalclaude-ctx
schema/
andscripts/
– validation schemas and helper scripts
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
- Add the marketplace that references this repository (see the companion
NickCrew/claude-marketplace
project). - Install the plugin with
/plugin install claude-ctx@<marketplace-name>
. - 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
- Update the version in
.claude-plugin/plugin.json
whenever you publish a new release. - Keep semantic changes to commands or agents alongside changelog entries in
CLAUDE.md
orRULES.md
. - Use
claude plugin validate .
to confirm the manifest structure prior to publishing.
For marketplace configuration examples, see ../claude-private-marketplace
.