CLI Reference
Complete reference for all ctxloom commands.
ctxloom init
Initialize a new .ctxloom directory.
ctxloom init # Create .ctxloom in current directoryctxloom init --home # Create/ensure ~/.ctxloom existsctxloom run
Assemble context and run AI plugin.
ctxloom run [flags] [prompt...]Flags
| Flag | Description |
|---|---|
-p, --profile <name> | Load predefined fragment set |
-f, --fragments <names> | Additional fragments to include (repeatable) |
-t, --tags <tags> | Include fragments with specific tags (repeatable) |
--plugin <name> | LLM plugin to use (default: claude-code) |
--saved-prompt <name> | Use saved prompt instead of inline |
--dry-run | Show what would be assembled without running |
--suppress-warnings | Suppress warnings |
--print | Print assembled context to stdout |
-v, -vv, -vvv | Verbosity levels |
Examples
ctxloom run -p developer "implement error handling"ctxloom run -f python-tools#fragments/typing "add type hints"ctxloom run -f security#fragments/owasp -f python#fragments/errors "audit"ctxloom run -t security "check for vulnerabilities"ctxloom run --plugin gemini "use Gemini"ctxloom run --dry-run # Preview onlyctxloom fragment
Manage fragments.
| Command | Flags | Arguments | Description |
|---|---|---|---|
list | --bundle | List all fragments, optionally filtered by bundle | |
show | --distilled | bundle#fragments/name | Show fragment content |
create | <bundle> <name> | Create new fragment with placeholder | |
delete | bundle#fragments/name | Delete fragment from bundle | |
edit | bundle#fragments/name | Edit fragment in configured editor | |
distill | --force | bundle#fragments/name | Create token-efficient version |
install | --force, --blind | <reference> | Install bundle from remote |
Examples
ctxloom fragment listctxloom fragment list --bundle python-toolsctxloom fragment show python-tools#fragments/typingctxloom fragment show --distilled python-tools#fragments/typingctxloom fragment create my-bundle coding-standardsctxloom fragment edit my-bundle#fragments/coding-standardsctxloom fragment distill my-bundle#fragments/coding-standardsctxloom fragment install ctxloom-default/testingctxloom fragment install --blind ctxloom-default/security # Skip previewctxloom prompt
Manage prompts.
| Command | Arguments | Description |
|---|---|---|
list | List all prompts | |
show | bundle#prompts/name | Show prompt content |
create | <bundle> <name> | Create new prompt |
delete | bundle#prompts/name | Delete prompt |
edit | bundle#prompts/name | Edit prompt in editor |
install | <reference> | Install from remote |
ctxloom profile
Manage profiles.
| Command | Flags | Arguments | Description |
|---|---|---|---|
list | List all profiles | ||
show | <name> | Show profile details and exclusions | |
create | --parent, -b, -d | <name> | Create new profile |
modify | See below | <name> | Modify profile configuration |
delete | <name> | Delete profile | |
edit | <name> | Edit profile in editor | |
install | <reference> | Install from remote |
Create Flags
| Flag | Description |
|---|---|
--parent | Parent profiles to inherit from (repeatable) |
-b, --bundle | Bundle references to include (repeatable) |
-d, --description | Profile description |
Modify Flags
| Flag | Description |
|---|---|
--add-parent | Add parent profile (repeatable) |
--remove-parent | Remove parent profile (repeatable) |
--add-bundle | Add bundle reference (repeatable) |
--remove-bundle | Remove bundle reference (repeatable) |
-d, --description | Update description |
--exclude-fragment | Add fragment to exclusion list (repeatable) |
--include-fragment | Remove fragment from exclusion list (repeatable) |
--exclude-prompt | Add prompt to exclusion list (repeatable) |
--include-prompt | Remove prompt from exclusion list (repeatable) |
--exclude-mcp | Add MCP server to exclusion list (repeatable) |
--include-mcp | Remove MCP server from exclusion list (repeatable) |
Examples
ctxloom profile listctxloom profile show developerctxloom profile create my-profile -b python-tools -d "My dev profile"ctxloom profile create child --parent base --parent security -b extrasctxloom profile modify developer --exclude-fragment verbose-loggingctxloom profile modify developer --include-mcp slow-serverctxloom profile edit my-profilectxloom profile install ctxloom-default/python-developerctxloom remote
Manage remote sources.
| Command | Arguments | Description |
|---|---|---|
add | <name> <url> | Register remote source |
remove | <name> | Remove registered remote |
list | List configured remotes | |
default | [name] | Get/set default remote |
search | <query> | Search for bundles/profiles |
browse | <remote> | Browse remote contents |
discover | Find ctxloom repos on GitHub/GitLab | |
lock | Generate lockfile from installed items | |
update | [name] | Update remotes (all or specific) |
sync | Sync dependencies |
URL Formats
| Format | Example |
|---|---|
| GitHub shorthand | alice/ctxloom |
| Full HTTPS | https://github.com/alice/ctxloom |
| GitLab | https://gitlab.com/corp/ctxloom |
| SSH (converted to HTTPS) | git@github.com:alice/ctxloom.git |
Examples
ctxloom remote add myteam myorg/ctxloom-teamctxloom remote add corp https://gitlab.com/corp/ctxloomctxloom remote listctxloom remote default myteamctxloom remote browse ctxloom-defaultctxloom remote search "python testing"ctxloom remote discoverctxloom remote syncctxloom mcp
Manage MCP server configuration.
| Command | Flags | Arguments | Description |
|---|---|---|---|
serve | Run as MCP server over stdio (default) | ||
list | List configured MCP servers | ||
add | -c, -a, -b | <name> | Add MCP server |
remove | -b | <name> | Remove MCP server |
show | <name> | Show MCP server details | |
auto-register | --disable, --enable | Configure auto-registration |
Add Flags
| Flag | Description |
|---|---|
-c, --command | Command to run (required) |
-a, --args | Command arguments (repeatable) |
-b, --backend | Backend scope: unified, claude-code, gemini |
Examples
ctxloom mcp serve # Run as MCP serverctxloom mcp listctxloom mcp add tree-sitter -c "npx" -a "tree-sitter-mcp" -a "--stdio"ctxloom mcp add my-server -c "/path/to/server" -b claude-codectxloom mcp remove tree-sitterctxloom mcp auto-register --disablectxloom memory
Manage session memory.
| Command | Flags | Description |
|---|---|---|
compact | --session, --model | Compact session to distilled summary |
list | --backend | List sessions with compaction status |
load | --model | Load and distill a specific session |
query | --limit | Semantic search across session history |
Examples
ctxloom memory compact # Compact current sessionctxloom memory compact --session abc123 # Compact specific sessionctxloom memory list # List all sessionsctxloom memory list --backend gemini # List Gemini sessionsctxloom memory load abc123def # Load specific sessionctxloom memory query "authentication flow" # Search session historyctxloom completion
Generate shell completion scripts.
ctxloom completion [bash|zsh|fish|powershell]Installation
Bash:
source <(ctxloom completion bash) # Current sessionctxloom completion bash > /etc/bash_completion.d/ctxloom # Permanent (Linux)ctxloom completion bash > /usr/local/etc/bash_completion.d/ctxloom # macOSZsh:
echo "autoload -U compinit; compinit" >> ~/.zshrc # Enable if neededctxloom completion zsh > "${fpath[1]}/_ctxloom"Fish:
ctxloom completion fish > ~/.config/fish/completions/ctxloom.fishPowerShell:
ctxloom completion powershell | Out-String | Invoke-Expression