Skip to content

About

Agent skill: orchestrate T3 Code threads with provider-aware model/effort routing and usage-limit failover

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

t3-orchestrator: splits your work across T3 threads, picks the right model for each task, and keeps going when usage runs out.

Agent skill Works with Claude Code, Codex and OpenCode T3 Code 0.1.12 or newer MIT license

One lead thread. The right model for every task. No dead ends when an account runs dry.

npx skills add wincrack07/t3-orchestrator

Then, in a T3 Code thread: "orchestrate what we discussed".


✦ What it does

Discovers your setup Reads your provider instances, models, and effort options from T3 (orchestrator_capabilities) instead of assuming a list. Skips anything disabled or signed out.
Knows what each instance is for Subscriptions before pay-per-token API (API only with your OK). Prefers the account that matches the repo's owner.
Routes by task Hard design and debugging get the strongest model at high effort. Clear features get a strong coder at medium. Research and tests get fast models at low. Reviews go to a different model family.
Speaks each provider's options Effort is effort on Claude, reasoningEffort on Codex, and thought_level on Gemini. It uses the id and values each model lists, and always sets them so a child doesn't inherit the lead's.
Waits without polling T3 wakes the lead when a child finishes, asks, or fails. No status loops burning quota in between.
Learns unfamiliar models A script reads the descriptions your providers already keep on your machine and gives each model a tier. Only codenames nobody describes get looked up in the docs, once.
Survives usage limits Detects an exhausted account, stops the stuck task so auto-resume can't duplicate work, and moves the same thread to another account: same worktree, same branch, same conversation.
Comes back when quota does After the reset time, it probes the account with a small task before trusting it again.
Stays inside guardrails No merges, deploys, deletions, permission changes, or paid API use without you. Children inherit the same limits.

✦ How a run flows

%%{init: {'theme':'base','themeVariables':{'primaryColor':'#fdfcfa','primaryTextColor':'#2b1b0f','primaryBorderColor':'#2b1b0f','lineColor':'#6f6259','edgeLabelBackground':'#fdfcfa','fontFamily':'Figtree, ui-sans-serif, system-ui, sans-serif','fontSize':'16px'}}}%%
flowchart TB
  subgraph prep [" "]
    direction LR
    A([1 · Discover<br/>providers · models · limits]) --> B([2 · Review repo<br/>git · branches · rules]) --> C([3 · Plan<br/>tasks · owners · criteria]) --> D{{4 · Delegate<br/>role → model + effort}}
  end
  subgraph run [" "]
    direction LR
    E([5 · Monitor<br/>answer children]) -. usage ran out .-> F([Fail over<br/>same worktree, new account]) -.-> G([6 · Integrate<br/>review · tests · e2e]) --> H([7 · Deliver<br/>PRs + what's verified])
    E --> G
  end
  prep --> run

  classDef base fill:#fdfcfa,stroke:#2b1b0f,stroke-width:2px,color:#2b1b0f;
  classDef lead fill:#f1b82d,stroke:#2b1b0f,stroke-width:2px,color:#2b1b0f;
  classDef sky fill:#dce7f5,stroke:#2b1b0f,stroke-width:2px,color:#2b1b0f;
  class A,B,C,E,G,H base;
  class D lead;
  class F sky;
  style prep fill:none,stroke:none;
  style run fill:none,stroke:none;
Loading

✦ Routing at a glance

Role Typical work Model tier Starting effort
design architecture, migrations, security most capable available high → xhigh if critical
implementation (hard) deep debugging, cross-module changes most capable or strong coder high
implementation (clear) well-specified feature strong coder, mid-high tier medium
review PR or diff review capable, different family high
research read code and docs, map, search fast, large context low → medium
test write or run tests, mechanical fixes fast or mid tier low → medium
general docs, renames, trivial edits fastest or cheapest low

It escalates only after a failed attempt: effort first, then model. The full method lives in references/model-routing.md.

✦ When an account runs out

%%{init: {'theme':'base','themeVariables':{'primaryColor':'#fdfcfa','primaryTextColor':'#2b1b0f','primaryBorderColor':'#2b1b0f','lineColor':'#6f6259','edgeLabelBackground':'#fdfcfa','fontFamily':'Figtree, ui-sans-serif, system-ui, sans-serif','fontSize':'16px'}}}%%
flowchart LR
  AV([available]) -- usage limit hit --> LI([limited])
  LI -- reset time passes --> PR([probing])
  PR -- small task succeeds --> AV
  PR -- limit again · wait ×2 --> LI
  AV -. auth or binary error .-> BR([broken])

  classDef ok fill:#dce7f5,stroke:#2b1b0f,stroke-width:2px,color:#2b1b0f;
  classDef stop fill:#2b1b0f,stroke:#2b1b0f,stroke-width:2px,color:#fdfcfa;
  classDef probe fill:#f1b82d,stroke:#2b1b0f,stroke-width:2px,color:#2b1b0f;
  classDef off fill:#e7e0d6,stroke:#6f6259,stroke-width:2px,color:#4b3b2f,stroke-dasharray:5 4;
  class AV ok;
  class LI stop;
  class PR probe;
  class BR off;
Loading
  1. Record the account and its reset time in a machine-wide ledger (~/.local/state/t3-orchestrator/providers.json), through a script that does the date arithmetic so the model doesn't have to.
  2. Stop the limited thread, so T3's auto-resume can't redo the work later.
  3. Salvage the progress from the child's worktree (git status, diff, log).
  4. Continue by moving the same thread to the next-best account (t3_thread_configure, then a handoff message that says what's done and what's left). If T3 rejects the move, it starts a new thread in the same worktree.
  5. Tell you in one line: "Codex · Personal ran out (5 h, back at 18:40). Moved T3 to Claude · Personal, same worktree."

The orchestrator checkpoints its own run file after every step. When its own account runs low, it switches its own thread to another account and picks up from that file. Details in references/usage-limits.md.

✦ Install

skills CLI
npx skills add wincrack07/t3-orchestrator
Manual

Copy this folder into your agent's skills directory: ~/.claude/skills/t3-orchestrator, ~/.codex/skills/t3-orchestrator, or your OpenCode skills folder.

Try it with prompts like:

  • "Orchestrate everything we just discussed."
  • "Use the t3-orchestrator skill on this list: …"
  • "Split this refactor across T3 threads and review it with another model."
Requirements
  • T3 Code with the orchestrator MCP tools: orchestrator_capabilities, delegate_task, task_status, task_cancel, t3_thread_read, t3_thread_wait, t3_thread_send, t3_thread_configure, t3_thread_launch. If they're missing, it falls back to the t3 thread CLI.
  • At least one provider instance in Settings → Providers. Failover shines with two or more accounts or providers.
  • Python 3.9 or newer for the two helper scripts. Standard library only.
Notes and limitations
  • Written against T3 Code v0.1.12 (November 2026). Delegating across providers, cancelling a task, and moving a child thread to another account were run on that version. T3 moves fast, so the skill defers to the tool instructions T3 gives the agent, checks t3 --version, and adapts.
  • Detecting a real exhausted account was not exercised end to end: that needs an account that is actually out of quota. T3 tracks a "limited" state and reset time internally, but its tools may not pass them to the agent, so the skill falls back to reading the thread's activity. New provider wording may need a new pattern in references/usage-limits.md.
  • When a thread moves to another provider, T3 carries over only a budgeted part of the conversation. The skill writes handoff messages that stand on their own, and keeps the run file as the source of truth.
  • State lives in ~/.local/state/t3-orchestrator/ and never includes credentials. To build model tiers, profiles.py reads T3's model manifest, the model list in each Codex home, and the home path of your Codex instances in T3's settings. It reads nothing else from those folders.
Files
t3-orchestrator/
├── SKILL.md                    the orchestration workflow
├── scripts/
│   ├── ledger.py               which accounts are out of usage, and until when
│   └── profiles.py             which tier each model is, and how we know
├── references/
│   ├── model-routing.md        instance, model, and effort selection
│   └── usage-limits.md         detection, failover, and recovery
└── tests/                      unit tests for the two scripts

Julio Saldaña logo
Made by Julio Saldaña · MIT

About

Agent skill: orchestrate T3 Code threads with provider-aware model/effort routing and usage-limit failover

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages