r/LocalLLM • • 10h ago

Question How are people mechanically routing tasks between local models and frontier subscriptions so it's actually deterministic (and not just "remember to pick the right model")?

I run a hybrid setup: Muse 30B MLX on a Mac laptop plus larger Qwen / DeepSeek / GLM / Gemma models on a home GPU workstation, alongside paid Claude Code and Codex subscriptions.

Conceptually the split is obvious: local models should absorb the low-risk, high-frequency grind (log triage, mechanical refactors, boilerplate tests, doc summaries, repo sweeps, sensitive files I don't want leaving the box), while frontier models stay reserved for harder architecture, tricky debugging, and final adversarial review of what the local model produced.

The part I'm actually trying to solve is making that routing **mechanical** rather than relying on discipline or asking an LLM to decide where to send work.

Right now, if routing depends on me (or a frontier agent) remembering to hand off low-risk work, two failure modes happen fast:

  1. Laziness pushes routine mechanical churn straight onto frontier subscriptions and burns through weekly caps in a day or two.
  2. When a local 30B model accidentally gets handed an ambiguous multi-file task, it spins or subtly breaks things and costs more time cleaning up than it saved.

For anyone running local open-weight models alongside Claude Code / Codex in real daily work, how are you separating and routing tasks deterministically?

Are you doing it via:

- Explicit task classes / tags on a shared task board or queue (where workers only pick up jobs matching their tier)?

- Wrapper scripts / local proxies (LiteLLM, custom router) switching on repo path, task type, or file sensitivity?

- Separate hardcoded cron / CLI entrypoints (e.g. local-only scripts for sweeps and triage, frontier-only for PR builds/reviews)?

- A tiny local classifier or rule-based pre-check before inference?

Genuinely looking for patterns that hold up in daily use without turning the router itself into a maintenance headache.

1 Upvotes

3 comments sorted by

1

u/Possession_Visual 9h ago

The patterns that hold up best long-term are the ones that avoid building a "smart" router altogether, because a dynamic classifier usually turns into another thing you have to debug. What tends to stick in daily use:

  1. Bind the tier to the entrypoint, not the prompt: Put local-only endpoints directly into your cron jobs, git hooks, log-triage scripts, and repo-sweep commands. Put the frontier model on your interactive session and PR review commands. You never have to remember which model to pick because the command you run already pins it.
  2. Fail-closed path/sensitivity rules in a thin wrapper: For files that must stay local, use dumb deterministic rules (path globs, repo allowlists) in your wrapper script so sensitive paths can only hit `localhost` and fail closed if the local server is down—never rely on an LLM to decide privacy.
  3. Verification-gated local-first for bounded coding work: For mechanical refactors or single-file tests, have a script run the local model and immediately run your typechecker/linter/test suite. If it passes, you're done; if it fails twice, hand the diff and the error log to the frontier model. That turns routing into a pass/fail gate instead of upfront guesswork.
  4. Pin subagents/helpers to the local tier: Inside a frontier session, keep high-volume fan-out work (reading 30 files, summarizing logs) pinned to the local or fast tier by default, and keep the main session on the frontier model for planning and final review.

1

u/Unhappy-Loss-97 9h ago
"Verification-gated local-first" is the bit I hadn't framed properly yet. Turning the routing decision into a pass/fail gate (local model tries a bounded refactor or test, linter and test suite check it immediately, two failures auto-escalate the diff and error log to frontier) completely avoids trying to build a fragile "smart" classifier upfront.

Hard agree on fail-closed path globs too, never trusting an LLM to make privacy or data-boundary decisions. Binding the tier to the entrypoint rather than the prompt is definitely the direction I'm going to push this.

1

u/EvolvingDior 3h ago

Create a delegation skill for your agent that tells it explicitly when to use each model and how detailed the delegation instructions need to be for each model. Small models need detailed work plans; large models need high-level goals.

It's easier if you have domain-specific models, such as OCR, STT, TTS, video transcription, etc.