Skip to content

Model routing: route Instructions Janitor instead of pinning claude-sonnet-5 #74192

Done

Description

@rabeckett

Estimated saving: about 610 AIC/week, from roughly 1,200 to 590 modeled AIC/week.

Use balanced: this opens non-draft PRs editing instructions used by other agents. Accidentally removing a constraint can affect many later runs, so it deserves more quality margin than cosmetic cleanup. Human review remains necessary.

Replace pinned claude-sonnet-5 with routing. For likely chore/multi_file/medium work, balanced selects claude-opus-5.5:medium, at about 54% of the modeled agent cost. Economy would save more, but start with balanced to preserve instruction quality. Removing the pin also reduces detection/eval cost.

Change

In .github/workflows/instructions-janitor.md, remove model: claude-sonnet-5 and set:

engine:
  id: claude
  model-provider: github
  model-routing:
    goal: cost
    mode: balanced

Use the existing Claude-on-Copilot authentication pattern: inference billing moves from the Anthropic key to Copilot, using COPILOT_GITHUB_TOKEN. Preserve the prompt, evals, safe outputs and .github/aw/** file restriction. Do not pin the predicted model or add model restrictions.

Run make recompile; include only this workflow and its matching lock file. Verify routing is enabled, inference authentication changes to Copilot, and detection no longer inherits the removed model pin.

Check

Audit initial runs with gh aw audit <run> against the roughly 172-AIC/run baseline. Review PRs for preserved constraints, useful deduplication and file-length targets; compare acceptance with recent PRs.

Estimates use 19/26 October usage, 22 October routing tables and 2 November fitted cost ratios. They assume unchanged workload and about 1 AIC/run for detection/evals after unpinning. Classification and org model availability can change the pick and saving.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions