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.
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-engineerhaikusession/# 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`
/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.
/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.
/cleanCleans completed task files by emptying content into markers and consolidates session files from daily to monthly/yearly. Supports tasks, sessions, all modes.
/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.
/resume-sessionLoads the most recent or specified session file from ~/.claude/sessions/ and displays a structured briefing of project state, progress, blockers, and next steps.
Share bugs, ideas, or general feedback.
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 clear