debugging-livekit-agents

debugging-livekit-agents is a skill for Claude Code from livekit/agent-skills. It costs 116 tokens per session (1,517 once invoked), scanned A, a copy of debugging-livekit-agents, MIT.

A guide for interactively debugging a LiveKit agent locally in text mode. You send one user message at a time and inspect the agent's replies, tool calls, and other actions without using audio or a live room.

In plain words
What is it for?
Use it to try conversations, inspect why an agent called a tool or replied incorrectly, and check changes before writing or running a larger test.
Why use it?
It makes it quick to reproduce conversational behavior while editing, without the extra setup and cost of a real voice session. You can change the code and repeat the same investigation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the livekit plugin — 7 skills shipped together

Good fit Use it to try conversations, inspect why an agent called a tool or replied incorrectly, and check changes before writing or running a larger test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/livekit/agent-skills/debugging-livekit-agents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add livekit/agent-skills --skill debugging-livekit-agents
Clone the repo
git clone --depth 1 https://github.com/livekit/agent-skills

Made for: Claude Code.

Or install livekit, the plugin that ships this one along with the rest of its 7 skills.

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 debugging-livekit-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/livekit/agent-skills/debugging-livekit-agents/github.svg)](https://agentmods.dev/skills/livekit/agent-skills/debugging-livekit-agents)
Your own site
<a href="https://agentmods.dev/skills/livekit/agent-skills/debugging-livekit-agents"><img src="https://agentmods.dev/badge/skills/livekit/agent-skills/debugging-livekit-agents/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 debugging-livekit-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/livekit/agent-skills/debugging-livekit-agents"><img src="https://agentmods.dev/badge/skills/livekit/agent-skills/debugging-livekit-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,517 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00116 $0.01517
Opus 5.5 $0.00046 $0.00607
Sonnet 5.5 $0.00023 $0.00303
Haiku 4.5 $0.00012 $0.00152

Measured 6d ago against content hash 73eb5136cff9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debugging-livekit-agents scanned grade A with 0 findings 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to debugging-livekit-agents — 43 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/debugging-livekit-agents/SKILL.md · 114 lines

How it starts

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

Debugging a LiveKit agent live

lk agent debugger runs the user's agent locally as a background process and lets you drive a conversation one turn at a time. It's built for coding agents: you play the user, choose each next line based on the last reply, and inspect what the agent did in between.

By default the session is text: speech is off and nothing goes to a LiveKit room, so each turn is fast. When the bug lives in the audio path, start the session in audio mode instead (see Audio mode).

Before the first use, confirm the command exists and read its help:

lk agent debugger --help

The help is thorough and is the source of truth for subcommands and flags, so this skill doesn't restate them. If the command is missing, the installed CLI predates it. Tell the user to update lk and use testing-livekit-agents until then. Don't guess at an older command's shape.

The loop

Start the agent, say user turns, inspect what happened, edit the code, restart, repeat, and stop when you're done. Roughly:

lk agent debugger start
lk agent debugger say "Hi, what can you do?"
lk agent debugger say "Book me a table for two tonight"
lk agent debugger stop

Each say prints everything the agent did in response (tool calls with arguments and results, handoffs, errors) followed by the reply. Between turns you can look at the agent's chat history, a live event stream, the process logs, and status; --help lists the subcommands.

Restart after every code edit. A running session keeps the old code, and it's easy to lose time debugging behavior the file no longer has.

Debugging with it

  • Read the tool calls as well as the reply. The reply shows what went wrong; the tool call and its arguments usually show why. A wrong argument points to the prompt or the tool description. No call at all usually means the tool description never says when to use it.
  • Interleave the logs when a tool misbehaves. An option shows the agent's log lines under the turn they belong to, so a tool's traceback appears right below the sanitized error the user would have heard. That's the quickest way from symptom to cause.
  • Check the agent's chat history instead of relying on your memory of the conversation. It records what the LLM saw, including instruction and tool changes across handoffs. When behavior seems impossible, the history usually shows the context isn't what you assumed.
  • Reproduce before you fix, then re-run the same turns. Keep the sequence of say lines that triggered the bug so you can compare before and after.
  • Drive whole conversations. Most bugs take several turns to show up: details collected early that get lost, a user changing their mind mid-flow, a handoff that drops context. A single turn won't find them.
  • Script it if a program is deciding the turns. There's machine-readable output and meaningful exit codes. Check --help for the current format instead of assuming field names.

Read the full file on GitHub · 114 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. 6d ago Changed · +29 lines · -57 tokens per session 73eb5136cff9
  2. 21d ago First seen · 85 lines · 173 tokens per session scan A 3bffddd7f1c4

Subscribe to this mod's changes

debugging-livekit-agents is a skill published in the GitHub repository livekit/agent-skills (71 stars, last pushed 6d ago), licensed MIT. It adds 116 tokens to every session and 1,517 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to debugging-livekit-agents, differing in 43 lines, and is treated as a copy.