Skip to content
Skillv1.0.0

agent-session-capture-backup

Verify, repair, backfill, and back up Pi/Claude/Codex session capture across Flagg, Blaine, and Panda. Use when checking whether agent activity is captured, clearing joelclaw outbox backlogs, backing

by joelhooks(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from joelhooks/joelclaw (skills/agent-session-capture-backup/SKILL.md). Install upstream with npx skills add joelhooks/joelclaw --skill agent-session-capture-backup. Copyright stays with the author.

Agent Session Capture Backup

Use this skill when Joel asks whether agent activity is being captured, indexed, or backed up across machines.

Canonical surfaces

Transcript/raw activity sources:

  • Pi: ~/.pi/agent/sessions, ~/.pi/agent/run-history.jsonl, ~/.pi/notes-bridge/events.jsonl
  • Claude Code: ~/.claude/projects
  • Codex: ~/.codex/sessions, ~/.codex/archived_sessions, ~/.codex/session_index.jsonl
  • joelclaw run capture: ~/.joelclaw/runs-dev
  • failed run-capture posts: ~/.joelclaw/outbox

NAS backup target:

  • /Volumes/three-body/sessions/<machine>/<source-key>/...
  • receipts: /Volumes/three-body/sessions/receipts/*.json

Current live capture endpoint, per 2026-07-09 repair receipt:

  • http://joels-mac-studio.tail7af24.ts.net:3111/api/runs
  • health: http://joels-mac-studio.tail7af24.ts.net:3111/api/runs/health

Important drift note: older system-architecture docs say Panda is Central. Flagg/Mac Studio is the working capture endpoint for Blaine. Capture authentication uses Flagg's persistent local ~/.joelclaw/capture-auth.db; Typesense machines_dev is only its enrollment/migration mirror.

Manual verification / repair

From ~/Code/joelhooks/joelclaw-runtime:

bun scripts/agent-session-audit-backup.ts \
  --hosts flagg,blaine,panda \
  --central-url http://joels-mac-studio.tail7af24.ts.net:3111 \
  --backup-root /Volumes/three-body/sessions \
  --repair-env \
  --sync=true \
  --replay-outbox \
  --replay-limit 250 \
  --replay-max-bytes 10485760

What it does:

  1. verifies each host is reachable
  2. verifies each host can reach the Central run-capture health endpoint
  3. optionally repairs JOELCLAW_CENTRAL_URL in .zshrc, .zprofile, and ~/.config/system-bus.env
  4. rsyncs transcript/run/outbox sources to the NAS without deleting source files
  5. replays a bounded number of outbox JSON payloads to /api/runs
  6. writes a JSON receipt with source counts, backup counts, newest mtimes, byte totals, and outbox before/after

For a metadata-only audit, use --sync=false and omit both --repair-env and --replay-outbox. Those flags mutate state independently of sync. Discover the current Central endpoint and host set from service configuration; historical endpoint examples are not current authority. Raw transcript content still requires the session evidence receipt.

Use a low --replay-limit first when clearing a huge outbox. Do not unleash tens of thousands of run-capture events without checking worker/Inngest health.

Durable scheduled workflow

Host worker function:

  • system/agent-session.capture-backup.verify
  • manual event: system/agent-session.capture-backup.requested
  • daily cron: TZ=America/Los_Angeles 15 5 * * *

Manual trigger:

joelclaw send system/agent-session.capture-backup.requested -d '{
  "hosts": "flagg,blaine,panda",
  "centralUrl": "http://joels-mac-studio.tail7af24.ts.net:3111",
  "repairEnv": true,
  "replayLimit": 250,
  "replayMaxBytes": 10485760
}'

Green criteria

  • Every active machine reports centralHealthOk=true.
  • Every transcript source that exists locally has matching or increasing backup file counts on NAS.
  • ~/.joelclaw/outbox count trends toward zero on each machine.
  • Receipts are written daily under /Volumes/three-body/sessions/receipts.
  • A recent receipt includes Flagg and Blaine with fresh Pi, Claude, Codex, runs-dev, and outbox counts.

Gotchas

  • Do not use http://panda:3000; that endpoint is stale and fails.
  • Do not use Panda's /api/runs until its local Typesense auth lookup is healthy again.
  • Flagg may have live local capture even when docs still say Panda is Central. Verify system-architecture and recent receipts before changing authority language.
  • Backups must be copies, not rotations. Do not delete or move live transcript files during backup.
  • Outbox replay is a repair operation. Keep it bounded and leave receipts.
  • Never print auth tokens from ~/.joelclaw/auth.json; the script reads them locally on each host.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/joelhooks-joelclaw-agent-session-capture-backup/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

joelhooks-joelclaw-agent-session-capture-backup.ocm.jsonjson
{
  "ocm": "1",
  "id": "joelhooks-joelclaw-agent-session-capture-backup",
  "kind": "skill",
  "name": "agent-session-capture-backup",
  "description": "Verify, repair, backfill, and back up Pi/Claude/Codex session capture across Flagg, Blaine, and Panda. Use when checking whether agent activity is captured, clearing joelclaw outbox backlogs, backing transcripts up to three-body NAS, or scheduling capture verification.",
  "publisher": "joelhooks",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "joelclaw",
      "sessions",
      "backup",
      "nas",
      "capture",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Verify, repair, backfill, and back up Pi/Claude/Codex session capture across Flagg, Blaine, and Panda. Use when checking whether agent activity is captured, clearing joelclaw outbox backlogs, backing transcripts up to three-body NAS, or scheduling capture verification."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/joelhooks/joelclaw",
      "path": "skills/agent-session-capture-backup/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/joelhooks/joelclaw/blob/HEAD/skills/agent-session-capture-backup/SKILL.md",
      "key": "joelhooks/joelclaw/skills/agent-session-capture-backup/SKILL.md"
    }
  },
  "instructions": "# Agent Session Capture Backup\n\nUse this skill when Joel asks whether agent activity is being captured, indexed, or backed up across machines.\n\n## Canonical surfaces\n\nTranscript/raw activity sources:\n\n- Pi: `~/.pi/agent/sessions`, `~/.pi/agent/run-history.jsonl`, `~/.pi/notes-bridge/events.jsonl`\n- Claude Code: `~/.claude/projects`\n- Codex: `~/.codex/sessions`, `~/.codex/archived_sessions`, `~/.codex/session_index.jsonl`\n- joelclaw run capture: `~/.joelclaw/runs-dev`\n- failed run-capture posts: `~/.joelclaw/outbox`\n\nNAS backup target:\n\n- `/Volumes/three-body/sessions/<machine>/<source-key>/...",
  "cost": {
    "context_tokens": 1008
  }
}

Fetch it by URL: GET /api/v1/registry/joelhooks-joelclaw-agent-session-capture-backup/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.