Getting Started
CtxCtl makes files and command output smaller before they reach the model. Your agent reads only the symbol it needs — via tree-sitter AST location resolved back to an original-source slice — and compresses command output into key lines plus a head/tail summary.
Install
Section titled “Install”cargo install ctxctlnpm install -g ctxctl# orbun add -g ctxctlBinaries
Section titled “Binaries”Download the prebuilt binary for your platform from the
GitHub releases page — releases also ship .deb,
.rpm, .apk, and Arch packages.
Quick start
Section titled “Quick start”ctxctl outline src/main.rs # symbol map + savingsctxctl symbol src/main.rs --name run --compact # one symbol, body foldedctxctl read src/main.rs --lines 40-80 # raw line slicesctxctl deps src/main.rs # import graph (local/external)ctxctl exec "cargo test" --keep "FAILED|passed" # run + compress outputctxctl outline src/main.rs --json # machine contractNo whole-file dumps. No raw log walls. Deterministic output — identical runs stay cache-hot.
Configuration
Section titled “Configuration”CtxCtl is stateless: config files store only default-behavior preferences. Lookup precedence, high to low:
--config <path>(explicit).ctxctl/config.toml(project-level, discovered walking up like.git)$XDG_CONFIG_HOME/ctxctl/config.toml(XDG global)- Built-in defaults
Teach your agent
Section titled “Teach your agent”Load the ctxctl-core skill so your coding agent reaches for symbol slices and compressed output on its own:
# List available skillsnpx skills add Xuepoo/ctxctl-skills --list
# Install the core skill for all detected agentsnpx skills add Xuepoo/ctxctl-skills --allOr use the skill once without installing it:
npx skills use Xuepoo/ctxctl-skills --skill ctxctl-coreThe skill gives agents first-class awareness of the outline / symbol / read / deps /
exec workflow — fewer tokens per task, cache-friendly runs.
MCP-native agents can skip the skill entirely and call ctxctl as native tools; see MCP Adapter.