Clx

•
1
•

Enhance Claude Code with LLM-powered command validation, secure context persistence, and adaptive learning for improved development workflows.

Clx extends Claude Code by providing a robust Rust CLI extension focused on safety and productivity. It implements a two-layer command validation system, combining fast deterministic rules with advanced LLM-based risk assessment via Ollama, ensuring that potentially dangerous commands are flagged before execution. Beyond safety, Clx offers intelligent context persistence using SQLite and vector embeddings, allowing for automatic historical snapshots, semantic search, and deeper insights into past interactions. The tool adapts to user behavior, learning approved and denied commands to automatically generate custom rules, streamlining the development process within Claude Code while bolstering security and recall.

主要功能

01User-Adaptive Learning for Command Approval/Denial Patterns
02Automatic Context Snapshots before LLM compression
03Two-layer Command Validation (Deterministic Rules & LLM Assessment)
040 GitHub stars
05SQLite Context Persistence with Vector Semantic Search
06MCP Tools for Context Recall, Save, and Checkpointing

使用案例

01Persisting and semantically searching historical development context across Claude Code sessions.
02Automating the whitelisting and blacklisting of commands based on user interaction patterns.
03Preventing accidental execution of potentially harmful commands suggested by LLMs in Claude Code.