Skip to content

CLI Reference

Complete reference for all ctxloom commands.

ctxloom init

Initialize a new .ctxloom directory.

expressiveCode.terminalWindowFallbackTitle
ctxloom init # Create .ctxloom in current directory
ctxloom init --home # Create/ensure ~/.ctxloom exists

ctxloom run

Assemble context and run AI plugin.

expressiveCode.terminalWindowFallbackTitle
ctxloom run [flags] [prompt...]

Flags

FlagDescription
-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-runShow what would be assembled without running
--suppress-warningsSuppress warnings
--printPrint assembled context to stdout
-v, -vv, -vvvVerbosity levels

Examples

expressiveCode.terminalWindowFallbackTitle
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 only

ctxloom fragment

Manage fragments.

CommandFlagsArgumentsDescription
list--bundleList all fragments, optionally filtered by bundle
show--distilledbundle#fragments/nameShow fragment content
create<bundle> <name>Create new fragment with placeholder
deletebundle#fragments/nameDelete fragment from bundle
editbundle#fragments/nameEdit fragment in configured editor
distill--forcebundle#fragments/nameCreate token-efficient version
install--force, --blind<reference>Install bundle from remote

Examples

expressiveCode.terminalWindowFallbackTitle
ctxloom fragment list
ctxloom fragment list --bundle python-tools
ctxloom fragment show python-tools#fragments/typing
ctxloom fragment show --distilled python-tools#fragments/typing
ctxloom fragment create my-bundle coding-standards
ctxloom fragment edit my-bundle#fragments/coding-standards
ctxloom fragment distill my-bundle#fragments/coding-standards
ctxloom fragment install ctxloom-default/testing
ctxloom fragment install --blind ctxloom-default/security # Skip preview

ctxloom prompt

Manage prompts.

CommandArgumentsDescription
listList all prompts
showbundle#prompts/nameShow prompt content
create<bundle> <name>Create new prompt
deletebundle#prompts/nameDelete prompt
editbundle#prompts/nameEdit prompt in editor
install<reference>Install from remote

ctxloom profile

Manage profiles.

CommandFlagsArgumentsDescription
listList all profiles
show<name>Show profile details and exclusions
create--parent, -b, -d<name>Create new profile
modifySee below<name>Modify profile configuration
delete<name>Delete profile
edit<name>Edit profile in editor
install<reference>Install from remote

Create Flags

FlagDescription
--parentParent profiles to inherit from (repeatable)
-b, --bundleBundle references to include (repeatable)
-d, --descriptionProfile description

Modify Flags

FlagDescription
--add-parentAdd parent profile (repeatable)
--remove-parentRemove parent profile (repeatable)
--add-bundleAdd bundle reference (repeatable)
--remove-bundleRemove bundle reference (repeatable)
-d, --descriptionUpdate description
--exclude-fragmentAdd fragment to exclusion list (repeatable)
--include-fragmentRemove fragment from exclusion list (repeatable)
--exclude-promptAdd prompt to exclusion list (repeatable)
--include-promptRemove prompt from exclusion list (repeatable)
--exclude-mcpAdd MCP server to exclusion list (repeatable)
--include-mcpRemove MCP server from exclusion list (repeatable)

Examples

expressiveCode.terminalWindowFallbackTitle
ctxloom profile list
ctxloom profile show developer
ctxloom profile create my-profile -b python-tools -d "My dev profile"
ctxloom profile create child --parent base --parent security -b extras
ctxloom profile modify developer --exclude-fragment verbose-logging
ctxloom profile modify developer --include-mcp slow-server
ctxloom profile edit my-profile
ctxloom profile install ctxloom-default/python-developer

ctxloom remote

Manage remote sources.

CommandArgumentsDescription
add<name> <url>Register remote source
remove<name>Remove registered remote
listList configured remotes
default[name]Get/set default remote
search<query>Search for bundles/profiles
browse<remote>Browse remote contents
discoverFind ctxloom repos on GitHub/GitLab
lockGenerate lockfile from installed items
update[name]Update remotes (all or specific)
syncSync dependencies

URL Formats

FormatExample
GitHub shorthandalice/ctxloom
Full HTTPShttps://github.com/alice/ctxloom
GitLabhttps://gitlab.com/corp/ctxloom
SSH (converted to HTTPS)git@github.com:alice/ctxloom.git

Examples

expressiveCode.terminalWindowFallbackTitle
ctxloom remote add myteam myorg/ctxloom-team
ctxloom remote add corp https://gitlab.com/corp/ctxloom
ctxloom remote list
ctxloom remote default myteam
ctxloom remote browse ctxloom-default
ctxloom remote search "python testing"
ctxloom remote discover
ctxloom remote sync

ctxloom mcp

Manage MCP server configuration.

CommandFlagsArgumentsDescription
serveRun as MCP server over stdio (default)
listList 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, --enableConfigure auto-registration

Add Flags

FlagDescription
-c, --commandCommand to run (required)
-a, --argsCommand arguments (repeatable)
-b, --backendBackend scope: unified, claude-code, gemini

Examples

expressiveCode.terminalWindowFallbackTitle
ctxloom mcp serve # Run as MCP server
ctxloom mcp list
ctxloom mcp add tree-sitter -c "npx" -a "tree-sitter-mcp" -a "--stdio"
ctxloom mcp add my-server -c "/path/to/server" -b claude-code
ctxloom mcp remove tree-sitter
ctxloom mcp auto-register --disable

ctxloom memory

Manage session memory.

CommandFlagsDescription
compact--session, --modelCompact session to distilled summary
list--backendList sessions with compaction status
load--modelLoad and distill a specific session
query--limitSemantic search across session history

Examples

expressiveCode.terminalWindowFallbackTitle
ctxloom memory compact # Compact current session
ctxloom memory compact --session abc123 # Compact specific session
ctxloom memory list # List all sessions
ctxloom memory list --backend gemini # List Gemini sessions
ctxloom memory load abc123def # Load specific session
ctxloom memory query "authentication flow" # Search session history

ctxloom completion

Generate shell completion scripts.

expressiveCode.terminalWindowFallbackTitle
ctxloom completion [bash|zsh|fish|powershell]

Installation

Bash:

expressiveCode.terminalWindowFallbackTitle
source <(ctxloom completion bash) # Current session
ctxloom completion bash > /etc/bash_completion.d/ctxloom # Permanent (Linux)
ctxloom completion bash > /usr/local/etc/bash_completion.d/ctxloom # macOS

Zsh:

expressiveCode.terminalWindowFallbackTitle
echo "autoload -U compinit; compinit" >> ~/.zshrc # Enable if needed
ctxloom completion zsh > "${fpath[1]}/_ctxloom"

Fish:

ctxloom completion fish > ~/.config/fish/completions/ctxloom.fish

PowerShell:

expressiveCode.terminalWindowFallbackTitle
ctxloom completion powershell | Out-String | Invoke-Expression