Slash Command

/ledger-clear

Install
1
Install the plugin
$
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineer

Want just this command?

Add to a custom plugin, then install with one command.

Description

Clear the session ledger file to start fresh

Model
haiku
Namespace
session/
Allowed Tools
BashTask
Command Content

Clear Session Ledger

Removes the session ledger file to start fresh.

Process

Step 1: Get Ledger Path

SESSION = /majestic:config session {}

Use session.ledger_path if set, otherwise default to .agents/session_ledger.md.

Step 2: Check if File Exists

[ -f "<ledger_path>" ] && echo "exists" || echo "not found"

Step 3: Delete if Exists

If file exists:

rm "<ledger_path>"

Step 4: Confirm

Report result:

  • File deleted: Session ledger cleared: <path>
  • No file found: No session ledger found at <path> - nothing to clear
Stats
Stars30
Forks6
Last CommitMar 21, 2026
Actions