cas-delegate

cas-delegate is a skill for Codex from Zhuxi140/codex-agent-switch. It costs 28 tokens per session (251 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 251 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.00251
Opus 5.5 $0.00011 $0.00100
Sonnet 5.5 $0.00006 $0.00050
Haiku 4.5 $0.00003 $0.00025

Measured 1mo ago against content hash edfe94c0968c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 用户委派

这是用户明确要求委派时的手动入口,不替代 Primary 的保守自主委派。SUGGEST 不等于授权;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. 1mo ago Changed edfe94c0968c
  2. 1mo 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 28d ago), licensed MIT. It adds 28 tokens to every session and 251 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

cas-delegate compared with skills from other repositories

cas-delegate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cas-delegateZhuxi140/codex-agent-switchSkill628d agoMITA28Codex
sparc-methodologyruvnet/RuViewSkill106ktodayMITA29Claude Code
agent-framework-py-releasemicrosoft/agent-frameworkSkill15k13d agoMITA102Claude Code, Codex
python-feature-lifecyclemicrosoft/agent-frameworkSkill15k13d agoMITA43Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15k13d agoMITA65Claude Code, Codex
python-developmentmicrosoft/agent-frameworkSkill15k13d agoMITA27Claude Code, Codex
using-aoUntrivial-ai/agent-orchestratorSkill15kyesterdayApache-2.0A71Claude Code, Codex