Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
Rust ai-agentsai-gatewayclaude-codecodexcoding-agentcost-optimizationdeepseekllm-gatewayllm-routerlocal-firstmodel-routingrusttask-routingtauri
use std::collections::{HashMap, VecDeque};
use std::mem::size_of;
use std::sync::{Arc, Mutex};
use bytes::Bytes;
use http::header::{CONTENT_LENGTH, TRANSFER_ENCODING};
use http::{HeaderMap, HeaderValue, Method, StatusCode};
use thiserror::Error;
use crate::core::filter::FramingLedgerPort;
use crate::runtime::telemetry::RequestTelemetry;
mod emission;
mod error;
mod framing;
mod memory;
mod plan;
mod request;
pub use emission::*;
pub use error::*;
pub use framing::*;
pub use memory::*;
pub use plan::*;
pub use request::*;