一键导入
hermes-compress
Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate insights about your Claude Code usage — what topics you work on most, common patterns, productivity trends.
Route Claude Code work by complexity, risk, and tool needs. Use when deciding how much reasoning depth a task needs, whether to read project memory first, whether the task should be decomposed, and whether the work is lightweight, standard, or investigation-heavy.
Query Polymarket prediction markets for probability data and research insights on real-world events.
Search and retrieve academic papers from arXiv using their free REST API. No API key needed.
Query Base (Ethereum L2) blockchain data — wallet balances, token info, transactions, gas analysis, contract inspection. No API key required.
Monitor and summarize blog posts, RSS feeds, and web content for research and staying current with topics.
| name | hermes-compress |
| description | Compress conversation context — summarize the current session, extract key decisions and facts, then compact history to free up context window. |
| version | 1.0.0 |
| author | hermes-CCC (ported from Hermes Agent by NousResearch) |
| license | MIT |
| metadata | {"hermes":{"tags":["Context","Compression","Memory","Session"],"related_skills":["hermes-memory","hermes-search"]}} |
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-compress
No 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>.md
If 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.