From 45f8ac1a87e996a54b277d98ff039aaf9b7076ed Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sat, 18 Jul 2026 12:57:53 +0800 Subject: [PATCH 1/4] update routing rules --- packages/coding-agent/src/core/router.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/src/core/router.ts b/packages/coding-agent/src/core/router.ts index c41155f..4a46c81 100644 --- a/packages/coding-agent/src/core/router.ts +++ b/packages/coding-agent/src/core/router.ts @@ -8,7 +8,8 @@ import type { Api, Model, SimpleStreamOptions } from "@openabcode/ai"; import { completeSimple } from "@openabcode/ai/compat"; -import { OPENABCODE_HOSTED_UPSTREAM, OPENABCODE_PROVIDER } from "./openabcode-provider.ts"; +import { OPENABCODE_PROVIDER_ID as OPENABCODE_PROVIDER } from "@openabcode/ai/providers/openabcode"; +import { OPENABCODE_HOSTED_UPSTREAM } from "@openabcode/ai/providers/openabcode.models"; export const ROUTE_PROVIDER_CHOICES = ["openai", "google", "anthropic"] as const; export type ProviderChoice = (typeof ROUTE_PROVIDER_CHOICES)[number]; @@ -18,11 +19,11 @@ const OPENROUTER_PROVIDER = "openrouter"; const CLASSIFIER_SYSTEM_PROMPT = "Classify the coding task into exactly one model provider."; const ROUTING_RULES: Record = { openai: - "Test and automation — algorithms, code review, testing, type systems, multimodal/vision, data analysis, scripting", + "General coding default — choose for simple edits, simple UI changes, tests, scripts, algorithms, code review, data analysis, and tasks that do not clearly fit another provider", google: - "Google ecosystem — Android, Flutter, Google cloud platform, Firebase, Chrome extensions, Kotlin, Gradle, Google APIs", + "Google/mobile ecosystem — choose when the task specifically depends on Android, Flutter, Firebase, Google Cloud, Chrome extensions, Gradle, Kotlin, or Google APIs", anthropic: - "Engineering systems — refactoring, debugging, architecture, UI, complex coding tasks, long context, migrations, iOS/macOS apps, DevOps, code quality", + "Complex engineering — choose when the task requires deep repository context, architecture, refactoring, migrations, complex debugging, complex UI workflows, or broad code quality changes", }; export interface RouteSignal { From 3faefab41c8fd1bc32415e49a6e0b249dc386f61 Mon Sep 17 00:00:00 2001 From: Rui Liang Date: Sat, 18 Jul 2026 18:28:09 +0800 Subject: [PATCH 2/4] update svg --- assets/routing-demo.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/routing-demo.svg b/assets/routing-demo.svg index 81cf793..b1802b5 100644 --- a/assets/routing-demo.svg +++ b/assets/routing-demo.svg @@ -134,14 +134,14 @@