Use lk agent dev instead of the deprecated Python dev command - #1
Closed
omarelsaid wants to merge 1 commit into
Closed
omarelsaid wants to merge 1 commit into
omarelsaid wants to merge 1 commit into
Conversation
Running `uv run python src/agent.py dev` now prints: dev mode is deprecated and will be removed in a future release; use lk agent dev instead Point the starter's development instructions at the LiveKit CLI so new users don't start from a deprecated command: - README.md: the "Run the agent" dev snippet - taskfile.yaml: the help output for the web console flow - taskfile.yaml: the `dev` task itself The console and production commands are unchanged, since only `dev` mode is deprecated. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Owner
Author
|
Superseded by livekit-examples#100, which proposes the same change directly upstream. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the starter's development command with the LiveKit CLI equivalent in three places:
README.md— the dev snippet under "Run the agent"taskfile.yaml— the help output printed by the web console flowtaskfile.yaml— thedevtask itselfWhy
uv run python src/agent.py devnow emits a deprecation warning:Since this is a starter template, the very first command a new user runs shouldn't be a deprecated one.
Notes for reviewers
devmode is deprecated, so theconsoleandstartcommands in the README and theuv run ruff/uv run pytest/ Dockerfile / CI invocations are all left untouched.{{ indent .INDENT "uv run" }} {{ .PYTHON_MAIN }} devbecame{{ indent .INDENT "lk agent dev" }}— the whole command is now one literal, so.PYTHON_MAINis no longer interpolated there. That variable is still used by thehelp_install_hint_if_neededcheck and the console help line, so it remains defined and in use.git diff --checkis clean,agent.py devno longer appears anywhere in the repo,lk agent devappears in exactly the three intended locations, andtaskfile.yamlstill parses as valid YAML. Thetaskbinary isn't installed locally, sotask devitself was not executed — worth a quick sanity run by someone who has it.🤖 Generated with Claude Code