# redcon [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/natiixnt/redcon  
**GitHub Stars:** 9  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/redcon

## Description
Deterministic context packing for AI coding agents; measured 83% fewer input tokens, local.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "redcon": {
    "command": "uvx",
    "args": ["redcon"]
  }
}
```

## Documentation

## What redcon does

The redcon MCP server helps coding agents select useful repository context instead of sending an entire codebase into every request. It scores files for a task, applies a suitable compression mode, and assembles the selected material within a token limit. Compression can preserve a complete file, a snippet, extracted symbols, or a summary.

The process is local and deterministic: identical inputs produce identical outputs. Redcon does not use embeddings or random chunking. The project also provides a CLI for planning, packing, benchmarking, pull-request context audits, and CI workflows. Results can be written as machine-readable JSON and human-readable Markdown.

## How it works

The redcon MCP server follows a pull model. Rather than pushing one large context payload to an agent, it exposes tools that the agent calls as it explores the repository. A typical sequence is:

1. Scan repository files, using cached incremental results where available.
2. Rank files using task keywords, imports, file roles, and Git history.
3. Compress individual files with an appropriate strategy.
4. Pack the highest-ranked compressed files under the requested token budget.

Agents can begin with ranked files or a lightweight repository map, then inspect selected files or search more narrowly. Search can target ranked files or the full repository. Structural search uses ast-grep patterns that match syntax trees rather than plain text.

Command output is also handled through the same model. The `redcon_run` tool executes a shell command and returns a compressed, budget-aware result. Built-in handling covers outputs such as Git diffs, tests, searches, directory listings, logs, coverage reports, profilers, package commands, Kubernetes output, and SQL execution plans. A quality harness checks that declared important facts remain in compressed output.

## Setup and configuration

Install the MCP-enabled package with `pip install "redcon[mcp]"`, then run `redcon init`. Initialization creates `redcon.toml`, registers the MCP server, and can write an `AGENTS.md` instruction section. Configuration files are generated for detected clients, including Claude Code, Cursor, and Windsurf.

The VS Code extension provides an alternative setup path. It installs the CLI through pip, registers the MCP server for supported clients, and exposes budget, ranking, and compression views in a sidebar. For CLI-only use, install `redcon` and run `redcon init --no-mcp`.

## Tools and capabilities

The redcon MCP server exposes nine tools:

- `redcon_rank` returns top-ranked files with scores and reasons.
- `redcon_overview` groups a lightweight repository map by directory.
- `redcon_repo_map` returns ranked files and code signatures within a budget.
- `redcon_compress` produces a compressed view of one file.
- `redcon_search` performs regular-expression searches.
- `redcon_structural_search` searches code by AST pattern.
- `redcon_budget` plans which files fit a token budget.
- `redcon_run` executes commands and compresses their output.
- `redcon_quality_check` verifies compressed command output with the quality harness.

The CLI also supports commands such as `plan`, `pack`, `benchmark`, `pr-audit`, `cmd-quality`, and `cmd-bench`.

## Limitations and notes

Results depend on the repository, task description, token budget, and available Git information. The project reports benchmark results for its own evaluation data, but those figures should not be treated as a guarantee for every codebase or task. Compression is designed to preserve declared facts, and the quality harness rejects regressions it detects; developers should still validate whether the retained context is sufficient for their workflow.

The MCP integration is intended for local repositories.

_Full upstream README: https://allmcps.com/mcp/redcon/readme_

