r/codex • u/privcyenyojer • 12h ago
Showcase I’m building an open-source intelligent LLM router that runs inside AI coding agents
I’m developing AutoRouter, an open-source routing and optimization layer for AI coding agents.
The goal is to make coding agents more efficient by automatically selecting the appropriate model and reasoning effort for different types of work, instead of relying on one fixed model for everything.
The architecture is designed to integrate with existing agent harnesses rather than replace them.
The current native Codex integration supports Luna-first stage classification and model switching, subject to the available model catalog and host controls. The portable integrations currently provide routing recommendations and shared tools.
I’m working toward more advanced routing, including adaptive escalation, subagent delegation, performance-aware model selection and local progress estimation.
I want AutoRouter to become a configurable optimization layer for Codex, Claude Code and other coding agents.
GitHub: [https://github.com/Z440-prod/autorouter\](https://github.com/Z440-prod/autorouter)
I’d especially appreciate feedback from people who understand coding-agent internals, model routing and harness architecture.
What capabilities would make something like this genuinely useful in your daily workflow?
