Skip to content

docs(auto_routing): host an interactive auto router setup skill and link to it - #772

Merged
tin-berri merged 5 commits into
mainfrom
devin/1785884935-autorouter-agent-prompt
Aug 5, 2026
Merged

docs(auto_routing): host an interactive auto router setup skill and link to it#772
tin-berri merged 5 commits into
mainfrom
devin/1785884935-autorouter-agent-prompt

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Gives the auto routing page a one-line way to get started, following the pattern OpenRouter uses for Ori Eval: the docs carry the command and nothing else, and the instructions live in a file the agent fetches.

run curl -fsSL https://docs.litellm.ai/skills/auto-router and follow the instructions

The skill body is static/skills/auto-router (extensionless, served verbatim like the existing llms.txt). It is an interview, not a script. The agent enumerates the models the proxy already serves (from the loaded config or /v1/models), then asks the user for the router name and for the model behind each of SIMPLE, MEDIUM, COMPLEX, and REASONING plus the classification fallback, with an explicit instruction not to propose a name or pre-fill an assignment. It then writes a single auto_router/complexity_router entry, or the /model/new equivalent on a DB-managed proxy.

Before finishing it has to lay out the defaults left in force as a table (heuristic classifier, session affinity off, no keyword rules, no semantic matching, adaptive off, built-in technical keywords, built-in scorer thresholds) with what changing each one buys, ask whether the user wants any of them changed, and keep unchanged values out of the config so the backend default applies. Choosing the LLM classifier surfaces its own defaults, classifier_context_window_size: 3 and classifier_context_per_turn_chars: 200 with assistant turns excluded, as another decision rather than a silent one.

Wording stays agent-neutral throughout; the Anthropic-shaped name rule appears only as a conditional aside for clients that filter model names by vendor, and the Claude Code tutorial points at the same command.

Verified with npm run build, then served the build and confirmed GET /skills/auto-router returns 200 with the file body.

Link to Devin session: https://app.devin.ai/sessions/ebf09cc850e64aa5b7e296d04c3ef840

…uter setup

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview Aug 5, 2026 1:47am

Request Review

…o it

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title docs(auto_routing): add a paste-able agent prompt for default auto router setup docs(auto_routing): host an auto router setup skill and link to it from the docs Aug 5, 2026
…tral

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title docs(auto_routing): host an auto router setup skill and link to it from the docs docs(auto_routing): host an interactive auto router setup skill and link to it Aug 5, 2026
…geable defaults

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ck menu

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@tin-berri
tin-berri enabled auto-merge (squash) August 5, 2026 01:45
@tin-berri
tin-berri merged commit 43f08ba into main Aug 5, 2026
2 checks passed
@tin-berri
tin-berri deleted the devin/1785884935-autorouter-agent-prompt branch August 5, 2026 01:47
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