context-manager

context-manager is a skill for Claude Code, Codex from darrenhinde/OpenAgentsControl. It costs 27 tokens per session (2,979 once invoked), scanned A, original, MIT.

A project-context toolkit for finding, collecting, extracting, compressing, organizing, and cleaning up information used during development.

In plain words
What is it for?
Use it to locate files about a topic, fetch library documentation, extract useful details from summaries, reduce large files, reorganize context, and remove stale files.
Why use it?
It helps prevent important project knowledge from being scattered, oversized, outdated, or hard to find. It can also retrieve documentation for external libraries.

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

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/darrenhinde/openagentscontrol/context-manager.svg)](https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-manager)
Your own site
<a href="https://agentmods.dev/skills/darrenhinde/openagentscontrol/context-manager"><img src="https://agentmods.dev/badge/skills/darrenhinde/openagentscontrol/context-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,979 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.00027 $0.02979
Opus 5 $0.00014 $0.01489
Sonnet 5 $0.00005 $0.00596
Haiku 4.5 $0.00003 $0.00298

Measured 4d ago against content hash 1c2a055c8a7f, 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.

The scan reads SKILL.md. This mod also ships 1 executable file (router.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.opencode/skills/context-manager/SKILL.md · 569 lines

How it starts

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

Context Manager Skill

Purpose: Comprehensive context management operations with clear guidance, lazy loading, and safe operations for discovering, organizing, and maintaining project context.


What I Do

I provide 8 powerful operations for managing context:

  1. DISCOVER - Find context files by topic or path
  2. FETCH - Get external documentation from libraries
  3. HARVEST - Extract context from summary files
  4. EXTRACT - Pull specific information from context
  5. COMPRESS - Reduce large file sizes
  6. ORGANIZE - Restructure context by concern
  7. CLEANUP - Remove stale or temporary files
  8. PROCESS - Guided workflow for context operations

Quick Start

1. Discover Context

bash .opencode/skills/context-manager/router.sh discover authentication

Finds all context files related to authentication patterns.

2. Fetch External Documentation

bash .opencode/skills/context-manager/router.sh fetch "Drizzle ORM" "modular schemas"

Retrieves live documentation from external libraries.

3. Harvest Context

bash .opencode/skills/context-manager/router.sh harvest ANALYSIS.md

Extracts key concepts from summary files into permanent context.

4. Extract Information

bash .opencode/skills/context-manager/router.sh extract code-quality.md "naming conventions"

Pulls specific information from context files.

5. Compress Files

bash .opencode/skills/context-manager/router.sh compress .opencode/context/ 100KB

Reduces large context files to save space.

6. Organize Context

bash .opencode/skills/context-manager/router.sh organize .opencode/context/

Restructures context by concern for better organization.

7. Cleanup Stale Files

bash .opencode/skills/context-manager/router.sh cleanup .tmp/ 7

Removes temporary or old files (older than 7 days).

8. Guided Workflow

bash .opencode/skills/context-manager/router.sh process "organize authentication context" .opencode/context/

Step-by-step guidance for complex context operations.

Read the full file on GitHub · 569 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 569 lines · 27 tokens per session scan A 1c2a055c8a7f

Subscribe to this mod's changes

context-manager is a skill published in the GitHub repository darrenhinde/OpenAgentsControl (4,820 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 2,979 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-30.

Related

Other skills, from other repositories

context-manager

Context management skill providing discovery, fetching, harvesting, extraction, compression, organization, cleanup, and guided workflows for project context.

elasticdotventures/_b00t_ · 27 tokens

llm-integration

Claude and OpenAI API patterns, prompt design, context management, streaming, tool use, cost control, multi-model routing.

LuuOW/meridian-mcp · 29 tokens

cortivex-context-compression

Compress agent outputs for efficient context handoff between pipeline nodes while preserving actionable information.

AhmedRaoofuddin/Cortivex · 23 tokens

knowledge-base

Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on an existing MD knowledge base. Triggers…

wonderwhy-er/DesktopCommanderMCP · 112 tokens

ralph-docs

Introspect, explain, and improve Ralph Orchestrator using its published llms.txt doc map. Use this skill whenever the user asks questions about Ralph's behavior, wants to understand how a Ralph internal works (event loop, hats, memories, tasks, backends, presets), debug an unfamiliar failure mode, or propose a code…

mikeyobrien/ralph-orchestrator · 117 tokens

build-fullstack-backend

MANDATORY reading before writing ANY backend, API, server, or fullstack application code (createartifact types fullstack-stateless-app / fullstack-stateful-app, or anything that will be launched with launchbackend). Contains the complete hard contract: the canonical FastAPI+Mangum backend.py template, SECRETS…

mindsdb/anton · 115 tokens