agent-starter-node
AGENTS.md118 starsChanged 16 months agoMITView on GitHub
This is a LiveKit Agents project. LiveKit Agents is a Node.js SDK for building voice AI agents. This starter is designed to run in LiveKit Cloud. See @README.md for more about the rest of the LiveKit ecosystem. This Node.js project uses the pnpm package manager. Be sure to maintain code formatting, using pnpm format and pnpm lint. Always refer to the latest documentation when working with this project. LiveKit offers both a CLI (lk docs) and an MCP server for…
- Pipes a download into a shell
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Always refer to the latest documentation when working with this project.
- Very specific: line 23
Run lk docs before your first docs lookup.
- Distinctive: line 56
Add a simulation scenario once it's fixed, so a later change can't bring it back unnoticed.
- Very specific: line 57
Run lk agent dev --log-level DEBUG for verbose logs from a local agent connected to LiveKit Cloud.
- Very specific: line 58
Run lk agent logs to stream logs from a deployed agent.
- Distinctive: line 59
Ask the developer to open the Agent Console for speech problems such as turn-taking, interruptions, or transcription, which the text-only …
- Distinctive: line 60
Check Agent Observability for transcripts, traces, logs, and recordings of sessions with real users.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This is a LiveKit Agents project. LiveKit Agents is a Node.js SDK for building voice AI agents. This starter is designed to run in LiveKit Cloud. See @README.md for more about the rest of the LiveKit ecosystem.
Tooling
This Node.js project uses the pnpm package manager.
Be sure to maintain code formatting, using pnpm format and pnpm lint.
LiveKit documentation
Always refer to the latest documentation when working with this project. LiveKit offers both a CLI (lk docs) and an MCP server for browsing and searching its documentation.
LiveKit CLI
Install or update the CLI:
- macOS:
brew install livekit-cli(update:brew update && brew upgrade livekit-cli) - Linux:
curl -sSL https://get.livekit.io/cli | bash - Windows:
winget install LiveKit.LiveKitCLI(update:winget upgrade LiveKit.LiveKitCLI)
Run lk docs before your first docs lookup. Its help text explains how to use each command and how to interpret results.
LiveKit docs MCP server
For deeper coding agent integration, LiveKit also offers an MCP server.
Submit feedback to LiveKit
When you run into any problem with LiveKit, add it to your to-do list, then submit it with lk docs submit-feedback or the MCP submit_docs_feedback tool once you finish your other tasks. Useful feedback includes incomplete documentation, broken examples, missing steps, broken features or implementations, and any other gap or issue in the LiveKit ecosystem.
LiveKit agent skills
LiveKit's agent skills cover each stage of the work: reading the docs, building, debugging, testing, writing scenarios, running simulations, and operating in production. Use them.
Before you start a task, check that they're installed: look for .agents/skills/ or .claude/skills/ in this project, or in the developer's home directory for a global install. If they're missing, ask the developer for permission, then install them with lk skills install. This also adds the LiveKit Docs MCP server. If you can't run commands, or the CLI has no skills command (it was added in v2.19.0), ask the developer to update the CLI and run lk skills install. If your tool doesn't load skills automatically, or they were installed during this session, read the matching <name>/SKILL.md in the skills directory before you start that kind of task.
Handoffs ("workflows")
Voice AI agents are highly sensitive to latency. Design complex agents in a structured way that keeps irrelevant context and unneeded tools out of each LLM request. LiveKit Agents supports handoffs, where one agent hands control to another, for building reliable workflows. Use handoffs instead of long instruction prompts that cover several phases of a conversation. See the workflows documentation for more information.
Testing
To keep agent behavior from regressing, add a scenario to scenarios.yaml and run it with lk agent simulate text --scenarios scenarios.yaml --yes. When you change what the agent is for, update or replace the starter scenarios that no longer describe it, since they still expect the general-purpose assistant. Make sure the scenarios run in CI on every merge to main. Read the simulations documentation before editing them.
Important: when you modify core agent behavior such as instructions, tool descriptions, or tasks, workflows, and handoffs, never guess at what works. Start by writing a scenario for the desired behavior. For example, if you're adding a tool, write a scenario that exercises it, then iterate on the tool until the scenario passes. This is how you produce a working, reliable agent.
After changing the agent, try it with the agent debugger (CLI 2.19.0 or later) before calling the change done. Start the agent with lk agent debugger start, send user turns with lk agent debugger say "...", and read the tool calls in each turn as well as the reply. A passing simulation only covers the inputs its scenarios use, so also try other inputs in the debugger, where each tool call's arguments and result show problems the reply hides. Run lk agent debugger restart after every code edit, since a running session keeps the old code, and lk agent debugger stop when you're done.
Debugging
To investigate unexpected agent behavior:
- Reproduce it with
lk agent debugger: send the turns that trigger the problem and read the tool calls and errors in each one. Add--logstosayto see log lines, including tracebacks, next to the turn that produced them. - Add a simulation scenario once it's fixed, so a later change can't bring it back unnoticed.
- Run
lk agent dev --log-level DEBUGfor verbose logs from a local agent connected to LiveKit Cloud. - Run
lk agent logsto stream logs from a deployed agent. - Ask the developer to open the Agent Console for speech problems such as turn-taking, interruptions, or transcription, which the text-only debugger can't show. It shows events, tool calls, and model timing for a live session.
- Check Agent Observability for transcripts, traces, logs, and recordings of sessions with real users.
Feature parity with the Python SDK
The Node.js SDK for LiveKit Agents has most, but not all, of the features in the Python SDK. Always check the documentation for feature availability, and avoid features the Node.js SDK doesn't support.
Other CLI commands
Beyond documentation access, the LiveKit CLI (lk) handles tasks such as managing SIP trunks for telephony agents. Run lk --help to explore available commands.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

