klimkit-claude-subagent

klimkit-claude-subagent is a skill for Codex from klimentij/klimkit. It costs 95 tokens per session (1,491 once invoked), scanned A, original, MIT.

A supervised way to delegate a task to Claude Opus 5 or Fable 5 through the Claude Code command-line tool. One Codex helper starts and monitors the external Claude worker.

In plain words
What is it for?
Use it when you explicitly ask to spawn an Opus 5 or Fable 5 sub-agent. It starts one external Claude worker, monitors it through a Codex helper, and returns the worker’s result and evidence.
Why use it?
It separates task execution from supervision and defines which model, session, effort level, and stop conditions to use. This makes delegation more controlled and easier to report accurately.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it when you explicitly ask to spawn an Opus 5 or Fable 5 sub-agent. It starts one external Claude worker, monitors it through a Codex helper, and returns the worker’s result and evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/klimentij/klimkit/klimkit-claude-subagent
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 klimentij/klimkit --skill klimkit-claude-subagent
Clone the repo
git clone --depth 1 https://github.com/klimentij/klimkit

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 klimkit-claude-subagent

README.md
[![agentmods](https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-claude-subagent/github.svg)](https://agentmods.dev/skills/klimentij/klimkit/klimkit-claude-subagent)
Your own site
<a href="https://agentmods.dev/skills/klimentij/klimkit/klimkit-claude-subagent"><img src="https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-claude-subagent/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 klimkit-claude-subagent

Your own site · 80×15
<a href="https://agentmods.dev/skills/klimentij/klimkit/klimkit-claude-subagent"><img src="https://agentmods.dev/badge/skills/klimentij/klimkit/klimkit-claude-subagent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,491 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.00095 $0.01491
Opus 5 $0.00048 $0.00745
Sonnet 5 $0.00019 $0.00298
Haiku 4.5 $0.00010 $0.00149

Measured 9d ago against content hash caf96bc0efc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

klimkit-claude-subagent 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 9d 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.

skills/klimkit-claude-subagent/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spawn a Claude subagent

Use a babysitter architecture. The root Codex agent coordinates one native Sol subagent; Sol runs one external Claude CLI worker. Claude does the requested task. Sol only starts, monitors, and reports it.

An external Claude process is not a native Codex subagent. Never claim that it appears in Codex's subagent UI or shares Codex mailbox semantics.

Root contract

  1. Resolve the requested Claude model and task:
    • Opus 5 -> claude-opus-5, session name opus-worker.
    • Fable 5 -> claude-fable-5, session name fable-worker.
    • Default Claude effort to low. Preserve another effort only when the user states it.
    • If the model or task is missing, ask for the missing value before spawning anything.
  2. Spawn exactly one native subagent with:
    • model: gpt-5.6-sol
    • reasoning effort: low
    • context fork: none
  3. Give Sol a standalone packet containing the babysitter prompt below, the exact task, working directory, permissions, scope, output requirements, and stop conditions.
  4. Wait for Sol. Do not perform Claude's task in the root session while it runs.
  5. Return Claude's result and evidence. Do not replace it with Sol's or the root agent's answer. Confirm that the Sol babysitter has finished or stop it after collecting the report.

The root step is complete only when exactly one Sol-low babysitter has returned one verified Claude result or one exact blocker.

Babysitter prompt

Pass this contract to Sol, substituting the model, session name, task, and working directory. Do not weaken it.

You are the babysitter for one external Claude Code worker. Do not solve, summarize,
review, or implement the delegated task yourself.

Requested model: <claude-opus-5|claude-fable-5>
Claude effort: <low unless the user explicitly requested another value>
Session name: <opus-worker|fable-worker>
Working directory: <absolute path>
Task: <exact standalone task and all user constraints>

1. Preflight the installed CLI in the working directory:
   - Run `claude --version` and `claude --help` first.
   - Run `claude auth status`; verify logged-in first-party Claude authentication, but do
     not relay email, organization identifiers, tokens, or other identity fields.
   - Treat the installed help as the source of truth for flags and model names.
   - If `claude` is missing, stop and report that exact blocker.

2. Keep Claude Code current:
   - Run `claude update` with approved host-network access on every invocation.
   - Re-run `claude --version` and `claude --help` after an update.
   - If updating fails, report the failure. Continue only when the installed help still
     supports the exact requested model and required flags.

3. Start exactly one Claude worker with approved host-network access. Use the exact
requested model; never substitute an alias, fallback model, or another provider. Pass the
task as one safely quoted argument, never as executable shell text.

claude -p \
  --model <MODEL> \
  --effort <EFFORT> \
  --permission-mode auto \
  --tools default \
  --output-format json \
  --name <SESSION_NAME> \
  '<TASK>'

Do not use `--bare`, `--safe-mode`, `--no-session-persistence`,
`--dangerously-skip-permissions`, or `--fallback-model`. Omitting
`--no-session-persistence` is intentional: preserve the session for follow-up work.

4. Babysit the process until it reaches a terminal state:
   - JSON output can remain silent until completion. Silence alone is not a hang.
   - Poll a yielded process at intervals no longer than 60 seconds. Do not impose an
     arbitrary short timeout or interrupt a healthy worker.
   - Stop only for user cancellation, an explicit user deadline, a clear process failure,
     or a permission question that requires the user.
   - If the result is `ENOTIMP`, confirm the command used approved host-network access and
     retry once that way. If the retry fails, return the exact error.

5. Parse the final JSON and return:
   - `.result` verbatim
   - `.session_id`
   - `.total_cost_usd`
   - `.terminal_reason` and `.is_error`
   - `.permission_denials`
   - the matching `.modelUsage` entry and its `canonicalModel`
   - CLI version, update outcome, and any errors

`modelUsage` may contain auxiliary models. Verification passes when it contains the exact
requested canonical model. It does not need to be the only entry. Never invent a result
or replace a failed Claude call with your own work.

Read the full file on GitHub · 152 lines

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. 9d ago First seen · 152 lines · 95 tokens per session scan A caf96bc0efc4

Subscribe to this mod's changes

klimkit-claude-subagent is a skill published in the GitHub repository klimentij/klimkit (7 stars, last pushed 29d ago), licensed MIT. It adds 95 tokens to every session and 1,491 once invoked, about $0.0005 per session on Opus 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-08-31.