Skip to content

Autonomous bug resolution

EchoLab

Bugs in, fixes out. EchoLab takes issues from Git, email, Slack and Telegram, runs them through a deterministic workflow engine, and resolves them with headless Claude Code against the real repository, backed by a vector and graph memory that remembers how each codebase works.

Overview

EchoLab is an AI agent orchestration platform built to close the loop between a reported bug and a committed fix. In most teams a bug report sits in an inbox or a Slack thread until a developer picks it up, reproduces it, finds the right files, fixes it and pushes. EchoLab automates that cycle. It ingests the report wherever it lands, classifies and routes it, assembles the context an agent needs, has Claude Code resolve it inside the repository, and pushes the result back for review.

Architecture

The backend is a FastAPI service on PostgreSQL with more than 17 API routers covering intake, workflows, agents, memory, skills and settings. It runs as separate processes: the API under uvicorn, and the Hermes workflow worker on its own. That split keeps long-running agent executions from blocking the API and lets the worker scale independently.

Intake

Work enters through configurable source adapters: Git, email, Slack and Telegram, with Gmail as the first live integration. Each source normalises its input into one internal task format, so the rest of the pipeline does not care whether a bug arrived as an email, a chat message or a webhook. The settings model is organised for more sources: webhooks and APIs, intake forms and links, file drops, and CRM and helpdesk connectors.

Deterministic workflows

Execution is orchestrated by Hermes, EchoLab’s own workflow engine, with a visual editor built in React. A workflow is a graph of explicit nodes (classify, gather context, execute, verify, report) rather than one open-ended agent prompt. Runs are reproducible and debuggable, and the orchestrator, not the model, decides the order of operations. Workflows can pause and resume, which matters for fixes that wait on an approval or an external system.

Headless Claude Code

The fix itself runs through Claude Code in headless mode, inside the target repository, with the assembled task and context. The result is pushed back to the repository for review. Agent permissions are governed by per-agent policies, including bash command restrictions, and notifications and SLA rules alert the team as tasks arrive, progress or breach their deadlines.

Context assembly

One finding shaped the whole design: in headless execution, Claude tends to ignore third-party MCP tools even when they are available. Instead of hoping the agent goes looking for context, the orchestrator pre-assembles it, pulling relevant memory, code and history before execution and passing it to the Claude CLI as one context block. Deterministic context assembly beats relying on the model to discover context, and it makes token usage predictable.

Memory

Two stores back the agents. Qdrant holds vector embeddings for semantic recall of past tasks, fixes and documents. Neo4j holds a knowledge graph of entities and relationships, reached through parameterised Cypher queries and reusable graph templates, so graph access is injection-safe and consistent across features.

Skills and MCP

Capabilities ship as a skills registry with modular handlers, so new abilities such as file operations, git actions and lookups plug in without touching the engine. An MCP session pool keeps connections warm and reusable across workflow runs instead of opening a new session per call.

4intake channels: Git, email, Slack, Telegram
17+API routers
5explicit workflow node types
2memory stores: vector and graph
2processes: API and workflow worker
claude -pheadless execution in the target repo

Architecture

A report arrives on any channel, is normalised into one task, and runs through a deterministic workflow. Memory is pulled in before execution, headless Claude Code fixes the bug in the real repository, and the result goes back for review.

EchoLab: bug reports from four channels are normalised, run through the Hermes workflow engine, resolved by headless Claude Code and pushed back for review, with Qdrant and Neo4j memory feeding context Hermes workflow engine Git Email · Gmail Slack Telegram Source adapters one internal task format classify context execute verify report Claude Code headless · claude -pinside the target repo Review fix pushed backto the repository Qdrant vector recall of tasks,fixes and documents Neo4j knowledge graphparameterised Cypher
The resolution loop. Dashed lines are memory recall feeding the context step before the agent runs.

Intake

One task format

Every source adapter normalises its input into a single internal task, so nothing downstream depends on where a bug came from.

Live today

Gmail is the first live integration, alongside Git, Slack and Telegram adapters.

Built to widen

Settings are organised for webhooks and APIs, intake forms and links, file drops, and CRM and helpdesk connectors.

Rules at the door

Notifications and SLA rules alert the team as a task arrives, progresses or breaches its deadline.

Hermes workflow engine

Hermes is EchoLab’s own deterministic engine. It keeps the order of operations out of the model’s hands.

Explicit graph

Classify, gather context, execute, verify and report are separate nodes. The orchestrator, not the model, sets the order.

Reproducible

The same task follows the same path, so a failed run can be replayed and debugged node by node.

Pause and resume

A run can wait for an approval or an external system, then continue from where it stopped.

Visual editor

Workflows are drawn and edited in a React editor rather than hand-coded.

Separate worker

The Hermes worker runs apart from the uvicorn API, so long agent runs never block requests and the worker scales on its own.

Policy per agent

Permissions, including bash command restrictions, are set per agent.

headless execution
# run inside the target repository
$ claude -p "<task + pre-assembled context block>"
✔ change made in the working tree
✔ result pushed back to the repository for review

Context assembly

The finding

In headless mode Claude tends to ignore third-party MCP tools even when they are connected, so memory exposed as a tool simply goes unused.

The design

The orchestrator pulls memory, code and history itself before execution and hands the Claude CLI one context block.

The payoff

Context no longer depends on the model going looking for it, and token use becomes predictable.

Memory, skills and MCP

Qdrant

Vector embeddings for semantic recall of past tasks, fixes and documents.

Neo4j

A knowledge graph of entities and relationships, queried only through parameterised Cypher and reusable graph templates, so access is injection-safe and consistent.

Skills registry

Modular handlers for file operations, git actions and lookups. New abilities plug in without changing the engine.

MCP session pool

Connections stay warm and are reused across workflow runs instead of being opened per call.

What comes next

Code-RAG writer

So agents stop re-exploring the same repository on every task.

Prompt-context injection

Context added before each workflow node, not just before execution.

Code intelligence layer

A resolved code graph exposed as skills such as find-callers and impact analysis, feeding pre-node context.

Stack

PythonFastAPIuvicornPostgreSQLHermes (workflow engine)ReactClaude Code (headless)QdrantNeo4jMCP