clx: Rust MCP extension for project-aware Claude Code workflows
clx, from Blackaxgit, is a Rust CLI extension and MCP server that augments Claude Code for project-aware AI-assisted coding. The tool exposes MCP-callable utilities for context management, rule enforcement, diagnostic troubleshooting, and LLM-driven command validation to control agent interactions with local repositories. It stores persistent project context in a local SQLite database, offers a rules manager and a diagnostic 'doctor' tool, and integrates as a small compiled binary added to the system PATH for direct CLI use.
Useful when you need persistent project memory and rule governance
The tool targets scenarios where an agent must follow project constraints across sessions, using dedicated utilities to keep context and policies available to the CLI agent. Key callable components include:
- clx-rules, a project rule manager
- clx-doctor, a diagnostic utility for empty recall
- local SQLite store that preserves session history
Validation cuts back risky command execution but needs oversight
The tool performs command safety checks by using an LLM to validate commands before they run, a function described as LLM-powered command validation. The diagnostic utility addresses instances where the agent's recall returns nothing, helping diagnose missing context. Despite these safeguards, the model-driven validation reflects the underlying model's outputs and benefits from human review when commands affect critical systems or production environments.
Requires a Claude Code install and MCP-compatible environment
Operation depends on an existing installation of Claude Code and support for the Model Context Protocol, so the tool functions where MCP is available. It installs as a compiled Rust binary typically placed in the system PATH and runs on macOS, Linux, and Windows. The Rust implementation aims to keep CLI overhead low compared with heavier server-side toolchains, making it practical in desktop development environments.
Fits command-line development workflows but remains specialized
The extension integrates with the agent through MCP so the CLI can invoke tools directly, which suits power users who embed agent calls inside existing terminal workflows. The developer maintains other MCP utilities such as ssh-mcp, and community directories cite this project as a recommended extension for experienced users. Because it focuses on one agent and protocol, teams using a different agent ecosystem may find it narrowly targeted.
Practical for committed Claude Code users, limited for broader teams
clx is a practical option for developers who already use the Claude Code CLI and need greater control over agent interactions; it is an independent open-source project rather than an official Anthropic offering, so teams should weigh support and maintenance expectations before adopting it for mission-critical workflows.





