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

Developer Builds Open Source AI Skill to Validate Startup Ideas, Kills Own Idea in 10 Minutes
A developer built an open source AI skill called startup-design that walks through 8 phases of startup validation from brainstorming to financial projections. When testing it on his own startup idea, the skill asked hard questions that revealed he wasn't the right founder for that particular concept.

Project Ledger: Human-in-the-Loop Memory System for AI Coding Agents
A GitHub project introduces a YAML-based ledger system where humans curate what AI agents remember about codebases. It includes a /ledger skill, UserPromptSubmit hook for automatic context injection, and Haiku auditor review.

Models.dev: Open-Source Database of AI Model Specs, Pricing, and Capabilities
Models.dev is an open-source, community-contributed database of AI model specifications, pricing, and capabilities. It provides an API and TOML-based definitions for providers and models.

OpenClaw Agent Gains Phone Call Capability Through Custom Skill
A developer created a custom skill for self-hosted OpenClaw agents that enables phone call functionality, allowing the agent to initiate calls based on triggers like build completions or server outages. The implementation provides voice interaction with full chat capabilities including web searches and alert setup.