sess

sess is a skill for Claude Code, Codex from Zane456/cc-session-memory. It costs 135 tokens per session (1,546 once invoked), scanned A, original, MIT.

A command that retrieves summaries or original transcripts from earlier coding-agent sessions in the current project.

In plain words
What is it for?
Use it to load the previous session, search past sessions by keyword, or retrieve the original wording and details.
Why use it?
It helps recover past decisions and exact commands when the current conversation lacks that context.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to load the previous session, search past sessions by keyword, or retrieve the original wording and details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zane456/cc-session-memory/sess
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 Zane456/cc-session-memory --skill sess
Clone the repo
git clone --depth 1 https://github.com/Zane456/cc-session-memory

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 sess

README.md
[![agentmods](https://agentmods.dev/badge/skills/zane456/cc-session-memory/sess/github.svg)](https://agentmods.dev/skills/zane456/cc-session-memory/sess)
Your own site
<a href="https://agentmods.dev/skills/zane456/cc-session-memory/sess"><img src="https://agentmods.dev/badge/skills/zane456/cc-session-memory/sess/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 sess

Your own site · 80×15
<a href="https://agentmods.dev/skills/zane456/cc-session-memory/sess"><img src="https://agentmods.dev/badge/skills/zane456/cc-session-memory/sess.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,546 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.
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.00135 $0.01546
Opus 5.5 $0.00054 $0.00618
Sonnet 5.5 $0.00027 $0.00309
Haiku 4.5 $0.00014 $0.00155

Measured 1mo ago against content hash 6e94039ed703, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sess 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 1mo ago.

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/sess/SKILL.md · 78 lines

How it starts

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

/sess — 会话记忆加载与搜索

两层数据:

  • GLM 摘要:cc-session-memory 每轮压缩到 <CC_MEMORY_REPO>/memories/,每条 ~300 字、有 frontmatter,给"读了就懂大概"用。
  • CC 原始 jsonl:Claude Code 自己写在 ~/.claude/projects/<encoded-cwd>/<session-uuid>.jsonl,是完整对话原文——用户原话、Claude 原话、所有工具调用都在里头。摘要丢失的细节去这里找。

派发规则(按用户输入决定调哪条命令)

工具:python3 "<CC_MEMORY_REPO>/memory_system/cli/ccmem.py",下面用 $CLI 代指。

用户意图 命令
无参数 / 只想"接着上次聊" $CLI last-session --max-bytes 64000
要看最近 N 个 session 摘要 (-n 3 之类) $CLI last-session -n N --max-bytes 64000
带关键词搜(当前项目) $CLI find "<keyword>" -n N --section-only --max-bytes 32000
带关键词搜(明示全局) $CLI find "<keyword>" --all -n N --section-only --max-bytes 32000
要原话 / 具体细节 / 摘要里没写清的内容 $CLI find "<keyword>" --raw -n 1 --max-bytes 32000
要上个 session 的完整原文对话 $CLI last-session --raw --max-bytes 64000

何时走 --raw

GLM 摘要是有损压缩。默认先看摘要,符合下列任一才升级到 --raw:

  • 用户用了"原话/原文/具体说了什么/具体怎么做的/详情/细节/到底/原本"等词
  • 摘要已经回答了"做了什么",但用户接着问"具体怎么做的"
  • 摘要里某个关键决策没写清(比如"试过 X 但失败"具体是什么错误)
  • 用户要找一段特定的文字(错误信息、命令、参数、URL)

--raw 比摘要慢 + 大很多倍,所以不要默认开。摘要够用就别升级。

--raw 模式默认不打工具调用结果(噪声大),只显示 user/assistant 文本和工具名。要看工具结果加 --include-tool-results。

Context 预算(默认就带,不要省)

每条命令默认都带 --max-bytes(防止历史记忆挤爆当前 context);find 默认还带 --section-only(只返回命中关键词的 ## 轮次 段,省略其余轮次)。

默认值的判断框架(不是死规则):

  • last-session → 64KB(≈16K tokens):用户要"接着聊",给完整一整次会话足够
  • find → 32KB + --section-only:搜索是定向问题,用户要的是命中段不是整篇

何时去掉这些 flag:

  • 用户明确说"全部/完整/show me everything/不要省略" → 去掉 --max-bytes 和 --section-only
  • 用户明确给出预算("只用 5K tokens")→ 按用户给的来(1 token ≈ 4 bytes 估算)
  • 输出尾部提示 ⚠️ 已达 --max-bytes 预算 → 跟用户说"还有 X 条/段被省略了,要不要加大预算或换关键词"

为什么这样设:cc-session-memory 是纯关键词检索,命中范围不可控;不设上限会把无关轮次("今天天气好"那种闲聊)一起塞进 context,稀释信号。section-only 几乎总是对的,因为既然你搜了关键词,你要的就是关键词附近的内容。

raw 模式预算:raw 输出可能比摘要大 10-50 倍。--raw 配 find 默认就要 -n 1(先看一条)+ --max-bytes 32000;--raw 配 last-session 默认 --max-bytes 64000。预算溢出时 CLI 会提示,再问用户要不要扩。

判断"全局" vs "当前项目"

Read the full file on GitHub · 78 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. 1mo ago First seen · 78 lines · 135 tokens per session scan A 6e94039ed703

Subscribe to this mod's changes

sess is a skill published in the GitHub repository Zane456/cc-session-memory (1 stars, last pushed 3mo ago), licensed MIT. It adds 135 tokens to every session and 1,546 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

setup-brain

Set up or upgrade an AI-powered Obsidian vault. Interviews you, builds your vault structure (or works with what you already have), creates your CLAUDE.md memory file, installs tools, and gets you journaling — all in one conversation. Also has a repair/upgrade path for existing users.

mycelium-hq/ai-brain-starter · 66 tokens

second-brain-mapping

Use when the user wants to map or remap their second brain, refresh the vault's queryable metadata index, extract structured frontmatter from typed notes (books, meetings, people, journals, goals), fill wikilink gaps, or surface cross-type insights and patterns no single file shows. Triggers: /second-brain-mapping…

mycelium-hq/ai-brain-starter · 116 tokens

evolve

Use when many related hardened instincts (high-confidence feedback/discovery memories) have piled up in one domain, when the user runs /evolve or asks to promote, cluster, graduate, or consolidate accumulated instincts into a Command, Skill, or Agent, or when files in Instinct Proposals need review. Part of the…

mycelium-hq/ai-brain-starter · 100 tokens

close

Commit the session to durable vault memory and prepare a clean resume point.

wrg32786/aigent-os · 15 tokens

context-capsule

The capsule verb, invoked explicitly — reconcile from the live memory, write a resume-ready capsule, then stop. Mid-session checkpoint or completion capsule; a rolling best-effort version of the same write also runs automatically on every Stop event via daemons/stop-capsule-writer.mjs.

wrg32786/aigent-os · 64 tokens

dream

Evidence-gated synthesis over recent operating evidence. Appends admitted lessons and a dated synthesis with propose-only improvement candidates.

wrg32786/aigent-os · 25 tokens