From majestic-engineer
Clears the session ledger file at the configured path or default .agents/session_ledger.md. Reports if successfully deleted or not found.
How this command is triggered — by the user, by Claude, or both
Slash command
/majestic-engineer:ledger-clearhaikusession/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Clear Session Ledger Removes the session ledger file to start fresh. ## Process ### Step 1: Get Ledger Path Use `session.ledger_path` if set, otherwise default to `.agents/session_ledger.md`. ### Step 2: Check if File Exists ### Step 3: Delete if Exists If file exists: ### Step 4: Confirm Report result: - **File deleted**: `Session ledger cleared: <path>` - **No file found**: `No session ledger found at <path> - nothing to clear`
Removes the session ledger file to start fresh.
SESSION = /majestic:config session {}
Use session.ledger_path if set, otherwise default to .agents/session_ledger.md.
[ -f "<ledger_path>" ] && echo "exists" || echo "not found"
If file exists:
rm "<ledger_path>"
Report result:
Session ledger cleared: <path>No session ledger found at <path> - nothing to clearnpx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineer/council-cleanupRemoves the .council/ working directory and temporary files from LLM Council sessions. Idempotent and safe to run multiple times.
/forgetArchives session logs (handoffs, todos, history) for current git branch to enable fresh session without auto-resume.
/clearClears the current Claude session by backing up session.json as session_<index>.backup, stopping the daemon, and preparing a fresh session for the next /heartbeat:start. Reports output.
/cleanup-contextRuns Claude Code context cleanup script, permanently deleting files older than 7-60 days from file-history, sessions, projects, todos, logs, and statsig. Shows before/after stats and deletion summary.
/oac-cleanupCleans old temporary files from .tmp/sessions (>7 days), .tmp/tasks (completed >30 days), and .tmp/external-context (>7 days) with interactive preview and confirmation. Supports --force and custom --*-days flags. Outputs JSON summary.
/resume-sessionLoads the most recent or specified session file from ~/.claude/session-data/, outputs structured briefing on project, status, blockers, and next steps, then waits for instructions.