Context Mode Output Sandbox
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compress --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/hermes-compress .claude/skills/hermes-compress && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .claude/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compressType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compress --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/hermes-compress .agents/skills/hermes-compress && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .agents/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compress --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/hermes-compress .cursor/skills/hermes-compress && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .cursor/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/AlexAI-MCP/hermes-CCC.git --path skills/hermes-compress--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compress --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/hermes-compress .gemini/skills/hermes-compress && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .gemini/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compressInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/hermes-compress .github/skills/hermes-compress && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .github/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install AlexAI-MCP/hermes-CCC hermes-compress --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AlexAI-MCP/hermes-CCC.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/hermes-compress .opencode/skills/hermes-compress && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hermes-compress" agent skill from https://github.com/AlexAI-MCP/hermes-CCC/tree/master/skills/hermes-compress into .opencode/skills/hermes-compress/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hermes-compress", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hermes-compressCompress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
Hermes Compress is an agent skill from AlexAI-MCP/hermes-CCC. Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Context engineering. The repository describes itself as: Hermes Agent ported to Claude Code Channel — 46 native skills, no OAuth, no external process. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8107e89. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hermes Compress loads about 1.8k tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 778 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from AlexAI-MCP/hermes-CCC at commit 8107e89, republished under its MIT licence (© AlexAI-MCP). 778 words, ~1,829 tokens.
.claude/skills/hermes-compress/SKILL.md (or your agent's skills folder).Compress the current conversation context by extracting what matters, writing a structured summary to memory, and producing a compact session-state block that can replace the full history in future context windows.
/hermes-compressNo arguments required. Claude will process the full conversation history visible in the current context window.
When invoked, Claude executes the following steps in order:
Claude reads every message in the current conversation from the beginning: user turns, assistant turns, tool calls, and tool results. Nothing is skipped. The goal is to produce a lossless inventory of everything meaningful that occurred.
Claude identifies and categorizes content into six buckets:
| Bucket | What goes here |
|---|---|
decisions | Choices the user or Claude made ("we decided to use Postgres", "REST over gRPC") |
artifacts_created | Files written, code blocks produced, configs generated (include file paths) |
problems_solved | Bugs fixed, errors resolved, blockers cleared |
facts_learned | New information ingested from user, tools, or research |
open_issues | Unresolved questions, TODOs, known bugs not yet fixed |
next_steps | Explicit or implied follow-up actions |
Claude writes the structured summary to the project memory file at:
~/.claude/projects/<project-slug>/memory/session_<YYYYMMDD_HHMM>.mdIf the file already exists (e.g., from a previous compress run in the same day), Claude appends rather than overwrites, with a --- separator and a new timestamp header.
Claude also updates MEMORY.md to add an index entry pointing to the new session file.
MEMORY.md second so a partial failure does not lose the summary.Claude classifies each segment of the conversation as:
This classification is not surfaced to the user by default but informs the session-state block.
Claude outputs a compact YAML block that contains everything needed to resume the session from scratch:
# hermes-compress session state
# Generated: 2026-04-07T14:32:00Z
# Original message count: 47
# Compressed to: ~800 tokens
session:
project: ontology-workspace
date: 2026-04-07
duration_approx: 90min
decisions:
- "Use Neo4j as primary graph store for ontology nodes"
- "REST API over gRPC for external integrations"
- "Deploy to Vercel, not Railway"
artifacts_created:
- path: "AlexAI/api/routes.py"
description: "FastAPI router with /query and /ingest endpoints"
- path: "CLAUDE.md"
description: "Updated with hermes-compress active persona note"
problems_solved:
- "Fixed OpenCrab surrogate encoding error by normalizing Korean queries to English"
- "Resolved Neo4j connection timeout by bumping pool size to 20"
facts_learned:
- "opencrab_flex.py fallback_cypher field contains a ready-made Cypher query"
- "Honcho profile stored at ~/.claude/projects/*/memory/user_honcho_profile.md"
open_issues:
- "hermes-search --recent N subcommand not yet tested against real history file"
- "MEMORY.md index needs backfill for sessions before 2026-03-01"
next_steps:
- "Run /hermes-search 'Neo4j connection' to verify memory is searchable"
- "Commit routes.py and push to main branch"
- "Set up Vercel project link with vercel link --repo"This block is output at the end of the /hermes-compress response so the user can copy it into a new conversation window to resume without carrying the full history.
The full /hermes-compress response is structured as:
If the hermes-memory skill is active, /hermes-compress will:
decisions and facts_learned fields./hermes-search.Claude should suggest /hermes-compress proactively when:
Claude will display: "Context window is getting full. Run /hermes-compress to summarize and free space."
/compress CommandThis skill is the Claude Code equivalent of the /compress command in Hermes Agent (NousResearch). Hermes /compress triggers a session summarization pass within its SQLite-backed session store. In hermes-CCC, the equivalent is writing structured Markdown to the project memory directory, since Claude Code does not have a persistent database backend by default. The output schema (decisions, artifacts, open_issues, next_steps) mirrors the Hermes compress output contract.
© AlexAI-MCP, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/hermes-compress of AlexAI-MCP/hermes-CCC.
Open the folder on GitHubat commit 8107e89
Hermes Compress next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hermes Compress this skillAlexAI-MCP/hermes-CCC | 135 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Context Mode Output Sandboxmksglu/context-mode | 26k | — | ~4.1k | Automated safety check: Pass | Custom licence | |
| Memori Long-Term MemoryMemoriLabs/Memori | 17k | — | ~2k | Automated safety check: Notes | Custom licence | |
| Picoclaw Skill Creatorsipeed/picoclaw | 30k | — | ~4.4k | Automated safety check: Pass | MIT | |
| Context Mode for Antigravity CLImksglu/context-mode | 26k | — | ~850 | Automated safety check: Pass | Custom licence | |
| ccc Semantic Code Searchcocoindex-io/cocoindex-code | 2.8k | — | ~938 | Automated safety check: Pass | Apache-2.0 |
mksglu/context-mode
Routes large command, file, API and browser output through context-mode tools so only the needed result enters the agent's context, instead of dumping it via Bash.
MemoriLabs/Memori
Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.
sipeed/picoclaw
Guidance for creating, updating and reviewing Picoclaw skills, from the SKILL.md structure to organizing bundled scripts, references and assets.
mksglu/context-mode
Routing rules for using context-mode MCP tools in Antigravity CLI: sandboxed code runs, file analysis, indexed search and web fetches that keep large output out of the conversation.
cocoindex-io/cocoindex-code
Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.
alexgreensh/token-optimizer
Audits a Claude Code or Codex setup for context-window waste, fixes it with the user's approval, and measures the saving.
AlexAI-MCP/hermes-CCC
Review GitHub pull requests with a findings-first engineering mindset.
AlexAI-MCP/hermes-CCC
Run a disciplined GitHub pull request workflow from branch creation through merge.
AlexAI-MCP/hermes-CCC
Manage durable project memory for Claude Code. An agent skill from AlexAI-MCP/hermes-CCC.
AlexAI-MCP/hermes-CCC
Route Claude Code work by complexity, risk, and tool needs. An agent skill from AlexAI-MCP/hermes-CCC.
AlexAI-MCP/hermes-CCC
Create, improve, inventory, and audit Claude Code skills. An agent skill from AlexAI-MCP/hermes-CCC.
AlexAI-MCP/hermes-CCC
Capture Claude Code interaction trajectories in training-friendly formats.
Categories
Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window. Hermes Compress is an agent skill from AlexAI-MCP/hermes-CCC. Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
Hermes Compress fits situations like: tasks that involve Context engineering.
Run `npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a claude-code`. Or copy the skill folder (skills/hermes-compress in AlexAI-MCP/hermes-CCC) into .claude/skills/hermes-compress in your project. Claude Code loads it when a task matches its description.
Run `npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a codex`. Or copy the skill folder (skills/hermes-compress in AlexAI-MCP/hermes-CCC) into .agents/skills/hermes-compress in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AlexAI-MCP/hermes-CCC --skill hermes-compress -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hermes-compress, .gemini/skills/hermes-compress, .github/skills/hermes-compress and .opencode/skills/hermes-compress in your project.
SKILL.md names no scripts, command-line tools or credentials: Hermes Compress is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hermes Compress is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hermes Compress: Context Mode Output Sandbox (mksglu/context-mode, 26k stars), Memori Long-Term Memory (MemoriLabs/Memori, 17k stars), Picoclaw Skill Creator (sipeed/picoclaw, 30k stars) and Context Mode for Antigravity CLI (mksglu/context-mode, 26k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
AlexAI-MCP (a GitHub user) maintains it in AlexAI-MCP/hermes-CCC, which has 135 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on April 8, 2026.
Source: AlexAI-MCP/hermes-CCC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.