ai newsMo., 2. Nov.
EilmeldungMeituans LongCat-2.5 im Claude Code für 0,30/1,20 Dollar, Kontextfenster bis 200K

genesis-blackbox 0.2.0: Flugrekorder gegen Halluzinations-Schleifen bei KI-Coding-Agenten

Wenn Coding-Agenten wie Cursor, Windsurf oder Claude Code Laufzeitfehler beheben sollen, geraten sie oft in eine Schleife aus blinden Vermutungen. Das Tool genesis-blackbox soll mit deterministischer Aufzeichnung von Abläufen und sprachübergreifender Fehleranalyse dagegen wirken.

dev.toSonntag 20:31 · 01.11.DE2 Min. Lesezeit
Bild: dev.to

When AI coding agents (such as Cursor, Windsurf, or Claude Code) attempt to fix runtime exceptions, they almost universally hit the Blind Hallucination Loop:

Without deterministic, low-overhead causal evidence, autonomous developer agents cannot reliably isolate root causes.

genesis-blackbox v0.2.0 solves this by providing a unified, deterministic runtime flight recorder, a polyglot AST blast-radius engine (Python + Node.js/TypeScript), and a causal state differential compiler—exposed directly to AI assistants via the Model Context Protocol (MCP).

Traditional logging and APM instrumentation either introduce latency spikes or generate gigabytes of unstructured log noise. genesis-blackbox employs an in-memory, thread-safe circular ring buffer backed by an optimized SQLite WAL (Write-Ahead Logging) storage engine:

from blackbox import BlackboxRecorder # Initialize the recorder with 1,000 in-memory event slots recorder = BlackboxRecorder ( max_events = 1000, wal_mode = True ) recorder. start () try: process_transaction ( payload ) except Exception as exc: # Captures stack frames, local variables, active SQL queries, and HTTP breadcrumbs incident = recorder. capture_incident ( exc ) print ( f " Incident recorded: { incident. id } " ) Enter fullscreen mode Exit fullscreen mode 2. Polyglot AST Blast-Radius Analysis (Python + TypeScript/Node.js) When an agent suggests a code modification to fix a bug, how does it know what will break?

# Query the blast-radius of a proposed change genesis-blackbox blast-radius --file src/services/auth.ts --symbol validateSession Enter fullscreen mode Exit fullscreen mode 3. The StateDiffer Engine: Causal Crash Compilation Instead of guessing why an error happened, genesis-blackbox implements StateDiffer.

StateDiffer contrasts a Golden Execution (a known healthy run or test execution) against the Crashing Execution:

$$\Delta_{state} = S_{failure} \setminus S_{healthy}$$

genesis-blackbox v0.2.0 is published on PyPI and can be executed instantly with uvx without manual installation:

# Run standalone CLI uvx genesis-blackbox --help # Run integrated Model Context Protocol (MCP) server uvx genesis-blackbox mcp Enter fullscreen mode Exit fullscreen mode Add to Claude Desktop or Cursor MCP Configuration In your claude_desktop_config.json or.cursor/mcp.json:

{ "mcpServers": { "genesis-blackbox": { "command": "uvx", "args": [ "genesis-blackbox", "mcp" ] } } } Enter fullscreen mode Exit fullscreen mode Core MCP Tools Exposed: blackbox_get_incident: Fetch structured causal flight records and variable dumps. blackbox_diff_runs: Run StateDiffer to compare healthy vs failing execution states. blackbox_blast_radius: Analyze polyglot AST impact before applying diffs. 5. 100% Open Source genesis-blackbox is completely open source under the MIT License:

Originaltitel: Eliminating AI Coding Loops: Deterministic Flight Recording & Polyglot Blast-Radius with genesis-blackbox v0.2.0Quelle: dev.to (dev.to). Original öffnen