CodeRoute

CodeRoute Model And Harness Plan

Updated July 1, 2026.

Decisions

Target Routing

TaskPreferred routeFallback route
Repo search, summaries, docslocal cheap modelhosted GLM-5.2
Simple bug fixhosted GLM-5.2local GLM-5.2 Q3_K_M
CRUD featurehosted GLM-5.2GPT-5.5
Refactorhosted GLM-5.2GPT-5.5
Unit testshosted GLM-5.2local GLM-5.2 Q3_K_M
ArchitectureGPT-5.5hosted GLM-5.2
Security reviewGPT-5.5hosted GLM-5.2
Production debuggingGPT-5.5hosted GLM-5.2
Final PR reviewGPT-5.5hosted GLM-5.2

Model Work

1. Add LiteLLM alias openrouter-glm-5.2 for openrouter/z-ai/glm-5.2. 2. Add or update OpenAI alias cloud-openai-gpt55 for gpt-5.5. 3. If Azure OpenAI deployment exists, add azure-gpt-5.5 and prefer it for enterprise/data-bound routes. 4. If Azure or Foundry exposes full GLM-5.2, add azure-glm-5.2; otherwise record FW-GLM-5 separately and do not label it GLM-5.2. 5. Add CodeRoute registry entries:

Harness Work

1. Add client profile detection from metadata, API key labels, and User-Agent:

User Documentation

Immediate Next Steps

1. Add and deploy the harness setup guide. 2. Add OpenRouter GLM-5.2 to LiteLLM and run direct smoke tests. 3. Add GPT-5.5 to LiteLLM or update the existing OpenAI cloud alias. 4. Add CodeRoute registry entries and route ladders for hosted GLM-5.2 and GPT-5.5. 5. Run eval tasks comparing local GLM-5.2 Q3_K_M, hosted GLM-5.2, and GPT-5.5 through OpenCode and Codex.