Pan status

From eltmon/overdeck · View interactive version

Pan status is an AI agent skill from the GitHub repository eltmon/overdeck. pan status — show running agents overview and system health

How to use this skill

Skill file

Overdeck Status Overview

Lead with the pipeline-status table

Before running any of the steps below, surface the cross-room visual board

from the pipeline-status skill. That table — one row per in-flight PAN

issue, one column per workflow phase, with checkmark/X cells — is the

headline. Everything in this document is the appendix to it.

Invoke first: pipeline-status
Then: continue with the system/health detail below

If the user wants only the visual table ("status snapshot", "where are we",

"status board"), stop after pipeline-status and don't run the rest. If they

want full system detail or asked specifically for "pan status" / "system

health" / "what's running", run pipeline-status first as a header and then

continue with the detailed sections below.

Overview

This skill guides you through checking the status of all Overdeck components, including running agents, workspaces, services, and system health.

When to Use

Basic Usage

# Check all running agents (shorthand for work status)
pan status

# Full agent status with details
pan status

# Verbose output with resource usage
pan status --context

# Check system health
pan doctor

# List all workspaces
pan workspace list

What Status Shows

Agent Status

pan status
# or
pan status

Output includes:

Example output:

Running Agents (3):

PAN-3: Feature - Add user authentication
  Status: running
  Uptime: 2h 15m
  Workspace: ~/overdeck/workspaces/feature-pan-3
  Session: agent-PAN-3
  Activity: Writing tests (2 minutes ago)

PAN-5: Bug - Fix login redirect
  Status: idle
  Uptime: 45m
  Workspace: ~/overdeck/workspaces/bug-pan-5
  Session: agent-PAN-5
  Activity: Waiting for user input (10 minutes ago)

PAN-7: Refactor - Simplify API layer
  Status: running
  Uptime: 3h 30m
  Workspace: ~/overdeck/workspaces/refactor-pan-7
  Session: agent-PAN-7
  Activity: Running tests (just now)

Workspace Status

pan workspace list

Output includes:

Example output:

Workspaces (5):

feature-pan-3: Add user authentication
  Created: 2024-01-15 10:30
  Status: active
  Containers: 3 running (app, db, redis)
  Disk: 1.2 GB
  Agent: running

bug-pan-5: Fix login redirect
  Created: 2024-01-15 14:00
  Status: active
  Containers: 2 running (app, db)
  Disk: 850 MB
  Agent: idle

feature-pan-7: Simplify API layer
  Created: 2024-01-14 09:15
  Status: active
  Containers: 2 running (app, db)
  Disk: 1.1 GB
  Agent: running

System Health

pan doctor

Output includes:

Example output:

Overdeck System Health

✓ Node.js v18.17.0
✓ Docker 24.0.5 (running)
✓ Docker Compose v2.20.2
✓ tmux 3.3a
✓ Git 2.40.1
✓ Configuration file exists (~/.overdeck.env)
✓ Linear API connected
✓ Dashboard running (http://localhost:3001)
✓ API server running (http://localhost:3002)

Status: All systems operational

Detailed Status Checks

Check Specific Agent

# Show detailed status for one agent
pan status PAN-3

# Is it alive? Asks the agent's terminal backend (Herdr or tmux).
# `alive: false` carries a `livenessReason`; `runtime-indeterminate` means the
# backend did not answer, which is unknown, not dead.
pan status --json | jq '.[] | select(.issueId == "PAN-3") | {id, alive, livenessReason}'

# The dashboard's view: hasLivePane is true for a live pane on either backend
curl -s http://localhost:3011/api/agents | jq '.[] | select(.issueId == "PAN-3") | {id, status, hasLivePane}'

# View agent's recent output (reads the Herdr or tmux pane)
curl -s "http://localhost:3011/api/agents/agent-pan-3/output?lines=20" | jq -r .output

To open the agent's terminal, run the Attach: command that pan start and

pan recover print. It names the right backend:

is in ~/.overdeck/agents/<agent-id>/state.json; a non-default

OVERDECK_HOME uses a hashed session name, so prefer the printed line).

tmux -L overdeck attach -t <agent-id> (Ctrl+b d to detach).

Check Service Status

# Check if dashboard is running
curl http://localhost:3001

# Check if API is running
curl http://localhost:3002/api/health

# Check Traefik status (if enabled)
docker ps | grep traefik

# Check workspace containers
docker ps | grep overdeck

Check Resource Usage

# Verbose status with CPU/memory
pan status --context

# Check Docker resources
docker stats

# Check disk usage
df -h ~/overdeck/workspaces/

# Check memory usage
free -h

Status Interpretation

Agent States

| State | Meaning | Action |

|-------|---------|--------|

| running | Agent actively working | Normal - no action needed |

| idle | Agent waiting for input/task | May need message or new task |

| completed | Agent finished work | Review with gh pr view |

| crashed | Agent encountered error | Check logs, use pan recover |

| blocked | Agent stuck or waiting | Send message with pan tell |

Workspace States

| State | Meaning | Action |

|-------|---------|--------|

| active | Workspace in use, containers running | Normal - no action needed |

| idle | Workspace exists but no agent | May want to destroy or spawn agent |

| stopped | Containers stopped | Restart with pan start |

| error | Workspace in error state | Check Docker, may need to destroy |

Service States

| Service | Healthy | Unhealthy | Check |

|---------|---------|-----------|-------|

| Dashboard | Accessible at :3001 | Connection refused | pan up, check logs |

| API | Returns 200 from /health | Connection refused | pan up, check logs |

| Traefik | docker ps shows running | Not found | Check config, pan up |

| Docker | docker ps works | Command fails | Start Docker daemon |

Monitoring Workflows

Quick Health Check

# One-liner to check everything
pan status && pan doctor

Continuous Monitoring

# Watch agent status (updates every 2 seconds)
watch -n 2 pan status

# Monitor specific agent output
watch -n 2 "curl -s 'http://localhost:3011/api/agents/agent-pan-3/output?lines=10' | jq -r .output"

# Monitor Docker containers
watch -n 2 docker ps

Dashboard Monitoring

Visit http://localhost:3001 for real-time visual monitoring:

Troubleshooting Status Issues

No agents showing

Problem: pan status shows no running agents, but you created them

Solutions:

# Ask the terminal backend directly, per agent
pan status --json | jq '.[] | {id, status, alive, livenessReason}'

# Agents with a live pane, as the dashboard sees them
curl -s http://localhost:3011/api/agents | jq '.[] | select(.hasLivePane) | .id'

# If sessions exist but not showing, check:
cat ~/.overdeck/agents/*.json

# Restart status tracking
pan down && pan up

Agent shows as crashed

Problem: pan status shows agent in crashed state

pan recover lists an agent as crashed only when its state says running and

the terminal backend confirms the pane or harness is gone. A backend that does

not answer (Herdr socket down) never makes an agent crashed.

Solutions:

# Check agent logs
cat ~/.overdeck/logs/agent-<id>.log

# Try to recover
pan recover <id>

# Read the pane to see the error (or run the Attach: command pan recover prints)
curl -s "http://localhost:3011/api/agents/agent-<id>/output?lines=50" | jq -r .output

# If unrecoverable, kill and restart
pan kill <id>
pan start <id>

Workspace shows wrong status

Problem: Workspace status doesn't match reality

Solutions:

# Check Docker containers directly
docker ps -a | grep <workspace-id>

# Refresh workspace status
pan workspace list --refresh

# Manually check workspace directory
ls ~/overdeck/workspaces/<workspace-id>/

`pan doctor` shows errors

Problem: Health check reports issues

Solutions:

Node.js version too old:

nvm install 18
nvm use 18

Docker not running:

sudo systemctl start docker  # Linux
# Or start Docker Desktop (macOS/Windows)

Dashboard not accessible:

pan up
lsof -i :3001  # Check if port is in use

Tracker not connected:

# Check API key in config
cat ~/.overdeck.env | grep API_KEY

# Test connection manually
curl -X POST https://api.linear.app/graphql \
  -H "Authorization: $LINEAR_API_KEY" \
  -d '{"query":"{ viewer { name } }"}'

Status Scripts

Custom Status Dashboard

#!/bin/bash
# ~/scripts/pan-dashboard.sh

clear
echo "=== Overdeck Status Dashboard ==="
echo ""

echo "Services:"
pan doctor | grep "✓\|✗"
echo ""

echo "Agents:"
pan status
echo ""

echo "Workspaces:"
pan workspace list
echo ""

echo "Resources:"
echo "Memory: $(free -h | grep Mem | awk '{print $3 "/" $2}')"
echo "Disk: $(df -h ~/overdeck/workspaces/ | tail -1 | awk '{print $3 "/" $2 " (" $5 " used)"}')"

Run with:

chmod +x ~/scripts/pan-dashboard.sh
watch -n 5 ~/scripts/pan-dashboard.sh

Alert on Agent Crash

#!/bin/bash
# ~/scripts/agent-monitor.sh

while true; do
  if pan status | grep -q "crashed"; then
    echo "Alert: Agent crashed!" | mail -s "Overdeck Alert" user@example.com
    # Or use desktop notification
    notify-send "Overdeck Alert" "An agent has crashed"
  fi
  sleep 60
done

Status Checklist

Regular health check checklist:

Performance Indicators

Healthy System

Needs Attention

Critical Issues

Next Steps

Based on status:

If everything looks good:

If agents are idle:

If agents crashed:

If resources are low:

Related Skills

More Information

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.