← Back to Skills Marketplace
traceless929

Session Reset

by traceless · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
276
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install session-reset
Description
安全地重置 OpenClaw agent sessions,支持备份、预览、恢复和批量操作。用于:1) 清理过期的 agent 会话上下文,2) 重置特定 agents 的 session,3) 批量重置六部/秘书 sessions,4) 查看和恢复历史备份。当用户需要"reset session"、"清理 se...
Usage Guidance
This skill appears to do what it claims: discover agents under ~/.openclaw, back up session JSONL files, and delete or restore them. Before installing or running it: 1) Inspect scripts/reset-session.py yourself (it runs locally and will delete session files); 2) Run operations in --dry-run first to confirm which files will be affected; 3) Ensure you have adequate disk space for backups and that ~/.openclaw is the correct path for your deployment; 4) Keep external copies of critical data if you cannot afford accidental deletion; 5) If you need stronger assurance, run the script in a safe environment (container or test account) to observe behavior. Overall the package is internally consistent and does not request unrelated privileges or network access.
Capability Analysis
Type: OpenClaw Skill Name: session-reset Version: 1.0.0 The session-reset skill is a legitimate maintenance utility designed to manage OpenClaw agent sessions. The core script, scripts/reset-session.py, performs file operations (backup, deletion, and restoration) strictly within the ~/.openclaw directory. It includes several safety features, such as mandatory backups before any reset, a --dry-run mode for previewing changes, and explicit user confirmation prompts. No evidence of malicious intent, data exfiltration, or unauthorized command execution was found.
Capability Assessment
Purpose & Capability
Name/description match the delivered files: SKILL.md, README, examples, and a Python script implement discovery, backup, preview, restore, cleanup and deletion of OpenClaw session files under ~/.openclaw. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions and examples consistently direct local operations (discover agents, preview, backup to ~/.openclaw/session-backups/, delete session JSONL files, restore from backups). The SKILL.md does not instruct reading unrelated system files or transmitting data externally.
Install Mechanism
This is instruction-only with bundled script files; there is no network download or install-from-URL. The script is included in the package (scripts/reset-session.py) and will run locally when invoked via the OpenClaw CLI.
Credentials
No environment variables or external credentials are required. The script operates on user-owned paths under the home directory (~/.openclaw), which is appropriate for the stated purpose. It does require filesystem write permissions to those paths.
Persistence & Privilege
The skill is not marked always:true and is user-invocable. It only writes its own config (~/.openclaw/session-reset-config.json) and backup files under ~/.openclaw/session-backups/, which is expected behavior for this utility.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install session-reset
  3. After installation, invoke the skill by name or use /session-reset
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of session-reset. - Provides safe reset of OpenClaw agent sessions with automatic backup and restore features. - Supports batch cleaning of expired sessions, targeted agent reset, and session management for cron and subagents. - Includes preview (--dry-run), force execution, and interactive initialization to configure default agents. - Allows listing and restoring backups, as well as cleaning up old backups with customizable retention policies. - Designed with safety measures: auto-backup, confirmation prompts, and preview mode to prevent accidental data loss.
Metadata
Slug session-reset
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Session Reset?

安全地重置 OpenClaw agent sessions,支持备份、预览、恢复和批量操作。用于:1) 清理过期的 agent 会话上下文,2) 重置特定 agents 的 session,3) 批量重置六部/秘书 sessions,4) 查看和恢复历史备份。当用户需要"reset session"、"清理 se... It is an AI Agent Skill for Claude Code / OpenClaw, with 276 downloads so far.

How do I install Session Reset?

Run "/install session-reset" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Session Reset free?

Yes, Session Reset is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Session Reset support?

Session Reset is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Session Reset?

It is built and maintained by traceless (@traceless929); the current version is v1.0.0.

💬 Comments