Detrix MCP Server Adds Runtime Debugging to AI Coding Agents

What Detrix Does
Detrix is an MCP (Model Context Protocol) server that connects AI coding agents to your application's debugger via DAP (Debug Adapter Protocol). It allows agents to observe running code without stopping execution, using logpoints—breakpoints that capture values without pausing.
Key Features
- Observe any variable at any line without specifying line numbers (
find_variable) - Capture stack traces, memory snapshots, and evaluate expressions
- Throttle, sample, or rate-limit captures on hot paths
- Observations expire automatically—nothing leaks into production
- Runs locally by default—no cloud dependency, no data leaves your machine
- Works in Docker/cloud—agent connects to wherever the daemon is, no VPN needed
Example Use Case
In the source example, a Go microservice in Docker was reporting wildly inflated revenue. The agent used Detrix to:
- Read the source code and spot dead unit-conversion code
- Wake the service via Detrix
- Observe
txn.Amount,txn.Unit, andtotalvariables in the running container - Identify that
txn.Amount = 8957withtxn.Unit = "cents"was being summed as dollars instead of converting to $89.57 - Fix the client code and report the API contract change upstream
Setup
For Claude Code:
brew install flashus/tap/detrix && detrix init && claude mcp add --scope user detrix -- detrix mcp
For any other MCP-compatible agent, add to .mcp.json:
{
"mcpServers": {
"detrix": {
"command": "detrix",
"args": ["mcp"]
}
}
}
Add one line to your app:
import detrix
detrix.init(name="my-app") # sleeps until the agent needs it
Claude Code Skill
There's a Claude Code skill that changes Claude's default debugging behavior—once installed, Claude reaches for Detrix before suggesting print statements. It also has enable_from_diff: point it at a git diff with print statements someone already added and it converts them to observations automatically.
Install the skill:
mkdir -p ~/.claude/skills/detrix && cp skills/detrix/* ~/.claude/skills/detrix/
GitHub: https://github.com/flashus/detrix
📖 Read the full source: r/LocalLLaMA
👀 See Also

nex-life-logger: Local Activity Tracker for OpenClaw Agents
nex-life-logger is a background activity tracker that runs locally on your machine, giving OpenClaw agents memory of your computer activities. It tracks browser history, active windows, and YouTube transcripts, storing everything in a local SQLite database with no cloud data transmission.

Jan-Code-4B: A Lightweight Code-Tuned Model for Local Development
The Jan team released Jan-Code-4B, a 4B parameter code-tuned model based on Jan-v3-4B-base-instruct. It's designed as a drop-in replacement for Haiku in Claude Code, offering improved coding assistance while running locally.

Code Evolution Method Triples LLM Performance on ARC-AGI-2 Benchmark
Researchers achieved a 2.8x improvement on the ARC-AGI-2 benchmark using code evolution with open-weight models, reaching 34% accuracy at $2.67 per task. The same method pushed Gemini 3.1 Pro to 95% accuracy at $8.71 per task.

Introducing operate.txt: A YAML spec for AI agents navigating SaaS products
A developer created operate.txt, a YAML file hosted at yourdomain.com/operate.txt that documents screen details, loading states, irreversible actions, and step-by-step paths for AI agents using computer use features. The spec addresses issues like Claude asking 'is this broken?' during legitimate loading screens.