context-manager

context-manager is a skill for Claude Code from aAAaqwq/AGI-Super-Team. It costs 12 tokens per session (1,871 once invoked), scanned A, original, MIT.

A session-context manager that summarizes an AI session, saves a backup, resets the session, and restores the shorter summary.

In plain words
What is it for?
Use it to inspect session usage, create summaries, and compress long OpenClaw sessions before they run out of context.
Why use it?
Long conversations can use too much context and become slower or less coherent; compression keeps the useful history while removing detail.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents; built for openclaw.

Part of the agi-super-team plugin — 220 skills, 1 agent, 1 plugin shipped together

Good fit Use it to inspect session usage, create summaries, and compress long OpenClaw sessions before they run out of context.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaaaqwq/agi-super-team/context-manager
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 aAAaqwq/AGI-Super-Team --skill context-manager
Clone the repo
git clone --depth 1 https://github.com/aAAaqwq/AGI-Super-Team

Made for: Claude Code.

Or install agi-super-team, the plugin that ships this one along with the rest of its 220 skills, 1 agent, 1 plugin.

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/aaaaqwq/agi-super-team/context-manager/github.svg)](https://agentmods.dev/skills/aaaaqwq/agi-super-team/context-manager)
Your own site
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/context-manager"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/context-manager/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 context-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaaaqwq/agi-super-team/context-manager"><img src="https://agentmods.dev/badge/skills/aaaaqwq/agi-super-team/context-manager.svg" alt="Reviewed on agentmods" width="80" 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 1,871 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00012 $0.01871
Opus 5.5 $0.00005 $0.00748
Sonnet 5.5 $0.00002 $0.00374
Haiku 4.5 $0.00001 $0.00187

Measured 3mo ago against content hash 2c0b645c3876, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (compress.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.

skills/context-manager/SKILL.md · 230 lines

How it starts

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

Context Manager Skill

  • Author: Daniel Li
  • Copyright © Daniel Li. All rights reserved.

AI-powered context management for OpenClaw sessions. Uses the agent itself to generate intelligent summaries, then resets the session with compressed context.

Quick Start

# List all sessions with usage stats
~/openclaw/skills/context-manager/compress.sh list

# Check status of a specific session
~/openclaw/skills/context-manager/compress.sh status agent:main:main

# Generate AI summary (read-only, safe)
~/openclaw/skills/context-manager/compress.sh summarize agent:main:main

# Compress session: generate summary, reset, inject (DESTRUCTIVE)
~/openclaw/skills/context-manager/compress.sh summarize agent:main:main --replace

When to Use

  • Context usage approaching 70-80%+
  • Long sessions with extensive conversation history
  • Before the session becomes slow or loses coherence
  • Proactively to maintain fast, focused sessions

How It Works

  1. AI Summarization: Sends a prompt to the agent asking it to summarize its own context
  2. Backup: Saves the original JSONL session file to memory/compressed/
  3. Reset: Deletes the JSONL file (official reset method)
  4. Inject: Sends the AI-generated summary as the first message in the fresh session
  5. Result: Same session key, new session ID, compressed context

Key insight: The agent has full visibility into its own context, so it generates the best possible summary.

Commands

Session Commands

Command Description
list List all sessions with token usage
status [KEY] Show detailed status for a session
summarize [KEY] Generate AI summary (read-only)
summarize [KEY] --replace Summarize AND reset session with compressed context
compress [KEY] Legacy grep-based extraction (not recommended)
check [KEY] Check if session exceeds threshold
check-all Check all sessions at once

Configuration Commands

Command Description
set-threshold N Set compression threshold (50-99%, default: 80)
set-depth LEVEL Set depth: brief/balanced/comprehensive
set-quiet-hours HH Set quiet hours (e.g., "23:00-07:00")
help Show help and usage examples

Read the full file on GitHub · 230 lines

Files

What ships with it

4 files 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. 3mo ago First seen · 230 lines · 12 tokens per session scan A 2c0b645c3876

Subscribe to this mod's changes

context-manager is a skill published in the GitHub repository aAAaqwq/AGI-Super-Team (125 stars, last pushed 4d ago), licensed MIT. It adds 12 tokens to every session and 1,871 once invoked, about $0.0000 per session on Opus 5.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-05.

Related

context-manager compared with skills from other repositories

context-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-manageraAAaqwq/AGI-Super-TeamSkill1254d agoMITA12Claude Code
agent-v3-memory-specialistruvnet/rufloSkill83kyesterdayMITA25Claude Code
agent-memory-coordinatorruvnet/rufloSkill83kyesterdayMITA19Claude Code
agent-collective-intelligence-coordinatorruvnet/rufloSkill83kyesterdayMITA29Claude Code
claude-compaction-restoremvschwarz/openrigSkill9.0ktodayApache-2.0A60Claude Code
retiring-and-inheriting-a-seatmvschwarz/openrigSkill9.0ktodayApache-2.0A145Claude Code
session-compaction-and-restoremvschwarz/openrigSkill9.0ktodayApache-2.0B88Claude Code