AI Accounts & Routing

Task Profiles & Smart Routing

Configure ordered fallback chains of providers, models, and effort levels so Auto threads match every request to the best model.

When a session's provider is set to Auto, LightCode routes each request using Task Profiles—ordered chains of providers, models, and reasoning effort levels tailored to different kinds of work.

How Auto routing works#

  1. Task classification: On the first prompt of an Auto session, LightCode identifies which profile matches your request. Obvious requests match immediately via fast keyword rules; ambiguous prompts are classified in under a second by Jev (if connected) or a lightweight model (such as Claude Haiku, Gemini, or low-effort Codex) in a read-only call with no MCP overhead.
  2. Thread locking for consistency: Once classified, the session keeps its profile across follow-up turns so context and coding style stay coherent.
  3. Ordered step fallback: Within the chosen profile, LightCode checks your preferred step first and walks down the fallback list automatically if a provider is busy, unauthenticated, or out of quota.
  4. Live optimization: LightCode tracks response speed, live quota scarcity, and your feedback ratings (thumbs up / thumbs down on assistant replies) so routing prioritizes models that perform well and still have room.

Built-in & custom profiles#

Open Task profiles (via Edit profiles… in the provider picker or composer) to view and customize your routing rules. LightCode ships with three core profiles that cover everyday work:

ProfileIntended workloadExample step order
LogicBackend architecture, complex algorithms, multi-file debuggingDeep reasoning models (e.g., Claude Opus / Sonnet, Codex high effort)
UIFrontend layouts, visual polish, CSS, responsive componentsDesign- and vision-capable models (e.g., Claude, Antigravity, Gemini)
QuickSmall edits, renaming, quick questions, short fixesFast, quota-friendly models (e.g., Haiku, Codex low, Groq, OpenCode)

You can also create custom Task Profiles with your own name and description (for example, Docs & Copywriting or Database Migrations). The classifier automatically includes your custom profiles when deciding where to send a new Auto session.

Configuring each profile step#

Inside any profile, each step lets you specify:

  • Provider: Any linked session provider (Claude Code, Codex, Gemini CLI, Antigravity, OpenCode, ChatGPT, or Gemini).
  • Model: Leave as Default model or pick a specific model from that provider's catalog.
  • Effort level: Choose Auto or pin a reasoning effort level (such as Low, Medium, or High) when supported by the model.
  • Priority order: Reorder steps with the up/down arrows or remove steps you do not want used for that category.

Quality ratings & usage stats#

Every profile row shows its share of routed replies in the current project. When you rate a reply with thumbs-up or thumbs-down inside a thread, LightCode records the signal against that (profile, provider, model, effort) combination—helping you spot which models deliver the cleanest results and lowest latency for your codebase.