delegating-with-context

delegating-with-context is a skill for Claude Code from oaustegard/claude-skills. It costs 93 tokens per session (2,892 once invoked), scanned B, original, MIT.

A procedure for passing useful parts of the current conversation to a delegated worker. A delegated worker is another agent or session handling a separate task.

In plain words
What is it for?
It helps prepare tasks for subagents, preview the context they will receive, and check whether the context-filtering hook is active.
Why use it?
It reduces the need to copy paths, errors, numbers, and other context into a hand-written brief. A hook selects and adds relevant transcript sections automatically when delegation is supported.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions subagents.

Good fit It helps prepare tasks for subagents, preview the context they will receive, and check whether the context-filtering hook is active.

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

Made for: Claude Code.

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 delegating-with-context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/delegating-with-context"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/delegating-with-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00093 $0.02892
Opus 5.5 $0.00037 $0.01157
Sonnet 5.5 $0.00019 $0.00578
Haiku 4.5 $0.00009 $0.00289

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

Security

Grade B, and why

delegating-with-context scanned grade B with 2 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 3d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/chunking.py, scripts/context_hook.py, scripts/hierfilter.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. **Check the hook is live.** `test -s ~/.claude/context-filter-log.jsonl && tail -1 ~/.claude/context-filter-log.jsonl`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

(shell commands and curl lines in a transcript read as attack payloads). The
delegating-with-context/SKILL.md · 203 lines

How it starts

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

Delegating with context

Writing a background brief for a subagent costs output tokens, generation time, and fidelity: exact paths, error strings and numbers get paraphrased or dropped, and the brief omits what the orchestrator did not know mattered. The context_hook.py PreToolUse hook removes the need. It reads the session transcript, asks Jev which chunks the task needs, and appends those chunks to the subagent's prompt verbatim. The hook fires after the prompt is written, so it cannot save a brief you already wrote. The saving happens here, before the tool input exists.

Procedure

  1. Check the hook is live. test -s ~/.claude/context-filter-log.jsonl && tail -1 ~/.claude/context-filter-log.jsonl shows the last filtered delegation. No file on a first delegation is normal; the hook's reply after your first Agent call confirms it (step 5). Where the hook is not wired (claude.ai, a machine without the settings entry), stop here and write a normal brief.

  2. Preview what the filter would pass. One call, all tasks at once:

    python3 /mnt/skills/user/delegating-with-context/scripts/preview.py \
      --task "Write the xr latency note for the follow-up memory" \
      --task "Draft the closing status for both PRs"
    

    Each task prints the kept chunk ids with a one-line gist. This is the check: find the chunk that holds the fact the subagent must not miss. It takes one to two seconds and costs a fraction of a cent.

  3. Write only the task. What to do, the deliverable, its format, and any constraint that was never written down in the session. Name things the way the transcript names them ("the Sniff Test benchmark table", "PR #812"): Jev reads literally, and a named thing matches its chunk while "that thing we discussed" matches nothing.

  4. Add only what the preview missed. If a needed fact is in no kept chunk, state that one fact in the prompt, or raise the budget with [context-budget: 40000] in the prompt text. Do not restate facts the preview already showed.

Read the full file on GitHub · 203 lines

Files

What ships with it

8 files 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. 3d ago Changed b325680aa3fb
  2. 28d ago Changed · +14 lines d9222a62fcd0
  3. 1mo ago Changed 90e77861b33e
  4. 1mo ago Changed · +5 lines b8280bd1df52
  5. 2mo ago First seen · 184 lines · 93 tokens per session scan B 71aea1460e87

Subscribe to this mod's changes

delegating-with-context is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 2,892 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

delegating-with-context compared with skills from other repositories

delegating-with-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delegating-with-contextoaustegard/claude-skillsSkill423todayMITB93Claude Code
superdesignsuperdesigndev/superdesign-skillSkill1.1k3mo agoMITA115Claude Code, Codex
figma-to-codescoobynko/claude-code-design-skillsSkill401mo agoMITA0Claude Code, Codex
bpmn-xml-generatorstateway-io/bpmn-xml-generatorSkill410d agoApache-2.0A177Claude Code
free-public-rest-apisaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA372Claude Code, Codex
Linearwrsmith108/linear-claude-skillSkill1424mo agoMITA32Claude Code
aisense-free-toolsaisenseapi/aisense-free-public-rest-apisSkill13d agoMITA50Claude Code, Codex