managing-context-reliability

managing-context-reliability is a skill for Claude Code from atretyak1985/swarmery. It costs 124 tokens per session (1,212 once invoked), scanned A, original, Apache-2.0.

A guide to keeping long-running or multi-agent Claude systems reliable. It covers context limits, summaries, escalation, ambiguity, error hand-off, codebase exploration, and confidence checks.

In plain words
What is it for?
Use it to review context handling, agent coordination, escalation rules, error propagation, and the sources behind agent decisions.
Why use it?
It helps prevent important information from being lost or distorted as agents work across many steps or pass tasks to one another.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the claude-eng-pack plugin — 5 skills shipped together

Good fit Use it to review context handling, agent coordination, escalation rules, error propagation, and the sources behind agent decisions.

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

Made for: Claude Code.

Or install claude-eng-pack, the plugin that ships this one along with the rest of its 5 skills.

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 managing-context-reliability

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/managing-context-reliability"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/managing-context-reliability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,212 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.00124 $0.01212
Opus 5 $0.00062 $0.00606
Sonnet 5 $0.00025 $0.00242
Haiku 4.5 $0.00012 $0.00121

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

Security

Grade A, and why

managing-context-reliability 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 5d 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.

plugins/claude-eng-pack/skills/managing-context-reliability/SKILL.md · 93 lines

How it starts

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

Managing Context and Reliability

Overview

Best-practice reference for the reliability layer: keeping context healthy over long sessions, escalating instead of guessing, propagating errors with structure, calibrating automation against human review, and preserving provenance. Each reference module states the correct pattern, the named anti-patterns, and ends with an Audit Checklist of verifiable conditions.

When to use

  • Reviewing a long-running agent, a multi-agent pipeline's failure handling, or a synthesis/research system
  • Debugging: degrading answer quality over time, lost mid-context details, silently dropped errors, unattributed claims
  • Deciding: summarisation strategy, escalation criteria, sampling strategy for human review, when to trust automation

Not for the loop/orchestration structure itself (use auditing-agent-architecture).

Quick reference

Module Read when the question is about
references/5-1-context-window-management.md Summarisation traps, lost-in-the-middle, tool-result trimming, prompt caching
references/5-2-escalation-and-ambiguity-resolution.md Valid vs unreliable escalation triggers, explicit escalation criteria
references/5-3-error-propagation-in-multi-agent-systems.md Structured error context, coverage annotations, local recovery
references/5-4-codebase-exploration-and-context-degradation.md Scratchpads, subagent delegation, summary injection, /compact, crash recovery
references/5-5-human-review-and-confidence-calibration.md Stratified sampling, field-level calibration, validation before automation
references/5-6-information-provenance-and-multi-source-synthesis.md Claim-source mapping, conflicts, temporal awareness, attribution

How to audit

  1. Match the system under review to modules in the table; read those files.
  2. Run each module's Audit Checklist item by item against the actual code/config.
  3. Report every unchecked item as a finding with file:line evidence and the module's recommended fix.

Read the full file on GitHub · 93 lines

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. 5d ago Changed · +39 tokens per session 83b8a927e59b
  2. 10d ago First seen · 93 lines · 85 tokens per session scan A 1a0b5eecf8f4

Subscribe to this mod's changes

managing-context-reliability is a skill published in the GitHub repository atretyak1985/swarmery (5 stars, last pushed today), licensed Apache-2.0. It adds 124 tokens to every session and 1,212 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

agentmemory-agents

How agentmemory wires into host coding agents via the connect command. Use when installing agentmemory into a specific agent, when asked which agents are supported, or when a connect adapter writes the wrong config path.

rohitg00/agentmemory · 46 tokens

md-fetch-summarize

Fetch a URL and return a concise markdown summary of its content. Read-only: no files are written; the summary is returned as output only. Use when asked to "fetch and summarize", "summarize this URL", "what does this page say", or "get the content of ". Proactively suggest when the user pastes a URL and asks what it…

chaitanyagiri/munder-difflin · 93 tokens

sl_capture

How to capture new reusable patterns into ktx's semantic layer - when a measure, segment, or join belongs in the catalog and how to write it generically so it stays small and useful over time. Loaded by the post-turn memory-agent only. The research agent does not write to the SL.

Kaelio/ktx · 63 tokens

wisdom-keep

Protect a CocoWisdom entry from consolidation. Usage: $wisdom keep --id --text " ".

Snowflake-Labs/cocoplus · 30 tokens

ctx-purge

Purge the context-mode knowledge base. Permanently deletes all indexed content and resets session stats. This is destructive and cannot be undone. Trigger: /context-mode:ctx-purge.

mksglu/context-mode · 42 tokens

cortex-memory

Persistent cognitive memory for AI agents — query, record, review, and consolidate knowledge across sessions with spreading activation, FSRS scheduling, and NLI contradiction detection.

Fozikio/cortex-engine · 36 tokens