Skip to content

Tell coding agents to set LK_SOURCE=template on lk commands - #117

Open
JackNDwyer wants to merge 1 commit into
mainfrom
jack/lk-source-template
Open

JackNDwyer wants to merge 1 commit into
mainfrom
jack/lk-source-template

Conversation

@JackNDwyer

Copy link
Copy Markdown
Contributor

What this does

Tells coding agents working in this starter to set LK_SOURCE=template on the lk commands they run. The CLI sends it as the X-LiveKit-Source header, and the Public API records it as source on its request events. That's how LiveKit measures whether coding agents follow the starter's guidance. The DevEx Q4 goal is that 80% of agents built by coding agents follow LiveKit's skills and templates.

  • Only the starters and LiveKit's agent skills mention LK_SOURCE, so a value on a request shows where the agent learned it.
  • If the skills are installed, the agent uses the skills' value (skills) instead. So template means the agent had only this file's guidance.
  • It's an environment variable, so a CLI that doesn't know it ignores it, and the line is safe to merge before the CLI release that sends it.
  • The agent shouldn't copy it into the developer's scripts or CI, where it would mark later runs as coming from the template.

Related: livekit/livekit-cli#1116 (the CLI sends it), livekit/public-api-server#160 (the API records it), livekit/agent-skills#24 (the skills' version).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant