New
Apps 6,333Makers 6,312This week 13
Promote your app−30%
FailEcho screenshot 1
1views in
the last 30 days

FailEcho

When a tool or model call fails, your agent learns what fixed it for other agents

Built with Claude Code

by failecho · Unclaimed · added Nov 2, 2026
no ratings0 comments
FailEcho

Failure intelligence for AI agents and autonomous software.
Before you retry, check the echo.

Website · Connect an agent · API reference · Live network · llms.txt

Python 3.11+ FastAPI MCP License MIT

FailEcho is a cross-agent failure intelligence network. When a tool or model call fails, it tells your agent what fixed that exact failure for other agents -- or that nothing has, so it stops retrying. Agents share the shape of their failures and what fixed them (metadata only, never prompts or data); the next agent to hit the same failure gets the answer. Open source, no account.

An agent's Groq call fails with 429; FailEcho answers: try switch_model, worked 306 of 336. Two lab agents on the same model: the one without FailEcho retries and fails, the one with it switches model and answers correctly. Then a skip verdict on an exhausted quota, an honest no-clear-fix answer, the metadata-only payload, and the lab scoreboard with the rows where FailEcho does not help.
Every line is real output: live queries to the lab network, one twin pair replayed from the lab ledger (24 Sep), the wrapper's actual payload, and the lab scoreboard with p-values. Our own agents; independent reporters so far: 0.

What we have measured, and what we have not

Our own agents run in twins in a lab: same task, same model, one asks FailEcho before it retries and acts on the answer, one does not. Measured 22-24 September 2026. Independent users so far: 0. Every number, its sample and its significance test: docs/claims.md; live: the lab scoreboard.

Measured (p < 0.05) With Without
Model-provider rate-limit failures recovered (switch model when told) 74.5% 31.2%
Runs finished, same group (416 a side) 90.6% 80.2%
Seconds lost to flaky APIs, per run 12.2 19.4
Agents told "skip" that retried anyway and recovered 0 of 404
Not shown yet With Without
An agent that already retries carefully: seconds lost per run 9.8 10.1
Answers correct, checked against the real APIs 99.3% 99.2%
Coding agents: runs finished 73.7% 73.7%
Advice shown to the model only, the model decides: runs finished 100% 100%
OpenAI and Anthropic not in the lab yet

Contents

Start here

Connect in one minute The endpoint, the plugin, the one-line prompt
What it does The idea, and the vocabulary it uses
See the network effect locally Six agents, one failure, on your machine

Connect something

Connect an agent MCP, Python, frameworks, REST, the Claude Code plugin
MCP The endpoint, the stdio server, the four tools
REST API Every endpoint with a runnable example
Python client Zero dependencies, standard library only

How it works

What connecting asks of you Nothing: no key, no token, no account
Privacy What is never sent, and what is never stored
How the numbers are produced Wilson scores, and why not a model
Abuse floor (V1) Rate limits, reporter weighting, what is not solved
Retention and pruning 48 hours raw, hourly aggregates after

Run and operate it

Run locally uv or venv, one command
Project layout Where everything lives
Configuration Every setting, and deploying on a small VPS
Is it working? The checks that answer it
MVP limitations What this does not do yet, said plainly

Agent A fails.
FailEcho learns.

Agent B encounters the same failure.
It sees what actually worked for other agents.

Agent B benefits from evidence it never generated itself.

Connect in one minute

Easiest: let the agent do it. Paste this at whatever you are running -- Claude Code, Claude Desktop, Cursor, Codex, your own harness:

Read https://failecho.com/llms.txt and set yourself up to use FailEcho.

It reads the machine-readable guide and configures itself. No account, no API key, nothing to sign up for. Everything below is the same thing done by hand.

Put it in the tool path, not the tool list. A tool the model has to choose to call is one it mostly does not call: in our lab, agents given FailEcho's MCP tools used them about once every five runs. The integrations that work hand the model the answer where it is already looking, so pick by client:

Your agent runs in Install Where the advice lands
Claude Code the plugin: /plugin marketplace add FailEcho/failecho then /plugin install failecho@failecho after every MCP tool call, via a hook
OpenCode one file: .opencode/plugin/failecho.js (source), or "plugin": ["failecho-opencode"] from npm in the output of every tool, bash and webfetch included
Cursor, Claude Desktop, any MCP client failecho-mcp proxy -- <server command> in front of each MCP server inside the failing tool's error
Your own code failecho-autoreport with FAILECHO_ADVISE=1 on the exception you already handle
Nothing can be installed the bare MCP endpoint below only if the model remembers to ask

All four deliver the advice, and all four are tested end to end. The gains the lab has measured come from agents that act on it -- switch model when told switch_model, stop when told skip (three lines with the wrapper); none of the four integrations has a lab comparison of its own with a result to quote yet.

The bare MCP endpoint -- the smallest option and the least effective

https://failecho.com/mcp

Most MCP clients take this config block:

{
  "mcpServers": {
    "failecho": { "type": "http", "url": "https://failecho.com/mcp" }
  }
}

In Claude Code that file is .mcp.json; Cursor uses .cursor/mcp.json and drops the type; VS Code uses .vscode/mcp.json and calls the top-level key servers. The endpoint never changes. The setup page has the table.

On Claude Code the CLI writes that same file for you:

claude mcp add --transport http --scope project failecho https://failecho.com/mcp

Python, if you want failures and successes reported automatically:

from failecho import FailEcho

echo = FailEcho("https://failecho.com", reporter_id="my-agent-1")

outcome = await echo.observe_tool_call(
    service="github-mcp",
    operation="create_issue",
    call=lambda: github.create_issue(**args),
)

if outcome.failed and outcome.decision.actionable:
    do(outcome.decision.recommendation)   # your code decides, never FailEcho

No account. No API key. Free during the public MVP. Full integration guide: Connect an agent.

What it does

See whether other AI agents are hitting the same tool failure right now — and which recovery actions actually worked. FailEcho exposes a Model Context Protocol (MCP) endpoint that agents can query after a tool failure, plus a REST API.

Tool When the agent calls it
check_tool_failure a tool failed — before retrying
report_tool_failure contribute the failure
report_tool_success contribute a success (the denominator)
report_recovery_outcome say whether the fix worked

FailEcho normalizes error text deterministically (no model) into a fingerprint, accumulates recovery outcomes against it, and returns a recommendation only when independent reporters agree. Thin evidence returns INSUFFICIENT_DATA rather than a guess. Confidence is a Wilson score lower bound you can recompute from the counts returned beside it.

It stores failure metadata only. There is no field for prompts, tool arguments, tool results, request or response bodies, headers or cookies, so none of it can be stored. One field is free text, the error message: optional, off by default in the hook and the wrapper, and when sent it is normalized -- identifiers replaced, credential-shaped strings redacted -- and the raw text discarded. That normalization is a second line of defence, not a guarantee; the honest claim is metadata only, error text off by default, normalized when on.

Live: https://failecho.com · /docs · /openapi.json · /llms.txt

This is not an observability platform, an error database, an uptime monitor or an LLM debugger. The unit of the system is:

service + operation + version + schema_hash + failure fingerprint
                     + observed recovery outcomes

Vocabulary

Term Meaning
FailEcho Network the whole system
Failure Echo a normalized observed failure, shared by fingerprint
Recovery Echo evidence that a recovery action worked
Incident a sudden abnormal failure increase
Reporter an agent or runtime sending telemetry
Fingerprint the canonical normalized error identity

The brand vocabulary is for humans. Wire formats are deliberately unbranded: endpoint paths, MCP tool names and field names (fingerprint, recommendation, recovery_actions) stay exactly as they are, because machine clarity outranks naming purity.


See the network effect locally

Two terminals, about a minute.

# 1. the network
uv run uvicorn app.main:app --reload
#    or: .venv/bin/python -m uvicorn app.main:app --reload

# 2. six independent agents hitting the same broken tool
uv run python examples/live_agent/run_demo.py
#    or: .venv/bin/python examples/live_agent/run_demo.py

The demo starts a small local tool server, then runs six logically independent agents against it. Every network call goes over MCP, from an external process, using the official MCP SDK.

Agent A calls a tool. It fails: the provider renamed a field.
        |
        v
Agent A reports the failure          -> the network records it
Agent A has no evidence to go on, so it retries (fails),
        refreshes the tool schema (works), and reports both outcomes
        |
        v
Agents C, D, E, F hit the same failure with different repository ids
        -> normalization collapses all of them onto ONE fingerprint
        -> the network accumulates evidence from 5 independent reporters
        |
        v
Agent B hits the same failure with yet another id, and asks first
        -> the network recognises the fingerprint
        -> "refresh_schema: 5/5 successes, 5 reporters, confidence 0.57"
        -> "retry: 0/5. Do not bother."
        |
        v
Agent B skips the retry the others wasted a call on, refreshes, succeeds,
and reports its outcome -- which makes the next agent's answer better.

Agent B never met Agent A. It only met the network. That is the entire product.

Real output from the sixth agent, which had reported nothing before it asked:

Calling tool...
x tool failed

  422 validation_error
  Repository 987654 rejected field body: field "body" is no longer accepted, use "content"

Checking shared failure intelligence...

  Fingerprint:            6ed9ef705ff4037af2c977306b8b9f92
  Known failure:          YES
  Observed failures:      11
  Independent reporters:  6
  Service status:         MAJOR

  Recovery actions others reported:
    refresh_schema        5/5 (100.0%) confidence 0.57 reporters 5
    retry                 0/5 (0.0%) confidence 0.00 reporters 5

Best observed recovery:
  refresh_schema
  Skipping retry: other agents already proved it does not work here.

Applying recovery: refresh_schema
  Refreshed tool schema -> v3.0.0, field 'content'
  Retrying tool call...
  + tool call succeeded

Reporting recovery outcome...
+ accepted   (refresh_schema -> success)

Watch it land on the homepage at http://localhost:8000 while the demo runs. Demo agents label themselves with X-Reporter-Kind: demo, so their traffic is real evidence but is never counted as adoption — see Demo data.

Details, including how to run the tool server separately, are in examples/live_agent.


Connect an agent

Two ways in, and the difference matters.

MCP lets an agent explicitly ask and report — the model decides when to call check_tool_failure, so you get intelligence exactly where the agent reasons about a failure, and nothing else.

SDK instrumentation reports success and failure telemetry automatically for every tool call, without the model deciding anything. That is what produces denominators, and without denominators every failure rate in the network is meaningless.

Most deployments want both.

1. MCP

claude mcp add --transport http failecho https://failecho.com/mcp
{
  "mcpServers": {
    "failecho": {
      "type": "http",
      "url": "https://failecho.com/mcp"
    }
  }
}
Tool When the agent calls it
check_tool_failure a tool failed — before retrying
report_tool_failure contribute the failure
report_tool_success contribute a success (the denominator)
report_recovery_outcome say whether the fix worked

2. Python

Copy client/ into your project (not published to PyPI yet), then:

from failecho import FailEcho

echo = FailEcho(
    endpoint="https://failecho.com",
    reporter_id="my-agent-1",       # optional, hashed server-side
)

outcome = await echo.observe_tool_call(
    service="github-mcp",
    operation="create_issue",
    version="2.8.1",
    schema_hash="a817ce",
    call=lambda: github.create_issue(**args),
)

if outcome.failed and outcome.decision.actionable:
    # YOUR code decides. FailEcho never acts on your behalf.
    if outcome.decision.confidence > 0.8:
        refresh_schema()
        await echo.report_recovery(
            fingerprint=outcome.decision.fingerprint,
            action="refresh_schema",
            successful=True,
        )

observe_tool_call reports the success or the failure, queries FailEcho when the call failed, and hands you a FailureDecision. It never retries, never refreshes and never falls back — executing a recovery can double-post or double-charge, so that decision stays yours.

It cannot break your agent. Every call is fail-soft: a timeout or an unreachable host is swallowed and your tool result is returned anyway. Set FAILECHO_DISABLED=1 and the whole client becomes a no-op.

3. Framework instrumentation

Reference integration, Pydantic AI:

from failecho import FailEcho
from failecho.integrations.pydantic_ai import instrument_toolset

echo = FailEcho("https://failecho.com", reporter_id="my-agent-1")
agent = Agent("openai:gpt-4o", toolsets=[instrument_toolset(my_toolset, echo)])

Every tool call now reports its outcome. The wrapper is behaviourally invisible: same results, same exceptions, same control flow. Tool arguments are never read and never sent.

Other frameworks (LangChain, LlamaIndex, CrewAI, OpenAI Agents SDK, Claude Code hooks) are not built yet. They should implement failecho.adapters.ToolTelemetrySink — four events, one direction — rather than touch FailEcho's core. See client/failecho/adapters.py.

4. REST

curl -X POST https://failecho.com/v1/query \
  -H "Content-Type: application/json" \
  -H "X-Reporter-ID: my-agent-1" \
  -d '{
    "service": "github-mcp",
    "operation": "create_issue",
    "error_type": "validation_error",
    "error_code": "422",
    "error_message": "Repository 555812 was not found"
  }'

5. Claude Code plugin (automatic)

Connecting the MCP server leaves it to the model to call FailEcho when a tool fails, and models forget. The plugin removes the decision:

/plugin marketplace add FailEcho/failecho
/plugin install failecho@failecho

That installs the MCP server and a hook Claude Code runs after every MCP tool call, so every failure is reported, successes give the failure rates their denominator, and a second attempt is recorded as a recovery (retry with the same arguments, adjust_arguments with new ones). When the network already knows a failure, the hook hands Claude a short note -- how often others hit it and which recovery worked -- before it retries.

Without the plugin, the hook is one file with no dependencies beyond Python 3:

mkdir -p ~/.claude/hooks
curl -fsSL https://raw.githubusercontent.com/FailEcho/failecho/main/plugin/hooks/failecho_hook.py \
  -o ~/.claude/hooks/failecho_hook.py

Then add to ~/.claude/settings.json:

{
  "hooks": {
    "PostToolUseFailure": [{"matcher": "mcp__.*", "hooks": [
      {"type": "command", "command": "python3 ~/.claude/hooks/failecho_hook.py", "timeout": 10}]}],
    "PostToolUse": [{"matcher": "mcp__.*", "hooks": [
      {"type": "command", "command": "python3 ~/.claude/hooks/failecho_hook.py", "timeout": 10}]}]
  }
}

What leaves your machine: the server's public name and the tool name, a coarse error class and code (rate_limit / 429), and the call's latency. Never tool arguments, tool results, prompts, file paths or session ids, and the error text only if you set FAILECHO_HOOK_SEND_ERRORS=1. A server is named by its public package (npx @scope/server, uvx server) or its public host; local scripts and private hosts are skipped entirely. Name one yourself with FAILECHO_HOOK_SERVICE_NAMES='{"alias": "public-name"}'. If FailEcho is unreachable, the hook gives up after one short timeout and Claude carries on.

Variable Default Purpose
FAILECHO_DISABLED unset 1 turns the hook off
FAILECHO_HOOK_SEND_ERRORS unset 1 also sends the error text, normalized server-side
FAILECHO_HOOK_REPORT_SUCCESS 1 0 stops success reports
FAILECHO_HOOK_SERVICE_NAMES unset JSON map from a server alias to a public name
FAILECHO_ENDPOINT https://failecho.com your own server, if you self-host

About reporter IDs

Optional, and never required. A stable one is salted and hashed on arrival — the raw value is never stored — and it improves three things: independent reporter counting, poisoning resistance, and FailEcho's ability to tell you that a recommendation came from somebody other than you. Anonymous reporting stays fully supported.


Your own agents (first-party)

While the network bootstraps, the operator's own agents report real failures too. That data is real field evidence, but it is not independent and it is not adoption, so it

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#agents · #errors · #education