What are the exact differences between dev and pro...
# ask-ai
b
What are the exact differences between dev and prod modes of Agent Worker? List all differences in detail
t
Thanks for reaching out, mateuszkasprowicz. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You asked for the exact differences between dev and prod (start) modes of the Agent Worker. Below are all documented differences, listed clearly and precisely. 1) Logging output and verbosity • Dev: human-readable, colored logs for easier local debugging. • Prod (start): raw JSON output to stdout for ingestion by log aggregation/monitoring tools. 2) Hot reloading • Dev: supports hot reloading in Python (code changes restart the agent automatically). • Prod (start): no hot reloading. 3) Purpose / intended use • Dev: intended for development, testing, and rapid iteration. • Prod (start): intended for stable, long-running production deployments handling real traffic. 4) Build / startup process • Dev: runs directly from source (Node may use on-the-fly runners like
tsx
); no prior build required. • Prod (start): requires a build step for Node.js (e.g.,
tsc
) and use of a
start
script (e.g.,
node agent.js start
); Python uses
uv run agent.py start
. 5) CLI commands / scripts • Dev examples: ◦ Python:
uv run agent.py dev
◦ Node:
pnpm dev
(runs
tsx agent.ts dev
) • Prod (start) examples: ◦ Python:
uv run agent.py start
◦ Node:
pnpm build && pnpm start
(
start
runs
node agent.js start
) 6) Docker / deployment pattern • Dev: typically used locally; not the standard Docker startup pattern. • Prod (start): standard Docker CMD/entrypoint points to the
start
invocation (e.g.,
pnpm start
or
uv run src/agent.py start
) so the container launches the agent in production mode. 7) Connection / registration behavior • Dev: connects to LiveKit and registers the agent for accepting jobs; commonly used with
lk agent create
and for Agents Playground or local testing. • Prod (start): also connects and registers, but is expected to run in a production environment with dependencies pre-installed and any models pre-downloaded. 8) Console mode (related note) • Not a dev/prod variant but important:
console
mode (Python-only) runs the agent interactively in the terminal without connecting to a LiveKit room. It’s an additional dev-focused mode and is not used in production. 9) Core behavior and job processing • The agent logic and job-processing behavior are identical in dev and prod; differences are operational (logs, hot reload, build/start, and deployment assumptions), not functional. Summary sentence • Dev: human-friendly logging, hot reload (Python), run-from-source, for development/testing. • Prod (start): JSON logs, no hot reload, requires build/start scripts for Node, Docker-ready startup, for production deployments. If you’d like, I can: • Show exact example Dockerfile CMD/entrypoint lines for production. • Provide sample
package.json
scripts for dev vs prod. • Give the exact CLI commands to register an agent for the Agents Playground. Sources: Agent server options | LiveKit docs | Voice AI quickstart | LiveKit docs | Deploying to custom environments | LiveKit docs | examples/drive-thru | livekit/livekit_composite | DeepWiki