agent-session-state
БесплатноБез исполняемых скриптовНе проверенPer-conversation session state files and a Write-Ahead Log (WAL) protocol. Captures decisions, corrections, and constraints reliably, keeps one conversation's…
от richgoodson1 431 установка в других каталогахОб этом скилле
Agent Session State v2.4.0
Agents that serve multiple conversations need structured per-conversation state beyond what gateway transcripts capture. This skill provides curated agent-authored session files, a Write-Ahead Log (WAL) protocol for reliable decision capture, and a distillation workflow that promotes session-level state into topic files over time.
At a glance
OpenClaw already provides per-conversation transcript isolation via session.dmScope, gateway-owned session history, automatic session maintenance and pruning, a silent memory flush before compaction, sessions_list and sessions_history for reading prior transcripts, and on recent releases sessions_search over them, a per-session goal, and a session state change log. If that covers your needs ("keep different users' conversations separate", "save durable facts before compaction", "keep one objective visible") you do not need this skill.
This skill operates at a different layer. It adds curated agent-authored state files per conversation at memory/sessions/<session-key>.md, a Write-Ahead Log discipline that commits decisions and corrections to disk before the agent responds, and a distillation workflow that promotes session-level state into topic files over time. The files are notebooks the agent actively maintains, not transcripts of what was said. Transcripts tell you what was said; the goal tells you what the session is trying to do; session state files tell you what was decided along the way.
Install this skill if your agent needs structured, human-readable, long-lived notes about each conversation's ongoing work; if you find yourself losing decisions mid-session because they are never committed anywhere durable; if you want continuity after compaction that goes beyond the memory flush's single-turn save; or if you need topic-aware recovery when working on projects that span multiple sessions. For multi-user agents, run it alongside session.dmScope = "per-channel-peer"; they are complementary, not redundant.
Slash commands
The skill is user-invocable. Where your channel registers skill commands natively, the command appears as /agent_session_state (the skill name with characters outside letters, digits, and underscores replaced). The generic form /skill agent-session-state <command> always works. Skill commands route through the model, so the agent follows the matching section of this file. Supported commands:
status(default when no argument is given) shows which session file belongs to this conversation, its size, how many WAL entries are undistilled, and the age of the oldest one.log <text>writes a WAL entry for the given text immediately, before any reply. Use it when the user wants something captured without discussion.recoverruns the Compaction Recovery steps and reports what context was reconstructed.distillruns the Distillation Targets workflow: proposes entries for shared memory and writes only what the user approves.pruneapplies the Maintenance and Retention rules to this conversation's file and reports what was removed.stoprecords that the user does not want notes kept in this conversation and stops writing to its file.deletedeletes this conversation's session file after confirmation.
Relationship to OpenClaw native sessions
OpenClaw core handles transcript routing and raw history. The gateway owns session transcripts in the agent's state store under ~/.openclaw/agents/<agentId>/ (SQLite from 2026.8.1, JSONL before that), isolates them via session.dmScope, prunes them via session.maintenance, and exposes sessions_list, sessions_history, and session_status as agent tools, with sessions_search added on recent releases. This skill does not replace any of that. If you run multiple users or channels, enable session.dmScope = "per-channel-peer" regardless of whether this skill is installed; that is what stops Alice's DMs from leaking into Bob's session at the routing level.
Goals. From 2026.5.31, OpenClaw has a per-session goal: one durable objective set with /goal, visible to the model through the goal tools, surviving restarts, with explicit pause, block, complete, and clear states. The goal is the right home for "what this session is trying to achieve". This skill does not duplicate it. If the user states an objective and your version has /goal, suggest setting the goal and log the decision to pursue it; the session file then holds the decisions, corrections, and constraints that accumulate while the goal is pursued.
Session state awareness. Recent releases keep a metadata-only change log per session (session_status with changesSince) that tells a session when a human or another agent intervened. It never carries message content, so it cannot replace a decision log, but it is the first thing to check during recovery in a multi-actor session.
Personal USER files. On multi-user gateways from 2026.9.6, each person can ha
Установить agent-session-state в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-session-state?
Per-conversation session state files and a Write-Ahead Log (WAL) protocol. Captures decisions, corrections, and constraints reliably, keeps one conversation's notes out of another's, and provides context recovery for long or complex sessions. Run /agent_session_state status to see this conversation's notes. Designed to work with hierarchical-agent-memory and agent-provenance.
Как установить скилл agent-session-state?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-session-state запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic