AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Cache Prefix Stability For Subagents

skill-ychampion-cskill-agents-cache-prefix-stability-for-subagents · by ychampion

Preserve cache-critical request fields when a child agent must share the parent's prompt prefix for cache hits.

No reviews yet
0 installs
13 views
0.0% view→install

Install

$ agentstack add skill-ychampion-cskill-agents-cache-prefix-stability-for-subagents

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ychampion-cskill-agents-cache-prefix-stability-for-subagents)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Cache Prefix Stability For Subagents? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

SKILL: Cache Prefix Stability For Subagents

Domain: agentic-loop Trigger: Apply when a subagent should share the parent's cached prompt prefix instead of recomputing a divergent request shape. Source Pattern: Distilled from reviewed subagent orchestration, isolation, and lifecycle implementations.

Core Method

Treat prompt-cache compatibility as an explicit contract when building child agent options. Preserve the cache-critical fields that define the API request prefix, including the merged tool pool, thinking configuration, query source, and content-replacement state, instead of letting child defaults drift away from the parent request. This keeps forked or exact-tool subagents eligible for the same cached prefix while still allowing non-cache-sensitive options to vary.

Key Rules

  • Only inherit cache-critical request fields when the child is intentionally sharing the parent's prefix, such as the use exact tools path.
  • Keep the resolved tool list, thinking configuration, and content-replacement state aligned with the parent request so cache keys do not diverge accidentally.
  • Preserve the recursive-fork guard inputs like query source when they are part of the cached request prefix contract.
  • Do not inherit unrelated defaults blindly; share only the fields that stabilize the prefix and let other child-specific behavior vary intentionally.

Example Application

If a forked review agent must reuse the parent’s prompt cache, build its options from the parent’s tool list and thinking config instead of resetting them to child defaults; the child can then reuse cached request prefixes while still emitting its own downstream messages.

Anti-Patterns (What NOT to do)

  • Do not disable thinking or rebuild the tool pool for a cache-sharing child unless you also accept losing cache alignment.
  • Do not rely on accidental structural similarity between parent and child requests; explicitly carry forward the fields that define the cache prefix.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.