Command Palette

Search for a command to run...

Home / Servers

clx

Updated 4d ago

by blackaxgit

CLX - Coding-Agent Extension Layer

CI License: MPL-2.0 Claude Code Ready

Note: Currently supports macOS (Apple Silicon / ARM64) only.

Intelligent command validation and context persistence for coding agents. CLX supports Claude Code, Codex CLI, and Cursor (see Supported Hosts for what each host can and cannot enforce).

Features

  • Command Validation - Two-layer validation system:

    • Layer 0: Fast deterministic whitelist/blacklist rules (~1ms)
    • Layer 1: LLM-based risk assessment via Ollama (~100-300ms)
  • Context Persistence - SQLite-based storage with semantic search:

    • Automatic snapshots before context compression
    • Vector embeddings for semantic recall
    • Session history and analytics
  • Auto-Recall - Automatic context injection on every prompt:

    • Hybrid search: semantic (sqlite-vec) + FTS5 full-text
    • Relevant past sessions injected as additionalContext
    • Configurable thresholds, timeouts, and result limits
    • Graceful degradation: Ollama down β†’ FTS5 fallback β†’ orchestrator-only
  • User Learning - Adapts to your workflow:

    • Tracks approved/denied commands
    • Auto-generates rules based on usage patterns
  • MCP Tools - the host agent can access (Claude Code, Codex CLI, Cursor):

    • clx_recall - Search historical context
    • clx_remember - Explicitly save information
    • clx_checkpoint - Create manual snapshots
    • clx_rules - Manage validation rules
    • clx_session_info - Get current session details
    • clx_credentials - Manage stored provider credentials
    • clx_stats - Report usage and storage statistics

Supported Hosts

CLX installs into three coding-agent hosts. MCP tools and instructions injection work fully on all three; command gating differs by host because each host exposes a different hook surface.

HostCommand gatingInstructions injectionMCP tools
Claude CodeFull CLI gating: PreToolUse allow / deny / ask enforced on every tool call~/.claude/CLAUDE.mdFull (7 tools)
Codex CLIInteractive-only, best-effort guardrail: allow / deny in interactive Codex sessions; no ask channel~/.codex/AGENTS.md (with AGENTS.override.md fallback)Full (7 tools)
CursorIDE agent and cloud agents only: beforeShellExecution / beforeMCPExecution with failClosed: true; the local cursor-agent CLI runs no hooks<repo>/.cursor/rules/clx.mdcFull (7 tools)

Codex caveat: Command validation is a guardrail, not a complete enforcement boundary (OpenAI's wording); it applies to interactive Codex sessions, not codex exec automation, and ask is mapped to deny pending Codex ask support.

Cursor caveat: Command gating fires in the IDE agent and cloud agents only; the cursor-agent local CLI does not run hooks.

Quick Install

macOS (Homebrew)

brew tap blackaxgit/clx
brew install clx

This installs clx, clx-hook, and clx-mcp. To update:

brew update && brew upgrade clx

Install with Claude Code

Let Claude handle the entire setup. You just need macOS, Ollama, and Rust installed.

1. Make sure Ollama is running:

ollama serve

2. Paste this into Claude Code:

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

β˜… 204,501

mcp-server-fetch

OfficialUpdated 14d ago

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

β˜… 90,371

@modelcontextprotocol/server-everything

OfficialUpdated 14d ago

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

β˜… 90,371

mcp-server-git

OfficialUpdated 14d ago

by modelcontextprotocol

A Model Context Protocol server providing tools to read, search, and manipulate Git repositories programmatically via LLMs

β˜… 90,371