tesseract-context
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tesseract-contextsimulate renaming getUser to fetchUser and check for regressions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ Executive Summary
Tesseract-Context solves the single most destructive problem in modern AI-assisted software development: the "Hydra Bug Loop" (an AI attempts to fix a bug, blindly touches code, and inadvertently creates 2 to 5 silent regressions across distant modules).
Instead of treating codebases as flat text streams or burning millions of tokens with probabilistic vector embeddings, Tesseract maps repositories into an orthogonal 4-dimensional hypercube ($\mathbb{R}^4$) structured by a 16-ary fractal Hexadec-Tree.
With In-Memory Transactional Healing, AI agents (Cursor, Claude Code, Windsurf, VS Code, Antigravity) test refactorings inside an ephemeral RAM clone in $< 2\text{ ms}$ at 0 LLM tokens. If a proposed change introduces even a single regression, Tesseract executes an automatic rollback in RAM, leaving the physical disk 100% protected.
Related MCP server: Ketan-OS MCP Server
💥 The Problem: Why Current AI Coding Agents Fail at Scale
Context Rot & Token Exhaustion: Feeding whole files or blind
grepoutputs into LLM windows burns hundreds of thousands of tokens per query, leading to context truncation, lost architectural memory, and high cloud costs.The Hydra Bug Loop: AI models lack global structural visibility. When an agent modifies an export or class signature, it cannot compute downstream ripple effects across 20,000 files.
Passive Tooling: Standard MCP servers only answer read queries. When the AI writes, it uses blind file-write tools that overwrite code without calculating topological shear distance or broken contracts.
🏛️ Core Architectural Breakthroughs
[ 4D Hypercube Space: ℝ⁴ ]
W: Temporal Stability / Git History
▲
│ Z: Architecture Layer (Core..UI)
│ /
│ /
X: Structural Abstraction ◄─────┼─────► Y: Dependency Density
/│
/ │
▼ ▼
[ Hexadec-Tree (16-ary Fractal Spatial Partitioning) ]
│
┌────────────────────────────┼────────────────────────────┐
▼ ▼ ▼
[ 0-Token Static Audit ] [ Infinite Taint Wave ] [ In-Memory Sandboxing ]
20,000+ files scanned Unbounded ripple-effect Ephemeral RAM clone (<2ms)
Deterministic in RAM Terminal sink detection Auto-Rollback on regression1. In-Memory Transactional Healing (tesseract_trial_heal)
Zero-Disk Risk: Clones the hypercube graph in RAM in $< 2\text{ ms}$.
Delta Remapping: Injects the proposed modification, re-parses symbols, and re-audits the delta graph in $O(V + E)$ at 0 LLM tokens.
Automated Rollback: Evaluates Extinguished Fractures vs. New Regressions. If regressions $> 0$, the RAM transaction is discarded (
BLOQUEADO_POR_REGRESIONES), generating a rich causal dossier for the AI.
2. Infinite Taint Wave & Terminal Sinks (tesseract_blast_radius)
Unbounded Relational Traversal: Replaces naive fixed 3-hop approximations. The wave travels through the entire graph until all downstream modules terminate.
Physical Disk Verification: Validates whether each dependent module actually invokes the mutated symbol, retrieving verbatim code snippets and exact line numbers.
Terminal Sinks: Identifies boundary endpoints with
outDegree = 0, delineating the exact stopping boundary of the ripple effect.
3. Active 5-Layer Write Shield (tesseract_safe_write)
Virtual 4D Shadow Projection: Calculates topological shear distance ($D_{\text{shear}} \le 0.10$).
Deterministic Contract Assertion: Verifies call sites across callers and consumers.
Shannon Entropy Gate: Flags high-entropy strings and secret leakage ($H \ge 4.5$).
Strict Entropy Reduction: Rejects writes where
NewBrokenContracts > 0.Circuit Breaker: Freezes files after 2 consecutive failed attempts to halt infinite prompt loops.
💻 CLI Command Reference
Tesseract includes a complete, high-performance command-line suite:
Command | Syntax | Description | Token Cost |
|
| Deterministic static audit of broken imports, contract mismatches, cycles, and orphan nodes. | 0 tokens |
|
| Counterfactual in-RAM trial: Tests proposed code in RAM, maps delta fractures, and triggers auto-rollback if regressions appear. | 0 tokens |
|
| Autonomous Mini-Subagent: Synthesizes a backward-compatible patch, trials it in RAM, and commits only if safe. | 0 tokens |
|
| Calculates the Infinite Taint Wave and blast radius with physical disk verification and terminal sinks. | < 300 tokens |
|
| Synthesizes a zero-touch retrocompatible stub or interface adapter. | 0 tokens |
|
| Geodesic architecture tracing in $\mathbb{R}^4$ from natural language to exact line numbers. | < 500 tokens |
|
| Collaborative triage: pre-filters 99.9% of files in $\mathbb{R}^4$ and outputs critical semantic triage items for AI review. | < 750 tokens |
|
| Modifies file on disk only if it passes the 5-layer 4D shield. | 0 tokens |
|
| Zero-touch autonomous onboarding. Generates | 0 tokens |
|
| Extracts a surgical hyperdimensional slice bounded by strict token budgets. | Budget-bounded |
|
| Starts the standard JSON-RPC 2.0 Model Context Protocol server over stdio. | N/A |
|
| Launches the interactive touch 4D visual dashboard on | N/A |
🔌 Model Context Protocol (MCP) Tools
When connected to Cursor, Claude Code, Windsurf, or VS Code, Tesseract equips agents with these native tools:
MCP Tool Name | Parameters | Agent Capability |
|
| Simulates a patch in ephemeral RAM. Returns health score delta, extinguished fractures, and regression alerts with rollback confirmation. |
|
| Autonomous patch synthesis, in-RAM verification, and optional safe disk write. |
|
| Traces the complete shockwave of an edit across all dependent layers before modifying code. |
|
| Physical write shield that blocks edits violating 4D topological symmetry. |
|
| Surgical code retrieval across 8 orthogonal cells ( |
|
| Instant repo-wide deterministic health check in 0 tokens. |
|
| Universal 4-pillar diagnostic (Problem X-Ray, Hidden Danger, Code Evidence, Surgical Solution). |
|
| Traces execution flows from natural language questions. |
|
| Collaborative triage pairing deterministic pre-filtering with AI semantic reasoning. |
🚀 Quickstart & Installation
1. Clone & Build
git clone https://github.com/miguelguerra200022-sudo/tesseract-context.git
cd tesseract-context
npm install
npm test2. Autonomous Setup in Any Codebase
Run the zero-touch initializer on your target repository:
node --experimental-strip-types src/index.ts init /path/to/your/projectThis automatically configures .mcp.json, .cursorrules, .vscode/mcp.json, and generates .tesseract/HEALTH_REPORT.md.
🛠️ Client Configuration
Cursor IDE
Add to .cursor/mcp.json or your global Cursor settings:
{
"mcpServers": {
"tesseract-context": {
"command": "node",
"args": [
"--experimental-strip-types",
"/absolute/path/to/tesseract-context/src/index.ts",
"mcp",
"/absolute/path/to/your/project"
]
}
}
}Claude Desktop / Claude Code
Add to claude_desktop_config.json:
{
"mcpServers": {
"tesseract-context": {
"command": "node",
"args": [
"--experimental-strip-types",
"/absolute/path/to/tesseract-context/src/index.ts",
"mcp",
"/absolute/path/to/your/project"
]
}
}
}VS Code
Add to .vscode/mcp.json:
{
"mcpServers": {
"tesseract-context": {
"command": "node",
"args": [
"--experimental-strip-types",
"/absolute/path/to/tesseract-context/src/index.ts",
"mcp",
"/absolute/path/to/your/project"
]
}
}
}📊 Live Benchmarks
Tested on the Microsoft Visual Studio Code repository (benchmark_vscode):
Metric | Traditional LLM / Vector RAG | Tesseract-Context 4D | Improvement |
Repository Size | 19,734 files | 19,734 files | Same |
Audit Token Consumption | 20,000,000+ tokens (Context crash) | 0 tokens | 100% Token Reduction |
Blast Radius Calculation | 4,291 unverified imports | 535 verified call sites | 87.5% Noise Filtered |
Trial Sandboxing Latency | 30s – 3min (Docker / VM) | < 50 ms (In-RAM Clone) | 600× Faster |
Refactoring Safety | Undetected cascading breakage | Automated Rollback in RAM | 100% Disk Protection |
⚖️ License & Commercial Use
This software is licensed under the Business Source License 1.1 (BSL 1.1):
Free for Non-Production & Development: You are free to use, test, modify, and integrate Tesseract-Context for personal development, educational, research, and non-commercial evaluation purposes.
Commercial Production License Required: Deploying Tesseract-Context within commercial production environments, offering it as a paid cloud service (SaaS), or embedding it into commercial enterprise developer platforms requires a commercial license agreement.
Future Open Source Guarantee: This work automatically converts to the Apache License, Version 2.0 on October 19, 2029.
To obtain a commercial license, enterprise agreement, or custom deployment partnership, contact:
Miguel Guerra — miguelguerra200022@gmail.com
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Pre-execution governance for AI agents. Deterministic PASS/FAIL/REVIEW verdicts, replayable proof.
Context and control for any AI. Agent identity, scoped access, and proof across tools.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Related MCP Servers
- AlicenseBqualityDmaintenanceGives AI coding assistants persistent memory, safety controls, and project awareness by tracking coding sessions, protecting critical files from modifications, and managing approval workflows with automatic changelog generation.1921 npmMIT
- AlicenseAqualityBmaintenanceProvides transactional intelligence for AI agents, enabling safe tool execution with pre-flight invariant checks, sub-second filesystem snapshots/rollback, causal tracing, belief contradiction detection, and 15 native MCP tools for Claude Code.15MIT
- AlicenseNot gradedqualityAmaintenanceProvides AI agents with a transparent proxy and journal for every tool action, including pre-state snapshots and approval gates for risky operations. Enables per-action undo, rewind to a point in time, and a kill switch that agents cannot override.4 npmBusiness Source 1.1
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to access evidence-backed repository memory, code graph, project DNA, and deterministic change validation so they understand design decisions, past bugs, and invariants while working.360 npm11Apache 2.0