changsheng-agent-memory
БесплатноЗапускает вложенные скриптыНе проверенCross-session memory recovery for AI agents — your agent never cold-starts again. Always-loaded identity & todos, hash-indexed conditional reads cut recovery…
от ccy123abcd749 установок в других каталогахОб этом скилле
ChangSheng
Use when: a new chat asks where you left off · context is filling up mid-task · the user says "I already told you this" · you re-read the same identity/rules/todos files every session · session start burns tens of thousands of tokens · you hand a long task to a fresh session.
Key commands: python scripts/memory_index.py (discover + write the change index) · python scripts/memory_ledger.py --check (review the must-read budget) · python scripts/recall.py "why we chose X" (find the reason behind a decision) · python scripts/rule_gate.py --check "<action>" (optional action-time rule gate) · say "handover" to snapshot where work stands.
Cost: recovery is 8,669 tokens per session — 1.3% of the 685,560 a full restore would cost (98.7% less; measured on disk 2026-10-24). Pure local, zero API cost.
Progressive memory recovery for AI agents: your assistant stops losing context between sessions, without re-reading everything every time. ChangSheng first discovers where your memory actually lives (your files, your layout), then hands the agent a shift handover at session start.
Every new session feels like "day one at work"? This skill makes the agent read what matters (identity, rules, todos, latest work log), check an auto-generated change index before re-reading secondary files, and defer everything else until actually needed.
Platform support
| Platform | How to use |
|---|---|
| Hermes (Nous Research) | Drop this folder into the agent's skills/ directory, then paste assets/agents-snippet.md into .hermes.md or AGENTS.md → recovery runs automatically (saying "recover memory" per session still works). Hermes injects SOUL/MEMORY/USER automatically — the skill detects host-injected identity and skips duplicate reads (the host-injected case). |
| ClawHub / OpenClaw | Frontmatter is dual-compatible (standard fields + metadata.hermes). Install via clawhub install changsheng-agent-memory or copy into the agent's skills dir. |
| Claude Code / Cursor / Codex / other SKILL.md agents | Copy this folder into the project or agent skills directory; at the start of a session, instruct the agent to follow SKILL.md (the procedure is model-agnostic). |
| Any LLM, any OS | Recovery logic is pure convention + one Python stdlib script — model-agnostic, runs on Windows/macOS/Linux, no GPU. |
What it gives you
- 🧠 No more lost context: identity, rules, todos always loaded — nothing important silently dropped; new sessions resume where you left off
- 📏 Rules remembered: the do's and don'ts you told your agent are re-stated at every recovery — and (where your platform supports hooks) enforced at action time. "It keeps forgetting I told it not to…" — that ends here
- 🧾 Memory that survives review: a ledger with a byte budget, a review date and an expiry action for every always-read file — so a stale rule gets flagged instead of being quoted as current
- 🔎 The reason behind a decision: one command finds why you chose something, across todos, logs, notes and the archive — not just where the word appears
- 🔁 One-line handover: say "handover" at any task break; the next session starts exactly where you stopped
- ⚡ Fast + cheap: recovery is 8,669 tokens per session — 1.3% of a full restore (98.7% less; measured 2026-10-24)
- 🔒 100% local: pure local scripts, zero API cost, nothing leaves your machine
- 📊 Context health: see your real context usage and get nudged as you approach the 30/50/70% lines by default (tunable via config) — and well before a session bloats
How it works
| Layer | Reads | When | Cost |
|---|---|---|---|
| L0 Must-read | identity / rules / todos / latest journal | Every new session — the reliability anchor | small, fixed |
| L1 Conditional | other tracked files | Only if the change index flags a change; otherwise just the index summary line | ≈0 ← savings live here |
| L2 On-demand | detail docs / history | Only when actually needed | 0 |
| L3 Fallback | whole corpus — keyword / full-text / semantic search | When the first three tiers miss | budgeted, with a timeout |
| Dreaming write-side | the content side (scattered rules, look-alike entries, stale leftovers) | every 3-day cycle | zero-token prescan + one tidy session |
The engine is scripts/memory_index.py: it discovers your memory files (role → real file), then hashes every L1-tracked file and flags only what changed (md5 + 24h window). No index → you either re-read everything (expensive) or gamble (risky). With the index you get neither.
Setup (≈30 seconds)
# 1. get the skill (already done if you installed from ClawHub)
git clone https://github.com/ccy123abcd/changsheng-agent-memory.git
cp -r changsheng-agent-memory ~/.claude/skills/changsheng # or your agent's skills dir
# 2. cold start: no config needed — discovery finds your memory
Установить changsheng-agent-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл changsheng-agent-memory?
Cross-session memory recovery for AI agents — your agent never cold-starts again. Always-loaded identity & todos, hash-indexed conditional reads cut recovery to 1.3% of a full restore (98.7% fewer tokens). Pure local, zero deps. Use when: (1) A new chat asks "where did we leave off?" and you have no context (2) Context is filling up and you're about to hit the limit mid-task (3) User says "I already told you this" (4) You re-read the same identity/rules/todos files at every session start (5) Session start burns tens of thousands of tokens before real work begins (6) You need to hand a long task to a fresh session without losing progress
Как установить скилл changsheng-agent-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл changsheng-agent-memory запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic