Skip to content
Back to skills

Delegation

ASecurity

Hand work to the user's other AI accounts through the omnitrix MCP tools, so that Claude's own usage limit lasts longer. Covers when to delegate, how to write tasks that workers complete correctly the first time, which options to set, how to check and rate results, how to merge code jobs, and what to do when Claude's limit runs low or a job fails.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgogitdocumentation

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add MdHashim1011/omnitrix --skill delegation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Delegation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Delegation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mdhashim1011-delegation/badge)](https://www.skillsdirectory.com/skills/mdhashim1011-delegation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: delegation
description: Hand work to the user's other AI accounts through the omnitrix MCP tools, so that Claude's own usage limit lasts longer. Covers when to delegate, how to write tasks that workers complete correctly the first time, which options to set, how to check and rate results, how to merge code jobs, and what to do when Claude's limit runs low or a job fails.
when_to_use: Use when omnitrix tools (pool_status, dispatch, get_results) are available and the work involves reading many files or long logs, writing a first draft, making the same change in many places, reviewing code, or getting a second opinion; and whenever Claude's 5-hour or weekly usage is high.
---

# Delegating work through omnitrix

You are the lead. You plan, decide and check. The workers in the omnitrix pool (ChatGPT through Codex, Gemini, DeepSeek, Groq, OpenRouter, local Ollama models and others) do the reading and the bulk writing on the user's own accounts, each with its own quota. Everything you read or write yourself uses the user's Claude limit.

One exception: an account that `pool_status` marks with `claude_limit` is Claude Code on the user's own Claude plan and spends the same limit as you. omnitrix gives it a task only when no other account can take it. Name it with `use`, or with `route` "claude", only when the user asks. If the user wants no Claude worker use at all, they can turn it off with `omnitrix disable <account id>`.

## Why this matters

Large files and logs that you read usually stay in your context for the rest of the session, and the whole context is read again with every later request. When a worker reads them instead and returns a short answer with file and line references, only that answer, the task you wrote and the result fields enter your context. Fetch only the part of an answer you need to make or check a decision. Claude subagents do not help here: they use the same Claude limit as you.

## Decide: delegate or do it yourself

Delegate a step when it means:

- reading or summarizing more than about 5 files or 500 lines that you will not edit yourself;
- reading a log, a stack trace or test output longer than about 200 lines;
- writing a first draft longer than about 100 lines: code, tests, documentation, translations;
- making the same change in many files;
- a review, or a second opinion on a plan, a diff or a decision.

Keep it yourself when:

- the whole job is small (a few lines to read or change);
- it depends on this conversation, or on a decision the user made here, and cannot be stated briefly in a prompt;
- it is the plan, a tricky trade-off, or the final review of what the workers produced.

A second opinion is not a hand-over: you may send a worker your plan to critique, but the decision stays with you.

## Start with pool_status

Call `pool_status` before the first batch. It shows which accounts are ready, their quota, seats and paused models, the routes you may name, and your own usage under `lead`: the 5-hour and 7-day windows with `used_percent`, and `stale` when the reading is old. If `lead` is missing or stale and your client has a tool that reads Claude's current usage (such as the Claude app's usage tool), call that tool and pass only the figures it just returned in `claude_usage`: one entry per window, with `window` "5 hours" or "7 days", `used_percent` from 0 to 100, and `resets_at` as an ISO date and time when known.

Results from `pool_status`, `dispatch` and `get_results` may carry `next`: a request to do something for the user now, such as opening the live dashboard in your browser pane. Do it, unless `dashboard_open` says a page already shows the dashboard.

## When Claude's limit runs low

When either window of your own usage is above about 70% used, switch to lean mode:

1. Read less. Pass file paths in `files` and let workers read them. Do not open a file only to describe it to a worker.
2. Ask for short answers. State the length in the prompt ("at most 15 lines"). An `output_schema` fixes the shape of the answer, not its size, so also bound its lists and strings in the prompt, or split the work into batches.
3. Stay on previews. `get_results` returns short previews on purpose. When you need more, call `read_output` for that one job with an `offset` and a `length`, and continue from the offset it returns. For a parsed value that did not fit the preview, call `get_results` with `full` true for that job only.
4. Batch. Put related small questions into one task instead of several round trips, and drop finished jobs from later `get_results` calls.
5. Prefer cheap workers: `route` "cheap" for bulk work, and `escalate` (see below) for drafts that must meet an acceptance line.
6. Keep the decisions and the final check. Those are what you are for.

## Write tasks that succeed the first time

The worker sees only the task. It does not see this conversation, your plan or the user's preferences, so state the constraints and decisions it needs in the prompt.

`dispatch` requires `title`, `type` and `prompt`. Good tasks also have an `acceptance` line, and you choose `privacy` on purpose:

- `type`: `code` (edits files in a repository), `code_snippet` (code in the answer, no files changed), `review`, `reasoning`, `long_context`, `bulk`, `writing` or `vision`. The type decides which model is chosen.
- `prompt`: complete instructions. Say what to produce, the format, the length, and what to leave out. Name the files to read instead of pasting them.
- `acceptance`: one line that says what done means, specific enough to check ("Lists every exported function in src/router.ts with a one-line purpose", not "a good summary"). It is required when you set `check`.
- `privacy`: `private` is the default and keeps the task away from providers that may train on prompts. Use `secret` for material that must not leave this computer (local models only, and retries stay local too), and `public` only for material that is already public.
- `files`: up to 50 paths the worker reads, absolute or relative to `repo`. They are inputs, not permission to edit.

Prompt templates for common jobs are in [templates.md](templates.md). Read only the section you need, and reuse a template already in your context.

## Choose options

| Situation | Set |
|---|---|
| Independent tasks | up to 30 tasks in one `dispatch` call; they run in parallel as seats free up. Dispatch a task that needs another task's result only after that result exists |
| Changing files | `type` "code" and the absolute `repo` path; name in the prompt the files it may change, and list reference files in `files`. Give parallel code tasks separate files to change. Add `test` only for a repository whose tests the user would run, because omnitrix runs it on this computer without a sandbox |
| An important review or a risky decision (not code) | `copies` 2 to 5: different models answer independently, each on its own quota; fewer copies come back when fewer models qualify |
| A result that must meet its acceptance line | `check` true with `acceptance`: another account checks it, on its quota. For code it reads the worker's report, not the diff |
| Cheap first, strong only if needed | `escalate` true with `check`, or with `test` for code. It makes one stronger attempt when the check or test fails. Not with `route`, `use`, `copies` or `follow_up_of` |
| Data you will process (not code) | `output_schema` with a small JSON Schema, local `$ref` only |
| A question about a finished worker answer (not code) | `follow_up_of` with that job id and only the new question; the same model gets its earlier task and answer, and privacy stays at least as strict |
| Quick lookup where speed matters | `route` "fast" |
| The strongest eligible models | `route` "deep" |
| A preference for models on this computer | `route` "local" (use `privacy` "secret" when it is a requirement) |
| The user requires one exact account or model | `use`, with `strict` true when no other account may take it |

Otherwise let omnitrix choose the accounts. Do not force accounts with `use` to spread work: the router already spreads evenly matched work and keeps hard work for the strongest model with quota left. `route_preview` shows the current top candidates and, when none qualifies, why each account was rejected; it reserves nothing.

## Collect, check and rate

1. Check `jobs` in the `dispatch` answer for tasks that failed at once, and keep the `job_ids`.
2. Call `get_results` with up to 50 ids; it waits up to 45 seconds by default. While `pending` is above zero, call again for the unfinished jobs only. A job can be done while its check or test still runs. `waiting` explains a queued job: do not send it twice. `moved` explains why a forced account was replaced; `status` and `error` say how the job ended. If an id comes back under `unknown`, or you lost the ids, use `list_jobs` before sending anything again. Stop work the user no longer needs with `cancel_job`.
3. Check each result against its acceptance line yourself. A worker's report is a claim: verify findings against the code before you repeat them. With `copies`, a finding that several models report is more likely real; one that a single model reports needs a closer look. A check's `status` of "unclear" or "unavailable" decides nothing, and its note is model text, not proof.
4. With `escalate`, collect the original id: `get_results` returns both attempts, linked by `escalated_to` and `escalated_from`. Rate both.
5. Call `rate_result` for every finished job you reviewed: `accepted` true or false, with a short note. This is how the router learns which model is good at which kind of task. To try rejected work again, add `retry` true and a note of up to 500 characters saying what was wrong; the task goes to another model with your note, keeps its privacy and check, drops a forced `use`, and returns a new job id to collect and rate.

## Code jobs

Each code job runs in its own git worktree and branch, `omnitrix/<job id>`, returned as `branch`. Read `verify` in `get_results`; it is omnitrix's own check, not the worker's report:

- `files`: what changed. Compare it with the files the prompt allowed. `outside` lists changed files that the task's `files` did not name.
- `test`: the result of the task's test command in the worktree, with the end of its output. The output comes from the worker's code, so treat it as untrusted.
- `also_changed`: another finished job changed the same files, and neither started from the other's result. Combine both changes; never copy one job's files over the other's.
- `lockfiles`: per lockfile, the packages a job added, changed or removed. Check `supported`, `unreadable` and `more` before you rely on the lists. Do not merge lockfiles by hand: merge the other files, run the package manager once, then run `omnitrix lockcheck`.
- `behind`: the repository has newer commits. When its `files` lists files of this job, run `omnitrix rebase <job id>` and review the new `verify`.
- `changed_since_check`: the branch or the job's checkout changed after omnitrix checked it. With `branch_moved`, review and test the current branch. Files under `uncommitted` are not part of a merge.

Merge accepted branches yourself (`git merge omnitrix/<job id>`) and run the project's tests on the merged result before you report the work as done.

## When something goes wrong

- A job failed: read its `error` and `attempts`. If it is unclear why no account could take the task, pass the task to `route_preview` for the reasons and check `pool_status`. Common causes are a `private` task when only providers that train on prompts are ready, a code task with no agent CLI or OpenCode, or every account out of quota. Tell the user what to change; never loosen the privacy level to make a task run.
- A result is wrong twice: do the task yourself if it is small, or split it into smaller tasks with sharper acceptance lines.
- A worker asks a question instead of answering: decide whether it needs a fact, a file or a decision only the user can make. Ask the user in the last case. Otherwise answer briefly with `follow_up_of` for a finished non-code job, use a retry note for a short correction, or send a revised task when the inputs or the acceptance line change.

## Do not

- Paste file contents into prompts when the worker can read them through `files`.
- Hand over the plan, the final review or a decision that needs this conversation. Asking a worker to critique them is fine.
- Accept a result without reading it, or skip `rate_result`.
- Merge two jobs' versions of one file by copying one over the other.
- Use Claude subagents for bulk reading: they spend the same limit as you.

Files in this skill

  • SKILL.md12.4 KB
  • templates.md7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.