inspect-calls-and-metrics

inspect-calls-and-metrics is a skill for Claude Code, Codex from PatterAI/skills. It costs 137 tokens per session (2,798 once invoked), scanned A, original, MIT.

A diagnostic guide for Patter voice-agent calls, including their duration, cost, delay, transcript, and recording information. Patter is a system for building phone-based AI agents.

In plain words
What is it for?
Use it to mount a live dashboard, inspect call history, review transcripts and recordings, compare provider costs, or export call data as CSV or JSON. It supports checking individual calls and monitoring an active agent.
Why use it?
It helps locate slow or expensive calls and inspect what happened during a conversation. It can also expose live call activity and export call records for analysis elsewhere.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is persist=True, # writes to ./.patter/calls.db.

Good fit Use it to mount a live dashboard, inspect call history, review transcripts and recordings, compare provider costs, or export call data as CSV or JSON. It supports checking individual calls and monitoring an active agent.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/PatterAI/skills
agentmods
npx agentmods add skills/patterai/skills/inspect-calls-and-metrics

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inspect-calls-and-metrics

README.md
[![agentmods](https://agentmods.dev/badge/skills/patterai/skills/inspect-calls-and-metrics/github.svg)](https://agentmods.dev/skills/patterai/skills/inspect-calls-and-metrics)
Your own site
<a href="https://agentmods.dev/skills/patterai/skills/inspect-calls-and-metrics"><img src="https://agentmods.dev/badge/skills/patterai/skills/inspect-calls-and-metrics/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for inspect-calls-and-metrics

Your own site · 80×15
<a href="https://agentmods.dev/skills/patterai/skills/inspect-calls-and-metrics"><img src="https://agentmods.dev/badge/skills/patterai/skills/inspect-calls-and-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.02798
Opus 5.5 $0.00055 $0.01119
Sonnet 5.5 $0.00027 $0.00560
Haiku 4.5 $0.00014 $0.00280

Measured 3mo ago against content hash 125a9d42aadf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

inspect-calls-and-metrics scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Example with curl:
inspect-calls-and-metrics/SKILL.md · 289 lines

How it starts

The opening of the file, as written. The whole thing — 289 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Inspect calls and metrics with Patter

Patter persists every call to an in-memory MetricsStore (500-call ring buffer by default), optionally backed by disk. The dashboard surfaces live calls, transcripts, latency breakdowns, per-leg cost, and recordings. You can also pull CallMetrics programmatically and export to CSV/JSON for offline analysis.

Mount the live dashboard

Patter ships a dashboard route you can mount on the same server as your agent. Visit http://localhost:8000/dashboard to see live calls.

Python

import asyncio
from getpatter import Patter, Twilio, OpenAIRealtime2

async def main():
    phone = Patter(carrier=Twilio(), phone_number="+15550001234")
    agent = phone.agent(
        engine=OpenAIRealtime2(),
        system_prompt="...",
        first_message="Hi!",
    )
    # dashboard=True mounts /dashboard (UI) + /api/calls (REST) + /sse (live stream)
    await phone.serve(agent, tunnel=True, dashboard=True)

asyncio.run(main())

TypeScript

import { Patter, Twilio, OpenAIRealtime2 } from "getpatter";

const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" });
const agent = phone.agent({
  engine: new OpenAIRealtime2(),
  systemPrompt: "...",
  firstMessage: "Hi!",
});

await phone.serve({ agent, tunnel: true, dashboard: true });

Open http://localhost:8000/dashboard. Live calls appear at the top, with real-time transcript, current cost, and latency p50/p90/p95/p99.

Read metrics in code

CallMetrics is the canonical model — every finished call produces one. The hook is on_call_end passed as a kwarg to phone.serve(...). It receives a dict (the CallMetrics serialized form), and is async.

Python

import asyncio
from getpatter import Patter, Twilio, OpenAIRealtime2

phone = Patter(carrier=Twilio(), phone_number="+15550001234")

async def on_end(metrics: dict) -> None:
    print(f"Call {metrics['call_id']} | {metrics['duration_seconds']:.1f}s")
    cost = metrics.get("cost", {})
    print(f"  Cost ${cost.get('total_usd', 0):.4f}: "
          f"STT ${cost.get('stt_usd', 0):.4f} · "
          f"LLM ${cost.get('llm_usd', 0):.4f} · "
          f"TTS ${cost.get('tts_usd', 0):.4f} · "
          f"Realtime ${cost.get('realtime_usd', 0):.4f} · "
          f"Telephony ${cost.get('telephony_usd', 0):.4f}")
    print(f"  Latency p99: {metrics.get('latency_p99', 0):.0f} ms")

agent = phone.agent(engine=OpenAIRealtime2(), system_prompt="...", first_message="Hi!")
asyncio.run(phone.serve(agent, tunnel=True, on_call_end=on_end))

Read the full file on GitHub · 289 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 289 lines · 137 tokens per session scan A 125a9d42aadf

Subscribe to this mod's changes

inspect-calls-and-metrics is a skill published in the GitHub repository PatterAI/skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 137 tokens to every session and 2,798 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

inspect-calls-and-metrics compared with skills from other repositories

inspect-calls-and-metrics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inspect-calls-and-metricsPatterAI/skillsSkill65mo agoMITA137Claude Code, Codex
agentlineAgentLineHQ/AgentLineSkill641mo agoMITC67Claude Code, Codex
x-tweet-by-conversationbrowser-act/skillsSkill6.4k26d agoMITA218Claude Code, Codex
oma-scholarfirst-fluke/oh-my-agentSkill1.5ktodayMITA30Claude Code
render-3d-product-showcasegooseworks-ai/goose-skillsSkill1.3k2d agoMITA159Claude Code, Codex
render-airdrop-carouselgooseworks-ai/goose-skillsSkill1.3k2d agoMITA207Claude Code, Codex
email-lifecycle-flow-writergooseworks-ai/goose-skillsSkill1.3k2d agoMITA50Claude Code, Codex