Double Agent Analytics
Your agents are talking.
See what happens.
Every request, handoff and reply between your agents and theirs, in one timeline. Who called, how it ended and what it earned.


- A2AServers, clients and Workers
- MCPSDK transports or a fetch handler
- Your own protocolThe recorder, called directly
Node 20+ · Cloudflare Workers · Bun · Deno · zero dependencies
See an example
Every handoff, on the record.
A sample A2A conversation, the way the timeline shows it.
- Start
Inbound
SendMessagefrom concierge.exampleSubmitted“Table for four, Friday at eight.”
180 ms
- +420 ms
Task
task_9f2cWorking - +1.2 s
Outbound
SendMessageto tables.exampleHanded off860 ms
- +2.9 s
Task
task_9f2cInput required“Which neighbourhood?”
- +41.0 s
Inbound
SendMessagefrom concierge.exampleWorking“Soho.”
1.5 s
- +43.2 s
Task
task_9f2cCompletedCharge settled · 2.00 USDC · x402
Sample data. Message text appears only for sources with content capture on.
The problem
A conversation spans
more than one request.
Agents ask for more, wait for answers and hand work to other agents. Scattered across logs, nobody can say who asked for what, or whether it ever finished.
02Counterparties and outcomes
Who’s calling, and where does work get stuck?
Counterparties are ranked by how well they’re identified: signed, authenticated, or only a name they gave. Tasks are counted by how they ended.
- Top counterparties, tools and skills
- Completed, failed or waiting for input
- Stalled tasks, flagged
Open tasks that stop moving are marked stalled, after a threshold you set.
- Completed82%
- Waiting for input9%
- Failed6%
- Stalled3%
concierge.exampleSigned1,284claude-desktopClient info642travel-botDeclared118
The dashboard
One agent. Six screens.
Live and Test traffic kept apart. Every number links to the rows behind it.
- 01
Overview
Conversations, operations, task completion, error rate and latency, against the previous period. Then outcomes, protocols, top counterparties and targets.
- 02
Conversations
Every conversation as a step-by-step timeline: methods, task states, latency, money and messages.
- 03
Tasks
Open, waiting, stalled or done. Filter by how they ended.
- 04
Counterparties
Who calls your agent and who it calls, with how strongly each one is identified.
- 05
Operations
Every call, filtered by outcome, direction or kind. Slowest first, when you need it.
- 06
Revenue
Revenue, cost and margin, by counterparty, tool and task.
Install
Wire up your agent.
One package records at the protocol boundary. Your requests, responses and streams pass through untouched.
- 1
In the dashboard, open Agents → Add agent.
- 2
Copy the key into
DOUBLEAGENT_AGENT_KEY. - 3
Install the recorder and wrap your server.
- 4
Send a test event. Watch it land.
A server on @a2a-js/sdk: wrap the request handler and the task store. The README has Workers, Hono and outbound calls.
import { DefaultRequestHandler, InMemoryTaskStore } from '@a2a-js/sdk/server';
import { createRecorder } from '@doubleagent-so/observe';
import { instrumentA2AHandler, instrumentTaskStore } from '@doubleagent-so/observe/a2a';
const recorder = createRecorder({ key: process.env.DOUBLEAGENT_AGENT_KEY!, adapter: 'my-agent@1.0.0' });
const taskStore = instrumentTaskStore(new InMemoryTaskStore(), { recorder });
const handler = instrumentA2AHandler(new DefaultRequestHandler(card, taskStore, executor), { recorder, issuer: 'my-idp' });
// Serve `handler` with the SDK's transports as usual.A server or client on the MCP SDK: wrap the transport before you connect it, with the same recorder.
const transport = instrumentMcpTransport(new StreamableHTTPServerTransport({ sessionIdGenerator: randomUUID }), {
recorder,
role: 'server',
binding: 'streamable-http',
issuer: 'https://auth.example.com',
});
await server.connect(transport);Zero dependencies. ESM, with types. The A2A and MCP SDKs are optional peers.
npm i @doubleagent-so/observeAnother protocol? Call the recorder directly. Recipes in the README, source on GitHub (MIT).
Need to know
Metadata, always.
Content, if you say so.
Participants, methods, outcomes, timings and task states are recorded for every operation.
Message content is kept only for sources with content capture on: for 30 days, readable by Owners and Admins, and every read is logged. File bytes are never sent.
Internal tool calls, model calls and reasoning aren’t recorded. Only what crosses the boundary.
Your agents and their history are private to your account. No public listing needed.
Before you connect.
How do I add my agent?
In the dashboard, open Agents → Add agent. Copy the key (it’s shown once), install @doubleagent-so/observe and wrap your server, then send a test event. It checks the key, ingest, storage and the dashboard end to end.
Does my agent need a public Agent Card?
No. A card URL is optional, and only for A2A. Protocols are detected from traffic, and agents that only make outgoing calls work too.
Does this publish my agent in the registry?
No. Double Agent Registry is a separate product for discovery. Adding an agent to Analytics doesn’t publish a listing or share its conversations.
Will I see everything a remote agent does?
You see what crosses the boundaries you instrument: requests, streams, task states and who called. A remote agent’s private work stays its own, and so do your agent’s tool calls, model calls and reasoning.
Who on my team can see revenue?
Owners and Admins, and roles granted “See revenue and costs”. Everyone else sees the conversations without the money.
Double Agent Analytics
Know where the
conversation went.
Add an agent, wrap its server, and watch the next conversation arrive.



