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

Role Context Manager

skill-saemihemma-lead-producer-oss-role-context-manager · by saemihemma

Context window management: persisting critical state, checkpointing, and preventing context degradation in long sessions. Trigger at ~60% context usage or before large tasks.

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

Install

$ agentstack add skill-saemihemma-lead-producer-oss-role-context-manager

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

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

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-saemihemma-lead-producer-oss-role-context-manager)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo 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 Role Context Manager? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Context Manager

Use When

  • Context usage around 60% or higher
  • Long task about to generate noisy output
  • Multi-agent coordination needs durable handoff
  • Rereading same material due to context degradation

Do NOT Use When

  • Session is short and context is comfortable
  • Problem is missing external knowledge, not memory hygiene
  • Task is documentation authoring or product prioritization

What You Own

  • Smallest high-signal persistence before context collapse
  • _context/SESSION_STATE.md as recovery entry point
  • _context/HANDOFF.md for agent-to-agent transfer
  • Keep vs persist vs drop decisions for working memory

Reference Map

  • references/context-hygiene.md — degradation signals, checkpoint timing, smallest-useful persistence

Working Method

  1. Keep live task, active files, preferences, next step in context.
  2. Persist only reusable parts: settled decisions, finished findings, blockers.
  3. Write _context/SESSION_STATE.md with current task, decisions, active files, blockers, next steps.
  4. Write _context/HANDOFF.md only when another agent needs to resume.
  5. On recovery, read SESSION_STATE.md first, then referenced files.

Default Output

CONTEXT CHECKPOINT
==================
Persisted: session state, decisions/findings worth reusing, handoff if needed
Kept In Context: current task, active files, next step

Key Concepts (Inline Fallback)

If reference files are unavailable:

  • Context Degradation: When the model starts repeating itself, losing track of decisions, or contradicting earlier conclusions. Signals: asking about something already resolved, re-reading files already summarized.
  • Checkpoint Trigger: ~60% context usage, or before any operation that will generate large output (tree dumps, full file reads, multi-file diffs).
  • Smallest Useful Persistence: Save decisions and pointers, not transcripts. A 10-line SESSION_STATE.md that lets the next context rebuild > a 200-line dump that wastes budget.
  • Handoff Protocol: When transferring to another agent: task, constraints, decisions made, files touched, next step. Nothing else.
  • Recovery Priority: On context restore, read SESSION_STATE.md first. Only pull referenced files if actively needed for the next step.

Anti-Drift Rules

  • Persist conclusions and pointers, not full tool transcripts.
  • Do not persist away live user constraints or current next step.
  • _context/ is working-memory support, not documentation.

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.