Xpersona
A

agent-session-state

CLAWHUB · Unverified

Per-channel session state files and a Write-Ahead Log (WAL) protocol. Prevents cross-session interference, captures decisions and facts reliably, and provides context recovery for long or complex sessions. Designed to work with hierarchical-agent-memory and agent-provenance. Skill: agent-session-state Owner: richgoodson Summary: Per-channel session state files and a Write-Ahead Log (WAL) protocol. Prevents cross-session interference, captures decisions and facts reliably, and provides context recovery for long or complex sessions. Designed to work with hierarchical-agent-memory and agent-provenance. Tags: latest:2.3.1 Version history: v2.3.1 | 2026-10-03T15:15:02.163Z | user Declare shar

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17dvvvq4exbbc1mdmybaxzaen8475gj:agent-session-state
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-richgoodson-agent-session-state/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

118,399 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: agent-session-state
description: >-
  Per-channel session state files and a Write-Ahead Log (WAL) protocol.
  Prevents cross-session interference, captures decisions and facts
  reliably, and provides context recovery for long or complex sessions.
  Designed to work with hierarchical-agent-memory and agent-provenance.
license: MIT-0
compatibility: "OpenClaw 2026.4.x or later."
metadata:
  openclaw:
    requires:
      bins: ["openclaw"]
    paths:
      write: ["memory/sessions/", "memory/topics/", "memory/contacts/", "memory/daily/", "MEMORY.md"]
      read: ["memory/sessions/", "memory/topics/", "memory/contacts/", "memory/daily/", "MEMORY.md"]
  version: "2.3.1"
  clawhub: {"category": "memory", "tags": ["session", "isolation", "wal"]}
---

# Agent Session State v2.3.1

Agents that serve multiple channels need structured per-channel 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-channel transcript isolation via `session.dmScope`, gateway-owned session history, automatic session maintenance and pruning, a silent memory flush before compaction, and `sessions_search` / `sessions_history` for finding and reading prior transcripts. If that covers your needs — "keep different users' conversations separate" and "save durable facts before compaction summarizes the chat" — you do not need this skill.

This skill operates at a different layer. It adds curated agent-authored state files per channel 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; session state files tell you what was decided.

Install this skill if your agent needs structured, human-readable, long-lived notes about each channel'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.

## 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>/`, isolates them via `session.dmScope`, prunes them via `session.maintenance`, and exposes `sessions_list`, `sessions_search`, `sessions_history`, and `session_status` as agent tools. T

_meta.json

{
  "ownerId": "kn7cr61r4a1hjpj4xcay7876sd846am2",
  "slug": "agent-session-state",
  "version": "2.3.1",
  "publishedAt": 1791040502163
}

skill-card.md

## Description:

Helps OpenClaw agents keep per-channel decision notes, record important facts before responding, and recover context across long sessions.

This skill is ready for commercial/non-commercial use.

## Publisher:

[richgoodson](https://clawhub.ai/user/richgoodson)

### License/Terms of Use:

MIT-0

## Use Case:

OpenClaw users and agent developers use this skill to maintain separate, durable notes about decisions and preferences for each conversation and recover relevant context after interruptions or compaction.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Durable conversation notes may retain sensitive information longer than intended.

Mitigation: Avoid sharing secrets or sensitive personal data in chats that will be noted; review the memory directory periodically and use the documented stop or delete controls where note-taking is unwanted.

Risk: Promoting conversation notes into shared memory could make them visible to other sessions.

Mitigation: Require the user's approval in the same conversation before promoting entries, and promote only notes from that conversation.

## Reference(s):

- [Agent Session State on ClawHub](https://clawhub.ai/richgoodson/skills/agent-session-state)

## Skill Output:

**Output Type(s):** [Markdown, Guidance]

**Output Format:** [Markdown memory notes and plain-text guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Keeps curated notes per conversation; sharing notes into long-term memory requires approval in that conversation.]

## Skill Version(s):

2.3.1 (source: skill frontmatter and ClawHub release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to agent-session-state and adjacent AI workflows.