Skip to content
Back to skills

Coord Respawn Self

ASecurity

Used by a Coord agent when context reaches 300k tokens mid-L3. Saves mid-L3 state, writes a continuation manifest, notifies the spawner (PD) and stops so a fresh Coord resumes. Max 3 respawns per Coord per 24h. Only at clean task boundaries, never mid-Executor-spawn or mid-ACK/NACK.

  • 7 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 29, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Tekkiiiii/the-agency --skill coord-respawn-self --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coord Respawn Self?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coord Respawn Self
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tekkiiiii-coord-respawn-self/badge)](https://www.skillsdirectory.com/skills/tekkiiiii-coord-respawn-self)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: coord-respawn-self
description: "Used by a Coord agent when context reaches 300k tokens mid-L3. Saves mid-L3 state, writes a continuation manifest, notifies the spawner (PD) and stops so a fresh Coord resumes. Max 3 respawns per Coord per 24h. Only at clean task boundaries, never mid-Executor-spawn or mid-ACK/NACK."
---

# /coord-respawn-self — Coord Context-Aware Self-Respawn

## When to Invoke

- **Mandatory:** when context reaches 300k tokens (subagent cap; CONTEXT_PCT_ALERT STOP line fires)
- **Proactive:** at a clean sub-task boundary within L3 when context > 250k tokens
- **Never mid-Exec:** do not invoke while an Executor is awaiting APPROACH or CHECKPOINT
  response — finish that exchange first, then respawn

## Respawn Counter Enforcement

Max 3 respawns per Coord per 24h. Uses the same counter mechanism as /respawn-self:
`~/.claude/state/respawn-counters/coord-{l3-name}-{pun}.txt`

```bash
COORD_ID="coord-{l3-name}-{pun}"
COUNTER_FILE="$HOME/.claude/state/respawn-counters/$COORD_ID.txt"
NOW=$(date +%s)
DAY=86400

mkdir -p "$HOME/.claude/state/respawn-counters"

if [ -f "$COUNTER_FILE" ]; then
  COUNT=$(awk '{print $1}' "$COUNTER_FILE")
  RESET_AT=$(awk '{print $2}' "$COUNTER_FILE")
  AGE=$(( NOW - RESET_AT ))
  if [ "$AGE" -ge "$DAY" ]; then
    COUNT=0
    RESET_AT=$NOW
  fi
else
  COUNT=0
  RESET_AT=$NOW
fi

if [ "$COUNT" -ge 3 ]; then
  echo "RESPAWN_BLOCKED: max 3 respawns reached for $COORD_ID in 24h."
  exit 1
fi

NEW_COUNT=$(( COUNT + 1 ))
echo "$NEW_COUNT $RESET_AT" > "$COUNTER_FILE"
echo "RESPAWN_OK: respawn $NEW_COUNT/3 for $COORD_ID"
```

If RESPAWN_BLOCKED: escalate to PD with current state — do not continue.

## Step 1 — Complete Current Work Unit

- Finish any pending APPROACH or CHECKPOINT gate exchange
- Do NOT start a new Exec spawn
- Reach a clean "N Execs ACKed, M pending" boundary

## Step 2 — Write Coord Continuation Manifest

Write to `{project}/memory/agents/coords/coord-{l3-name}-{pun}-respawn-{timestamp}.md`:

```markdown
# Coord Respawn Manifest — Coord-{l3-name}-{pun} — {timestamp}
Context at respawn: {PCT}%
Respawn count: {N}/3
L3 task: {l3-task-description}

## Sub-tasks Completed
- {Exec-name}: {status} — {1-line summary}
- ...

## Sub-tasks In Flight at Respawn
- {Exec-name or task}: {state — e.g. "APPROACH received, not yet approved"}
- ...

## Sub-tasks Not Yet Started
- {task}: {description}
- ...

## Scratch State
(copy current ## Status and ## Children tables)

## Next Action for Fresh Coord
{exact next action — e.g. "Spawn Exec-{X} for task Y, then Exec-{Z} for task W in parallel"}

## Active Blockers
{none | list}
```

## Step 3 — Notify Your Spawner

**Determine who your spawner is:**
- If you are an **execution Coord** (spawned by a PD, `reports_to: pd-coordinator`):
  → Send to "PD-{slug}" via SendMessage.

Message format (substitute the correct recipient):
```
Coord-{l3-name}-{pun}: COORD_RESPAWN TRIGGERED
Context at respawn: {PCT}%
Respawn count: {N}/3
L3: {l3-task-name} — {completed}/{total} sub-tasks done
Continuation manifest: {project}/memory/agents/coords/coord-{l3-name}-{pun}-respawn-{timestamp}.md
A fresh Coord session is needed to continue this L3.
Spawner should start a new Coord-{l3-name}-{pun} with the manifest path in the spawn prompt.
```

## Step 4 — Delete Scratch and Stop

Delete `{project}/memory/agents/coords/coord-{l3-name}-{pun}-scratch.md`.
Stop. The fresh Coord will read the manifest and continue.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.