Check current context state and recent saves
Displays current context usage and recent saves/checkpoints from /tmp and .claude/swarm directories. Use this to check for existing context saves, swarm progress, and active auto sessions before starting new work.
/plugin marketplace add arevlo/claude-code-workflows/plugin install arevlo-context@claude-code-workflowsShow current context usage status and recent saves/checkpoints.
/context-status
List recent context saves:
bash/zsh:
echo "=== Recent /tmp saves ==="
ls -lt /tmp/claude-contexts/*.md 2>/dev/null | head -5 || echo " (none found)"
PowerShell:
Write-Host "=== Recent /tmp saves ==="
Get-ChildItem /tmp/claude-contexts/*.md -ErrorAction SilentlyContinue |
Sort-Object LastWriteTime -Descending |
Select-Object -First 5 |
ForEach-Object { $_.Name }
if (-not $?) { Write-Host " (none found)" }
List checkpoint files:
bash/zsh:
echo "=== Swarm progress checkpoints ==="
ls -lt .claude/swarm/progress/*.md 2>/dev/null | head -5 || echo " (none found)"
PowerShell:
Write-Host "=== Swarm progress checkpoints ==="
Get-ChildItem .claude/swarm/progress/*.md -ErrorAction SilentlyContinue |
Sort-Object LastWriteTime -Descending |
Select-Object -First 5 |
ForEach-Object { $_.Name }
if (-not $?) { Write-Host " (none found)" }
Look for recent auto-mode checkpoints:
bash/zsh:
echo "=== Active /auto progress ==="
ls -lt .claude/swarm/progress/auto-*.md 2>/dev/null | head -3 || echo " (no active /auto session)"
List recent agent findings:
bash/zsh:
echo "=== Recent swarm reports ==="
ls -lt .claude/swarm/reports/*.md 2>/dev/null | head -5 || echo " (none found)"
Output in this format:
Context Status
══════════════════════════════════════════════════════════
Recent Saves (/tmp/claude-contexts/):
• 2024-12-19-1430-project.md (2h ago)
• 2024-12-19-1200-project-emergency.md (4h ago)
(or "No recent saves")
Swarm Progress (.claude/swarm/progress/):
• auto-2024-12-19-phase2.md (1h ago)
• reviewer-checkpoint.md (3h ago)
(or "No checkpoints")
Active /auto Session:
• Goal: <extracted from checkpoint>
• Phase: Plan Approved
• Resume with: /auto --resume
(or "No active session")
Recent Swarm Reports (.claude/swarm/reports/):
• reviewer-1734567890.md (30m ago)
• type-analyzer-1734567800.md (45m ago)
(or "No reports")
══════════════════════════════════════════════════════════
💡 Tips:
• Save context now: /save-context
• Load prior context: /load-context
• Resume auto mode: /auto --resume
If an auto checkpoint exists, read the most recent one and extract:
# Auto Checkpoint: <goal> line)Phase: line)/save-context to create a new save/load-context to load prior context/auto --resume to continue an interrupted auto session