Agent Native

running-livekit-simulations

Runs LiveKit agent simulations to test whole-conversation behavior by playing scenarios against the agent with an LLM-driven simulated user and grading the…

by livekitCommunityNot reviewed

Community author

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
License
MIT (permissive)
Pin
5d7488bpinned Oct 9, 2026
Context cost
about 1,400 tokenswhen the skill loads
GitHub stars
71on livekit/agent-skills
Scripts
None found

What it does

“Runs LiveKit agent simulations and acts on the results. Use when the user says "run my simulations", "regression test my agent before deploying", "run the scenarios", "use lk agent simulate", "did my agent pass", "why did this scenario fail", "run simulations in CI", "test the audio pipeline", "check turn-taking and interruptions", or wants to check whole-conversation behavior before shipping. Covers text and audio mode and what each catches, running against a local or deployed agent, degraded-audio flags, automating a pre-release run, and triaging failures with list, view and export. For writing the scenarios use writing-livekit-scenarios. Not the default for a bare "test my agent", which goes to debugging-livekit-agents. Use this skill when the user names simulations, scenarios, a run, CI, or shipping.”
The author's description, from SKILL.md

Generated summary from the skill's own text

Runs LiveKit agent simulations to test whole-conversation behavior by playing scenarios against the agent with an LLM-driven simulated user and grading the transcript. Supports text mode for fast iteration and audio mode for testing speech pipeline, turn-taking, and interruptions. Includes tools to triage failures, export results as JSON, and automate pre-release testing in CI.

When to use it

  • Test multi-turn conversation outcomes before deploying to production
  • Verify agent behavior under backtracking and long-horizon scenarios
  • Validate speech pipeline, turn-taking, and interruption handling in audio mode
  • Automate regression testing in CI with committed scenario files

When not to

  • Testing single turns or immediate behavior while editing code
  • Recurring automated jobs with audio mode due to higher metering costs

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add livekit/agent-skills --skill running-livekit-simulations

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install livekit/agent-skills running-livekit-simulations@5d7488b118c279812b89e73a9bee8474d1fe00a1

Installs the commit we checked (5d7488b).

Copy by hand

Download the folder at 5d7488b and put it in .claude/skills/running-livekit-simulations for Claude Code and in .agents/skills/running-livekit-simulations for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 5d7488b

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "running-livekit-simulations" by livekit.

Source, pinned to commit 5d7488b118c279812b89e73a9bee8474d1fe00a1:
https://github.com/livekit/agent-skills/tree/5d7488b118c279812b89e73a9bee8474d1fe00a1/skills/running-livekit-simulations

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/running-livekit-simulations/ for Claude Code and .agents/skills/running-livekit-simulations/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/livekit/running-livekit-simulations

SKILL.md at the pin

---
name: running-livekit-simulations
description: 'Runs LiveKit agent simulations and acts on the results. Use when the user says "run my simulations", "regression test my agent before deploying", "run the scenarios", "use lk agent simulate", "did my agent pass", "why did this scenario fail", "run simulations in CI", "test the audio pipeline", "check turn-taking and interruptions", or wants to check whole-conversation behavior before shipping. Covers text and audio mode and what each catches, running against a local or deployed agent, degraded-audio flags, automating a pre-release run, and triaging failures with list, view and export. For writing the scenarios use writing-livekit-scenarios. Not the default for a bare "test my agent", which goes to debugging-livekit-agents. Use this skill when the user names simulations, scenarios, a run, CI, or shipping.'
license: MIT
metadata:
  author: livekit
---

# Running LiveKit simulations

A simulation plays a scenario against the real agent using an LLM-driven simulated user, then a
judge grades the transcript. A unit test asserts on one turn. A simulation tells you whether a
*whole conversation* reached the right outcome.

Read `lk agent simulate --help` before running. Subcommands and flags change, a wrong flag wastes a
paid run, and this skill doesn't restate them. `reading-livekit-docs` has the rest.

## When to reach for a simulation

Use simulations to regression-test long-horizon behavior before deploying to production: whether a
multi-turn conversation reaches the right outcome when the caller backtracks, whether details
gathered early survive to the end, whether the agent holds to its instructions under pressure, and
whether it ended in the right *state*. For a single turn, use `testing-livekit-agents`; to poke at
behavior while editing, use `debugging-livekit-agents`.

## Running

Run from the agent's project directory. The mode is a subcommand:

```bash
lk agent simulate text --scenarios scenarios.yaml    # see --help for the current flags
```

With no scenario file, the CLI generates scenarios from the agent's source. That **uploads the
code**, and the CLI asks for confirmation first. Generation belongs to `writing-livekit-scenarios`.

By default the CLI starts the agent as a local worker, dispatches the scenarios to it, and stops it
when the run ends. An option lets you grade an already-running agent by name instead. That needs a
scenario file, since there's no local source to generate from.

Concurrency is limited per run and per project. The docs have the current limits.

## Text or audio

**Text is the default**, and it's the right one. The simulated user exchanges text with the agent,
so the run exercises the LLM, the tools and the conversation logic while the framework turns off
STT, TTS and VAD. It's faster, cheaper and more deterministic. Use it for iteration and for anything
automated.

**Audio runs the same scenarios through the full speech pipeline.** The simulated user speaks,
listens and interrupts like a caller would, and the run scores what only speech exposes:

- **Turn-taking**: starting to speak before the caller has finished, or leaving a caller who has
  finished waiting.
- **Interruption handling**: yielding to a barge-in, and telling a brief acknowledgment apart from a
  new turn.
- **Transcription accuracy** in both directions, scored separately for the things that matter:
  names, numbers, addresses, confirmation codes.
- **Perceived latency**: what the caller heard, which differs from what the agent reports about
  itself. The gap between the two is what the user experiences.

Audio runs execute in real time, call the STT and TTS providers every turn, and are metered at a
higher rate. Save them for a release candidate or a change that touches speech, turn-taking or
interruption. Don't put them in a recurring job.

The audio subcommand has options to degrade the simulated caller's audio (noise, a poor microphone,
packet loss). Use them to test what the agent does with speech it can't hear clearly. It should ask
for a repeat instead of guessing. Combine them for a worst-case caller.

## Automating a pre-release run

All you need is a committed scenario file and a scheduled or release-branch job. The CLI prints
plain output when it isn't attached to a terminal and exits non-zero when any scenario fails, so the
job fails without extra wiring; the docs have a worked CI example to start from. Keep automated runs
in text mode. Every scenario in the committed file has to pass or the job fails, so keep aspirational
scenarios the agent doesn't pass yet in a separate file you run on demand.

## Reading the results

A run prints a verdict per scenario and a dashboard link. The verdict tells you what happened; the
transcript tells you why, so work from the transcript. The dashboard link is for the human. Your
path is `export`: it prints a finished run, with each scenario's full chat context, as JSON — read a
failing transcript from there, diff two runs, or archive a run as a build artifact. `list` finds the
run id and also has machine-readable output; `--help` names the flags.

**To triage a failure, decide which of these it is:**

1. **A bug in the agent.** Fix the agent and re-run. Check instructions and tool descriptions first.
   A failure that looks like bad reasoning is often a tool whose description never says when to
   use it.
2. **A bad scenario.** The expectation requires something the agent shouldn't do, or it's too vague
   for a judge to decide consistently. Fix the scenario. A vague `agent_expectations` is the most
   common reason a verdict flips between runs.
3. **A gap in the simulated world.** The scenario passes but production failed, or the other way
   round. Usually the agent reached different data, the derived instructions leave out the turn
   that caused the problem, or the failure only happens in audio and a text run can't see it.

**After a fix, run the whole file**, not only the scenario you were working on. A fix for one
conversation often changes a neighbouring one.

**Move repeat failures down the stack.** A scenario that fails the same way every time is
describing a turn-level bug. A unit test pins it more cheaply and catches it earlier. See
`testing-livekit-agents`.

## Related skills

- Authoring and organizing scenarios: `writing-livekit-scenarios`
- Interactive debugging of a failure: `debugging-livekit-agents`
- Cheaper per-commit coverage: `testing-livekit-agents`
- Deploying the agent the run is grading: `operating-livekit-agents`
- Flags, versions, changelogs: `reading-livekit-docs`

From livekit/agent-skills at 5d7488b, shown as plain text under its license: MIT (permissive). The license text is in skills/running-livekit-simulations/SKILL.md.

View SKILL.md on GitHub at 5d7488b

Files

1 file, 6.6 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 5d7488b
All Testing and QA skills
  • next-partial-prefetching-optimizer

    This skill optimizes Next.js client-side navigation under Partial Prefetching by defining what UI loads before and after a click.

    by VercelOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.8K tokens · pinned 6 days ago

  • Invalid--Name

    This skill cannot be described because its name format is invalid and no functional description or instructions are provided in the skill metadata.

    by CrewAIOfficial publisher

    Claude Code, Codex, Cursor +4 · about 0 tokens · pinned 6 days ago

  • chrome-devtools-cli

    This skill enables agents to automate browser interactions and inspect web pages using Chrome DevTools via command-line interface.

    by GoogleOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago

  • triaging-visual-review-runs

    Inspects PostHog Visual Review screenshot regression runs that gate pull requests, helping engineers triage diff results, identify flaky stories, and decide…

    by PostHogOfficial publisher

    Claude Code, Codex, Cursor +4 · about 8.9K tokens · pinned 6 days ago

  • code-change-verification

    Runs formatting, linting, type checking, and test verification for SDK code changes after review.

    by OpenAIOfficial publisher

    Contains scripts

    Codex · about 1.3K tokens · pinned 6 days ago

  • runtime-behavior-probe

    This skill guides agents to plan and execute controlled runtime investigations with explicit user approval before each probe runs.

    by OpenAIOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 3.8K tokens · pinned 6 days ago

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use