Skip to content
Automation
Command

/clear

Clear session and start fresh

BOOST
From plugin
moazbuilds-claudeclaw
1.3k10 skills10 commands
Install
> /plugin marketplace add moazbuilds/claudeclaw
> /plugin install claudeclaw@claudeclaw

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/clear

Context preview

What this command does when you run it.

Clear session and start fresh

Command definition

clear.md
description: Clear session and start fresh

Clear the current Claude session by backing it up and restarting the daemon with a fresh session.

Run:

bun run ${CLAUDE_PLUGIN_ROOT}/src/index.ts --clear

This will: 1. Rename `session.json` → `session_<index>.backup` (preserving the old session) 2. Stop the running daemon if any 3. The next `/heartbeat:start` will create a brand new session

Report the output to the user.

Ships withmoazbuilds-claudeclaw

A lightweight, open-source OpenClaw version built into your Claude Code.

Get the whole plugin
Stats
1,324
Stars
243
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
2mo ago
Last commit
7mo ago
Created
1d ago
Added

Repo: moazbuilds/claudeclaw

Other commands on moazbuilds-claudeclaw.