Up to 40% of your API traffic is AI agents. You can't tell which requests are theirs, where they get stuck, or why they churn. General Context reconstructs agent sessions and provides real-time error guidance so agents can self-correct.
AI agents are your fastest-growing consumers. They hit different endpoints, follow different paths, and fail in ways your dashboards don't show.
3.2x
more endpoints hit per agent session
4.1x
higher retry rate vs. human users
0
visibility into agent experience
3 agent frameworks stuck in a retry loop on the same endpoint, all making the same schema mistake
Claude completes your payment flow in 3 calls. GPT-4 takes 8 and errors twice. You can't tell them apart.
Agent developers silently churn to your competitor's API because your error messages don't explain the fix
Sessions
Raw API calls become coherent sessions. See which endpoints agents hit, in what order, and where confident agents differ from confused ones.
Compare
Compare agent frameworks side by side. See who completes flows efficiently, who retries, and who gives up. Know exactly where to improve your API for the agents that struggle.
Suggested recovery rule
3 agents send line_items as an object instead of an array. Add a recovery rule to guide them to the correct format.
Intelligence
Surface error patterns across all agent traffic. See which endpoints agents struggle with, which frameworks succeed vs. fail, and what to fix in your API or docs.
Recovery
When agents hit errors, inject guidance into the response so they can fix the request and retry. Define recovery rules once and every agent benefits automatically.
POST /v1/checkout{"line_items": { "price_1N": 2 }}
<1ms
Overhead per request
Express middleware. Async telemetry. Your latency budget stays intact.
0
Data leaves your infra
No proxy, no redirect. Your API traffic stays on your servers. We only see metadata.
5 min
To your first insight
npm install, add one line of middleware, deploy. Agent sessions appear immediately.
Works with Express, Next.js, or any Node server.
npm install @generalcontext/agentlens
// Track agent sessions + enable recovery guidance. app.use(agentlens({ projectKey: "al_srv_...", captureErrors: true, recovery: { enabled: true } }));