cd /news/ai-agents/agentwire-a-wireshark-for-ai-agents · home topics ai-agents article
[ARTICLE · art-74235] src=promptcube3.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

AgentWire: A Wireshark for AI Agents

AgentWire, an open-source observability and security layer for AI agent workflows, has been released as a minimal viable product (MVP) built on ASP.NET Core. The tool treats agent traffic like network packets, enabling tracing of prompts, responses, token usage, latency, and cost attribution per agent or model. Currently relying on SQLite with plans for ClickHouse, AgentWire provides a REST API for ingestion and analytics, aiming to merge observability, security scanning for prompt injections, and cost intelligence.

read2 min views1 publishedJul 26, 2026
AgentWire: A Wireshark for AI Agents
Image: Promptcube3 (auto-discovered)

MCPserver, you usually only see the final output, leaving you blind to how many tokens were actually burned, which specific hop caused a latency spike, or if a prompt injection quietly slipped through the chain.

AgentWire attempts to fix this by treating agent traffic like network packets. It's essentially an observability and security layer designed to track the "packet trail" of an AI workflow.

The Technical Trade-off #

Unlike basic logging wrappers, this is built on ASP.NET Core as an event-driven system. The goal is to ingest high-throughput streams without blocking the agent's execution. It aims to merge three distinct functions:

Observability: Tracing the path between user, agent, and MCP servers.Security: Scanning for secret leaks and prompt injections.Cost Intelligence: Attributing exact dollar amounts to specific agents or models.

Looking at the current state, it's a lean MVP. It relies on SQLite for now, with ClickHouse planned for when the data scales. While the vision is "OpenTelemetry + Wireshark," the current reality is a set of basic ingestion and analytics endpoints.

Deployment: A Practical Tutorial #

If you want to test the ingestion pipeline, you'll need the .NET 10 SDK.

  1. Spin up the API
git clone https://github.com/qmmughal/AgentWire.git
cd AgentWire
dotnet run --project src/AgentWire.Presentation
  1. Push a trace packet

The system uses a POST /v1/traces

endpoint. You send the prompt, response, and token counts, and it handles the cost calculation in the background.

curl -X POST http://localhost:5102/v1/traces \
 -H "Content-Type: application/json" \
 -d '{
 "traceId": "demo-001",
 "agentId": "support-bot",
 "modelProvider": "openai",
 "modelName": "gpt-4o-mini",
 "systemPrompt": "You are a helpful assistant.",
 "userPrompt": "Hello",
 "llmResponse": "Hi there!",
 "promptTokens": 12,
 "completionTokens": 8,
 "latencyMs": 220
 }'
  1. Verify the data

You can pull the enriched packet (including the calculated cost) via the packets endpoint:

curl http://localhost:5102/v1/packets

The output returns the traceId

and the exact cost associated with that specific LLM call:

[
 {
 "traceId": "demo-001",
 "packetId": "pk_9f2c1a",
 "agentId": "support-bot",
 "modelProvider": "openai",
 "modelName": "gpt-4o-mini",
 "promptTokens": 12,
 "completionTokens": 8,
 "latencyMs": 220,
 "cost": 0.0000042,
 "timestamp": "2026-07-26T10:15:03Z"
 }
]

It's a promising start for anyone needing a deep dive into their AI workflow, though the real test will be how it handles massive concurrency once the YARP-based gateway is implemented.

Next Open-Weight AI: The Kubernetes Moment →

── more in #ai-agents 4 stories · sorted by recency
── more on @agentwire 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/agentwire-a-wireshar…] indexed:0 read:2min 2026-07-26 ·