context-manager

context-manager is a skill for Claude Code, Codex from Mark393295827/graph-engineering-architectures. It costs 28 tokens per session (1,031 once invoked), scanned A, original, MIT.

A method for managing the information an agent needs during long tasks. It tracks objectives, limits, important evidence, saved state, and decisions that must survive context reduction.

In plain words
What is it for?
Use it to budget context, create checkpoints, decide what to save, retrieve only decision-relevant information, and resume interrupted work safely.
Why use it?
It reduces the risk of losing requirements, permissions, or failure history when a task becomes too long for one working context.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/mark393295827/graph-engineering-architectures/context-manager
Any agent
npx skills add Mark393295827/graph-engineering-architectures --skill context-manager
Clone the repo
git clone --depth 1 https://github.com/Mark393295827/graph-engineering-architectures

Made for: Claude Code, 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 context-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/mark393295827/graph-engineering-architectures/context-manager.svg)](https://agentmods.dev/skills/mark393295827/graph-engineering-architectures/context-manager)
Your own site
<a href="https://agentmods.dev/skills/mark393295827/graph-engineering-architectures/context-manager"><img src="https://agentmods.dev/badge/skills/mark393295827/graph-engineering-architectures/context-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.01031
Opus 5 $0.00014 $0.00515
Sonnet 5 $0.00006 $0.00206
Haiku 4.5 $0.00003 $0.00103

Measured 4d ago against content hash 97beee2fa8d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-manager 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 4d 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/context-manager/SKILL.md · 102 lines

How it starts

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

Context Manager

<skill_contract> An active objective, runtime context limits, decision-critical state, evidence, budgets, and durable storage. A bounded context manifest, checkpoint, compaction decision, and capability-routing receipt. The next decision can be resumed without losing constraints, permissions, provenance, or failure history. <non_goals>Task orchestration, vendor-specific routing, hidden truncation, or retaining history that cannot change a decision.</non_goals>

Treat context as RAM, durable storage as disk, and tools as retrieval. Pay only for information that changes the next decision or prevents an execution error.

Usage Template

Provide: objective, phase, runtime context limit, token/cost budget, active constraints, current evidence, durable state location, and expected next decisions.

Workflow

Measure available budget from runtime data; do not infer limits or prices from model names. Partition context into objective, constraints, active state, evidence, open unknowns, and history. Identify the next irreversible or high-cost decision.

<unknowns_gate>

If runtime limits or durable state are unavailable, choose a conservative explicit budget or return NEEDS_INPUT. Never silently drop constraints, approvals, source provenance, failed attempts, or user decisions.

</unknowns_gate>

Apply KEEP / SUMMARIZE / DROP / RETRIEVE:

  • KEEP: objective, acceptance criteria, permissions, active files, current state, fresh evidence, blockers.
  • SUMMARIZE: completed exploration, superseded plans, verbose tool output; retain decisions and locators.
  • DROP: duplicated prose, stale speculation, irrelevant logs, and reconstructible boilerplate.
  • RETRIEVE: load detailed references only when the next action needs them.

Checkpoint at phase boundaries or before compaction. Route work by capability requirements such as reasoning depth, tool use, latency, cost, multimodality, and context capacity; runtime policy selects the implementation. Keep stable prompt prefixes unchanged when caching is available.

Read the full file on GitHub · 102 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. 4d ago First seen · 102 lines · 28 tokens per session scan A 97beee2fa8d9

Subscribe to this mod's changes

context-manager is a skill published in the GitHub repository Mark393295827/graph-engineering-architectures (2 stars, last pushed 14d ago), licensed MIT. It adds 28 tokens to every session and 1,031 once invoked, about $0.0001 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

dagr-producer

Emit and maintain a dagr run file — a live, contract-valid JSON description of recursive projects, tasks, attempts, gates, evidence, policies, events, and operator-message resolutions that dagr view renders as a DAG. Use when orchestrating agents or tracking multi-step work that a dagr pane should display.

aemrebarut/herdr-dagr · 70 tokens

autonomous-dev-team

Multi-agent team execution with DAG task scheduling, specialized roles, and consensus synthesis.

AbdullahMalik17/malikclaw · 21 tokens

agent-framework-py-release

Use when cutting a Python release for the microsoft/agent-framework monorepo. Triggers on "bump py versions", "cut a python release", "prepare release PR for python", "release py packages", "bump python to X.Y.Z", or similar requests to bump Python package versions and prepare a release PR. Handles all four lifecycle…

microsoft/agent-framework · 103 tokens

python-package-management

Guide for managing packages in the Agent Framework Python monorepo, including creating new connector packages, versioning, and the lazy-loading pattern. Use this when adding, modifying, or releasing packages.

microsoft/agent-framework · 43 tokens

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

python-feature-lifecycle

Guidance for package and feature lifecycle in the Agent Framework Python codebase, including stage meanings, feature-stage decorators, feature enums, and how to move APIs from one stage to the next.

microsoft/agent-framework · 43 tokens