More screenshots

    Works with the AI Agents you already use

    Model Router and Telemetry for Codex

    by Alessandro S. Jr

    1

    Route Codex tasks to configurable model profiles based on complexity, with separate workflows for tests, implementation, and operations.

    Free

    Security scanned
    Model Router and Telemetry for Codex

    Model Router and Telemetry for Codex

    Example session with this skill installed

    Use Model Router to plan the implementation of a login feature with tests first.

    The feature should validate credentials, return an authentication token for valid users, and reject invalid credentials. Check the configured routing policy and produce a sequential plan with the selected model and reasoning effort for each task.

    Do not execute the plan yet.

    • Read your context and instructions
    • Compiled the model router

    Routing plan: login feature

    The work is divided into four sequential tasks. The first worker writes the requested tests; the implementation starts only after the expected failing result has been observed.

    StepTaskProfileModelEffortExpected result
    1Write testsEconomygpt-6-lunaLowTests cover valid credentials, invalid credentials, and token issuance.
    2Run testsEconomygpt-6-lunaLowThe new tests fail for the expected missing behavior.
    3Implement loginStandardgpt-6.1-solMediumCredential validation and token issuance satisfy the requirements.
    4Run testsEconomygpt-6-lunaLowThe login tests pass and any unexpected failures are reported.

    Test authoring and test execution use the economy profile as required by the configured policy. The implementation uses the standard profile for this example; its complexity should be reassessed against the actual codebase before dispatch.

    Each worker receives a separate scope and acceptance criteria. The coordinator reviews the evidence before moving to the next step. Requested model and effort are recorded separately from any confirmation of the effective backend.

    Status: Planning only. No workers have been dispatched, and no code or tests have been run.

    Next step: Inspect the existing authentication code and confirm the implementation contract before dispatching the test-authoring worker.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Choose the right model for each task

    Model Router helps Codex divide work into focused tasks and select a model and reasoning effort for each one using a configurable local policy.

    Use an economy profile for routine work and reserve stronger profiles for tasks that need deeper reasoning. You control the model order and profiles in routing.toml.

    What it does

    • Breaks mixed requests into tasks with clear responsibilities.
    • Routes each task by type and complexity using your configured policy.
    • Keeps test authoring, test execution, implementation, and operations in separate scopes.
    • Supports sequential test-first workflows when implementation and new tests are requested.
    • Records the requested model, reasoning effort, and acceptance criteria for each task.
    • Provides a Python CLI to validate contracts and use Codex CLI as an alternative execution path.

    Optional local telemetry

    Enable local telemetry when you want to inspect available usage records. The optional offline dashboard shows known token totals, reported models, and coverage. Collection is disabled by default.

    No parallel dispatch on shared files. CLI cannot inherit parent history for 'all' context mode. Requires routing.toml. No automatic escalation to expensive models on failure.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Software
    Python
    Codex
    ora compatible agent
    Optional
    Codex CLItmux

    Native routing requires a client that supports explicit model and reasoning-effort selection. Codex CLI is required for the optional CLI execution path. The interactive status bar requires tmux. Local telemetry is optional and disabled by default.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    File Scopes

    model-router/**
    .model-router/**

    The skill reads its routing policy and may run local Python or Codex CLI commands. Workers access project files according to their assigned tasks and the user's permissions. Optional telemetry writes local records and can generate an offline dashboard. Network access may be used by Codex CLI or the optional remote strategy; the remote strategy is disabled by default.

    Listed3 days ago

    What's inside

    Frequently Asked Questions

    This skill implements a cost-aware routing protocol that breaks down complex requests into granular units like test authoring or implementation. It then assigns each unit to economy, standard, or strong model profiles to prevent expensive models from being used for low-effort tasks.

    You need a local routing.toml configuration file located alongside the skill to define your specific complexity mappings. For certain advanced dispatch modes, you may also need a local Python CLI environment with appropriate permissions.

    The skill enforces a strict sequential Test-Driven Development (TDD) lifecycle where test writing, RED execution, and functional implementation are handled separately. It ensures that testing and routine operations are always routed to economy profiles, regardless of the project's urgency.

    It generates detailed JSON contracts for each task including model selection, reasoning effort, and explicit acceptance criteria. Depending on your choice, it also produces specific context modes that control how much session history is shared with the subagent.

    The skill does not support parallel dispatch on shared files and cannot retrieve parent session history for the all context mode when using the CLI executor. It also requires the user to explicitly define tasks in the routing.toml file.

    You can ask your agent to plan or execute a task using model selection by cost. Specifically, you can direct it to route work according to your routing.toml file for workflows involving TDD or specification-driven development.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free