Context-compiler-cli is a CLI tool for analyzing, linting, and deterministically optimizing LLM prompt/context files. Current stable version is 0.2.3, released with active development cadence. It provides commands like compact, analyze, lint, and optimize, with tokenizer options (char, o200k_base). Differentiators include deterministic compaction preview and config persistence without JSON editing. Requires Node >=18.
npm install context-compiler-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install CLI globally, verify help, then run deterministic compaction preview on sample text.
Upgrade Node to 18+ with nvm install 18
Specify desired tokenizer with --tokenizer flag or config set.
Use ctxc for all commands.
Run npm install -g context-compiler-cli or use npx ctxc
Use valid tokenizer: char or o200k_base; check spelling.