Context Manager

Context Manager is a skill for Claude Code, Codex from eddiebelaval/squire. It costs 12 tokens per session (2,043 once invoked), scanned A, original, MIT.

Manage conversation context and memory for optimal AI performance.

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/eddiebelaval/squire/context-manager
Any agent
npx skills add eddiebelaval/squire --skill context-manager
Clone the repo
git clone --depth 1 https://github.com/eddiebelaval/squire

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/eddiebelaval/squire/context-manager.svg)](https://agentmods.dev/skills/eddiebelaval/squire/context-manager)
Your own site
<a href="https://agentmods.dev/skills/eddiebelaval/squire/context-manager"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/context-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00012 $0.02043
Opus 5 $0.00006 $0.01022
Sonnet 5 $0.00002 $0.00409
Haiku 4.5 $0.00001 $0.00204

Measured today against content hash 803d31ba8986, 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 today.

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 · 295 lines

How it starts

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

Context Manager

The Context Manager skill helps you optimize conversation context to maintain Claude's effectiveness throughout long sessions. It tracks context window usage, identifies when to summarize or prune context, and helps you structure conversations to keep relevant information accessible while staying within token limits.

This skill is essential for complex, multi-day projects where conversation history grows large. It helps you decide what to preserve, what to summarize, and what to discard, ensuring Claude maintains awareness of important decisions and project state without hitting context limits.

Use this skill proactively during long development sessions, before starting new major features, or when you notice performance degradation due to context bloat.

Core Workflows

Workflow 1: Monitor Context Health

  1. Check current context usage:
    • Token count
    • Percentage of limit
    • Recent growth rate
  2. Analyze context composition:
    • How much is code?
    • How much is conversation?
    • How much is documentation?
  3. Identify problematic areas:
    • Redundant information
    • Outdated references
    • Irrelevant tangents
  4. Assess risk level:
    • Green: <50% usage, healthy
    • Yellow: 50-75% usage, monitor
    • Red: >75% usage, take action
  5. Recommend actions if needed
  6. Report status to user

Workflow 2: Summarize Long Conversation

  1. Review conversation history
  2. Extract key information:
    • Decisions made
    • Problems solved
    • Current project state
    • Open questions
    • Next steps
  3. Organize by topic/timeline
  4. Create concise summary
  5. Validate with user
  6. Suggest starting new thread with summary

Workflow 3: Prune Irrelevant Context

  1. Identify candidates for removal:
    • Resolved issues
    • Abandoned approaches
    • Temporary debugging
    • Superseded information
  2. Categorize by importance:
    • Safe to remove
    • Could summarize
    • Must preserve
  3. Propose pruning plan to user
  4. Execute approved removals
  5. Preserve critical context
  6. Verify coherence after pruning

Read the full file on GitHub · 295 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. today First seen · 295 lines · 12 tokens per session scan A 803d31ba8986

Subscribe to this mod's changes

Context Manager is a skill published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 19d ago), licensed MIT. It adds 12 tokens to every session and 2,043 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-09-03.

Related

Other skills, from other repositories

Context Manager

Manage conversation context and memory for optimal AI performance.

jmsktm/claude-settings · 12 tokens

context-engineering

Use this skill for optimizing AI context windows. Covers context sizing, prioritization, and avoiding context overflow.

ApexIQ/skillsmith · 25 tokens

gptq

Post-training 4-bit quantization for LLMs with minimal accuracy loss. Use for deploying large models (70B, 405B) on consumer GPUs, when you need 4× memory reduction with <2% perplexity degradation, or for faster inference (3-4× speedup) vs FP16. Integrates with transformers and PEFT for QLoRA fine-tuning.

Orchestra-Research/AI-Research-SKILLs · 84 tokens

unsloth

Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization.

Orchestra-Research/AI-Research-SKILLs · 39 tokens

alive:mine-for-context

Deep context extraction from source material. Creates reference bundles, builds extraction plans, tracks what's been extracted, and discovers new targets — people, subjects, patterns, connections. The archaeologist that turns raw sources into structured knowledge. Can be invoked by alive:session-history for targeted…

alivecontext/alive · 63 tokens

alive:search-world

The human needs something that exists somewhere in the world but they don't know where. A decision, a person, a file, a reference — it's been captured, they just can't find it. Searches decisions, people, files, references, insights, and log history across all walnuts in priority order.

alivecontext/alive · 64 tokens