cas-delegate

cas-delegate is a skill for Codex from Zhuxi140/codex-agent-switch. It costs 28 tokens per session (243 once invoked), scanned A, original, MIT.

A procedure for sending a clearly bounded task to another coding agent through a controlled delegation system. It covers checking permission, choosing an available agent, and handling refusal or failure.

In plain words
What is it for?
Use it when a user explicitly asks for a separate agent to handle an independent, well-defined piece of work.
Why use it?
It prevents work from being delegated without explicit user approval or without enough information to define the task safely.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when a user explicitly asks for a separate agent to handle an independent, well-defined piece of work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhuxi140/codex-agent-switch/cas-delegate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Zhuxi140/codex-agent-switch --skill cas-delegate
Clone the repo
git clone --depth 1 https://github.com/Zhuxi140/codex-agent-switch

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cas-delegate

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhuxi140/codex-agent-switch/cas-delegate/github.svg)](https://agentmods.dev/skills/zhuxi140/codex-agent-switch/cas-delegate)
Your own site
<a href="https://agentmods.dev/skills/zhuxi140/codex-agent-switch/cas-delegate"><img src="https://agentmods.dev/badge/skills/zhuxi140/codex-agent-switch/cas-delegate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cas-delegate

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhuxi140/codex-agent-switch/cas-delegate"><img src="https://agentmods.dev/badge/skills/zhuxi140/codex-agent-switch/cas-delegate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 243 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00243
Opus 5.5 $0.00011 $0.00097
Sonnet 5.5 $0.00006 $0.00049
Haiku 4.5 $0.00003 $0.00024

Measured 2d ago against content hash c0f1e7c1c974, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-05, from the pricing page.

Security

Grade A, and why

cas-delegate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src-tauri/bundled-skills/cas-delegate/SKILL.md · 13 lines

What it actually says

CAS 用户委派

只处理用户本次明确提出的委派;CAS:ON 和评分建议不等于授权。CAS:OFF 或用户/项目禁委派时不分发。

  1. 提取一个范围明确、可独立验收的子任务。缺少会改变范围的关键信息时先问用户。读取当前 CAS 编排规则,选匹配 phase 的 Active Agent;不猜模型。
  2. 用 job-plan 提交 explicit_request=true 和完整 TaskPacket。返回 PRIMARY、UNAVAILABLE、BLOCK 或 UNCERTAIN 时停止分发并说明原因;不得改写评估事实或直调 job-schedule 绕过门槛。
  3. 仅在准入后按规则使用原生子 Agent,完成 bind、结果观察与 Primary 审查。失败遵循当前 CAS 失败策略,不自行扩大任务或重试授权。
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 13 lines · 28 tokens per session scan A c0f1e7c1c974

Subscribe to this mod's changes

cas-delegate is a skill published in the GitHub repository Zhuxi140/codex-agent-switch (6 stars, last pushed 2d ago), licensed MIT. It adds 28 tokens to every session and 243 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-03.

Related

Other skills, from other repositories

dispatch

Use when a task file exists in .hyperflow/tasks/ and workers need dispatching. Fans out parallel workers under per-batch Reviewers, runs a final integration review, and commits per sub-task. Endpoint of the auto-chain — no auto-deploy. Trigger with /hyperflow:dispatch, "run the plan", "execute the task", "build it"…

jeremylongshore/tons-of-skills-marketplace · 81 tokens

fabric-swarm

Creates a self-organizing team of persistent Pi Fabric actors with durable topics, mailboxes, and compare-and-swap tasks. Use for messenger-like collaboration and long-lived delegated work.

monotykamary/pi-fabric · 40 tokens

squads-cli

Squads CLI — operate your AI workforce through the loop; intent in, reviewed work out. TRIGGER when running squads, dispatching agents, triaging the inbox, reading/writing memory, recording feedback, or checking status/usage.

agents-squads/squads-cli · 53 tokens

gstack-sprint

3-Phase Sprint workflow — design → execute → review with user interaction at decision points.

sehoon787/my-codex · 22 tokens

gh

You have access to gh (GitHub CLI) for repository and project management.

agents-squads/squads-cli · 0 tokens

dagr-producer

Emit and maintain a dagr run file — a live, contract-valid JSON description of recursive projects, tasks, attempts, gates, evidence, policies, events, and operator-message resolutions that dagr view renders as a DAG. Use when orchestrating agents or tracking multi-step work that a dagr pane should display.

aemrebarut/herdr-dagr · 70 tokens