# agent-liveness

Adopt this skill: https://proskills.md/skills/other/arjenvansilfhout-fluyt-plugins-fluyt-skills-agent-liveness

Page: https://proskills.md/skills/other/arjenvansilfhout-fluyt-plugins-fluyt-skills-agent-liveness
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: plugins/fluyt/skills/agent-liveness/SKILL.md
size: 8004
upstream: https://github.com/arjenvansilfhout/fluyt/blob/dev/plugins/fluyt/skills/agent-liveness/SKILL.md

```text
---
name: agent-liveness
description: >-
  Decide whether a dispatched background sub-agent is still working, has silently died, or has
  already handed back - without reading its transcript, and without killing a healthy one. Use when
  an agent has been quiet longer than its slice should take, when parallel worktree lanes look
  identical between two checks, before re-dispatching a suspected-killed agent, or when deciding
  whether to resume a returned agent or spawn fresh. Also states the two standing spawn defaults the
  diagnosis rests on - dispatch detached, and never watch what is running - so read it before
  spawning, not only when a lane has gone quiet.
---

# Agent liveness - is it working, is it dead, or has it already handed back?

A backgrounded sub-agent hands back once, at the end of its turn. Between spawn and that handback the
orchestrator is blind, and the two states look identical from outside:

- the agent is **working** - a long mandated recon, a slow build, a full test run, or editing files
  it already created; or
- the agent is **gone** - killed at the platform level, or dead on a terminal API error after retries.

Guessing wrong is expensive both ways. Kill a working agent and you throw away its context and its
half-finished slice; a clean `git status` is not a stall. Wait on a dead one and the lane stalls
indefinitely - and in a parallel drain, so does everything chained behind it.

There is a **third** state, and it is not a silence at all: the agent has **already handed back**,
and you are holding a report rather than diagnosing a gap. It is diagnosed differently - see *A
returned agent is not a running one* - and it is the costliest of the three to misread, because no
signal in this file can *confirm* it.

This is the **orchestrator's** half of the problem. The agent's half lives in `agents/developer.md`:
`developer` emits a one-line checkpoint before its first edit, and its report is terminal - it never
arms a wake-up intending to continue alone. Use that checkpoint when it exists; use this procedure
when it does not (`test-writer`, `preflight-reviewer`, custom spawns) or when it arrived and the
agent then went quiet.

## Dispatch detached, and never watch - the two defaults this skill owns

Both rules are **stated here, once**, because both govern the same blind window this skill
diagnoses. `ship-work-item` §1 keeps the operative default under its *Dispatch in the background*
and *Do not watch a background agent* headings and points here for the full rule; its §4 auto-merge
and approval-wait steps, and every other place that leans on either rule, are **applications** of
them rather than separate rules.

- **Dispatch in the BACKGROUND, detached rather than blocking - that is the default, and it includes
  preflight.** A synchronous dispatch makes the orchestrator unreachable for as long as the agent
  runs, so a maintainer's mid-turn correction queues behind it and arrives too late to redirect the
  work: a blocking spawn does not merely delay the human, it removes them from the loop.
  **State the trade honestly rather than pretending there isn't one:** the result arrives later, so you
  must actually collect it, and integration still serializes (`ship-work-item` §4), so backgrounding
  buys reachability, not concurrent merges. **A backgrounded preflight obliges a draft PR** - that
  pairing is not optional and is spelled out in `ship-work-item` §4. Where a client genuinely cannot
  dispatch detached, say so in your summary rather than silently reverting to blocking.
- **Do not WATCH a background agent, workflow, or process - collect its result when it reports.** A
  watch loop orphans on session teardown, burns a turn per pass against unchanged state, and - the
  reason that outranks both - makes you unreachable for as long as it runs, which is the very cost
  backgrounding exists to remove. **The prohibition is on *watching*, not on *waiting*** - **what
  occupies you**, not elapsed time. This needs stating precisely because the previous bullet calls a
  synchronous dispatch costly: a *blocking dispatch* holds the orchestrator for the agent's entire
  run (that bullet's concern, and why background is the default), while *elapsed time* on something
  you are simply not checking occupies nobody - different acts, not a contradiction, so this rule
  never forbids a synchronous dispatch. Check a background result when something specific needs it -
  the next turn that consumes it, or a silence out of proportion to the slice - never on a timer.
  **That second trigger is what the rest of this skill is for**: everything below is how to read a
  silence once one is worth a look.
- **A corollary of the second default, not a third: one bounded wait that ends your turn is
  *collecting*, not *watching*.** When a result has no next turn to land in - an orchestrator arming
  a merge as its last act, nothing else queued - start **one** background command that exits at the
  terminal state, **with a cap** (or your client's equivalent single-shot notification), then end
  the turn. It fits the rule above: your turn is over, so you stay reachable, and it wakes you
  **once** - never a loop you re-check turn after turn. **Its exit is a wake-up, never the result:**
  a clean exit or an expired cap says nothing about the state, so read the state yourself before
  acting, and a wait that dies with the session is no evidence of anything - the next turn that
  needs the result still checks it. Only a session the client re-enters can be woken; a delegate's
  handback ends it (*A returned agent is not a running one*). If the cap expires with nothing
  terminal yet, or your client gives no notification when a background command exits, report what is
  pending - e.g. "armed; post-merge steps pending" - to whoever coordinates the lane instead of
  starting another wait.

## A returned agent is not a running one

If the agent's most recent turn ended in a report and you have not re-entered it since, you are not
diagnosing a silence - you are holding a **handback**. None of the liveness signals apply to it; skip to
*When it returned - resume rather than re-dispatch*. Once you resume it, it is working again, and a
fresh silence after that is diagnosed with the signals below as normal.

The trap: an agent finishes a long step, arms itself a wake-up - a monitor, a poll, a "check back
when the run lands" - and returns its interim findings. **Nothing it scheduled can bring it back.**
Once an agent returns, its turn is over and only the orchestrator can re-enter that lane. The
wake-up it armed is not pending work and not evidence that the agent is working; it is a handback
with a follow-up attached, waiting on **you**. Left alone it produces a stall that reads exactly
like liveness - the agent believes it is waiting, you believe it is working, and nothing is running.

Two things make it hard to spot:

- **Not every message is a completion - and provisional wording does not make one non-terminal.**
  `developer` is *required* to emit a mid-run checkpoint before its first edit on every spawn
  **except a declared-synchronous, non-large-slice one** - dispatch is backgrounded by default (the rule
  stated above) - so an arriving message may well be a live agent mid-slice. Tell the two apart by
  **shape, not tone**: a checkpoint is a single line of plain progress
  output arriving before any edit; a handback carries the report structure `agents/developer.md`
  mandates - what changed, build, tests, invariants, skills consulted. Anything with that shape ended
  the turn, however tentative it reads and however firmly it promises to continue. Where your client
  separately signals that the task itself completed, that signal is terminal and the agent-authored
  text is not.
- **A parked agent and a slow one look alike under the signals below** - no fresh writes, no new work
  product, no message. The one signal that can separate them speaks only in the posit
```

## File: README.md
upstream: https://github.com/arjenvansilfhout/fluyt/blob/dev/README.md

````text
# Fluyt

**For agents who think "merged" means "done".**

Your agents write the code. Fluyt makes them finish the job.
Fluyt is a plugin marketplace that holds one plugin, `fluyt`, for Claude Code and Codex.
Install it in a repo and your agent sessions follow one tested ritual from issue to merge, instead of
improvising a new one every session.

> **Status:** MIT licensed. `CHANGELOG.md` holds the current version and every change.

## Why

Coding agents write code well. The work around the code is where they slip:

- the CHANGELOG entry is skipped, or the version bump is wrong;
- the release branch gets squashed and its per-item history is gone;
- the PR merges, but its issue stays open;
- a context reset wipes the session's state, and the next session starts by guessing;
- a background sub-agent goes quiet, and nobody can tell whether it is working or dead;
- ten repos with ten sessions, and no one place that knows what is running, what is blocked and
  what needs you.

Fluyt turns each of these into a written ritual, a specialist role or a guard hook. The process
lives in the plugin. Your repo keeps only its own facts.

## What you get

- **One work item, shipped end to end:** branch, implement, test, CHANGELOG and version, `Closes #N`,
  PR, auto-merge, then a check that the issue really closed.
- **A backlog and releases that stay honest:** tiered issues, a fixed selection order, and a release
  that is always a merge commit, never a squash.
- **Orchestration:** one main session that delegates to six specialist roles, runs parallel lanes in
  worktrees, and checks reports before trusting them.
- **Hand-overs that survive a context reset:** written from the tree, not from memory, so a successor
  can act without the transcript.
- **A cross-project hub:** one session that coordinates many project sessions, relays your decisions
  verbatim, and never runs a project's work itself.
- **Onboarding and re-sync:** start a new repo from scratch, adopt an existing one, or check a repo
  for drift after a plugin update.
- **GitHub or Azure DevOps**, and **Claude Code or Codex**, from one payload.

Fluyt ships itself with its own process.

## Quick start

**Requires** a GitHub repo with Issues and an authenticated `gh` CLI (or Azure DevOps with an
authenticated `az`, via `forge-azure-devops`), and a plugin-capable Claude Code or Codex client.
On Claude Code, the five hooks also need **Node.js 18 or later** on `PATH`: each is a `node -e`
one-liner, so without it their Node logic is inert, and each says so whenever it is skipped.
The full guide is [`docs/consumer-integration.md`](docs/consumer-integration.md).

### 1. Install the plugin

**Claude Code.** Merge this into your repo's committed `.claude/settings.json`, so anyone who opens
the repo is prompted to install it:

```json
{
  "extraKnownMarketplaces": {
    "fluyt": {
      "source": { "source": "github", "repo": "ArjenVanSilfhout/fluyt", "ref": "main" },
      "autoUpdate": true
    }
  },
  "enabledPlugins": { "fluyt@fluyt": true }
}
```

Keep `"ref": "main"`. The repo's default branch is `dev` (integration); `main` is the release branch.

Or install by hand (this tracks the default branch, `dev`; the JSON above is the way to pin `main`):

```text
/plugin marketplace add ArjenVanSilfhout/fluyt
/plugin install fluyt@fluyt
```

**Codex.**

```powershell
codex plugin marketplace add ArjenVanSilfhout/fluyt --ref main
codex plugin add fluyt@fluyt
codex plugin list
```

Then start a new session or task, so the client loads the new skills.

### 2. Adopt the conventions

Run `fluyt:adopt-conventions` in your repo (`/fluyt:adopt-conventions` on Claude Code,
`$fluyt:adopt-conventions` on Codex). It writes your **Project Facts** block, merges the
settings, `.gitignore`, `.gitattributes`, CHANGELOG and DECISIONS skeletons without overwriting your
own, interviews you for your repo's invariants, and proposes retiring local process files the plugin
now covers.

### 3. Ship something

```text
/fluyt:ship-work-item
```

On Codex: `$fluyt:ship-work-item`.

### Staying current

**Claude Code**, three steps, each needed: `claude plugin marketplace update fluyt` refreshes the
marketplace clone; `claude plugin update fluyt@fluyt` re-points the install record at the new
payload (for a repo with a project-scoped record, run it from that folder with `--scope project`);
then restart Claude Code, because a running session can keep the payload it loaded. **Codex:**
`codex plugin marketplace upgrade fluyt`, then `codex plugin add fluyt@fluyt`, then start a new
task. On either client, then run `adopt-conventions` in re-sync mode ("re-sync the conventions").
It proposes what changed and applies nothing without your yes.

## What's inside

Sixteen skills, six specialist roles, five Claude Code hooks and ten templates, grouped here by what
they get done.

### Ship one work item

| Skill | What it does |
| --- | --- |
| [`ship-work-item`](plugins/fluyt/skills/ship-work-item/SKILL.md) | The delivery ritual: issue, branch, implement, test, CHANGELOG and version, `Closes #N`, PR, auto-merge, close check. |
| [`versioning-and-changelog`](plugins/fluyt/skills/versioning-and-changelog/SKILL.md) | The CHANGELOG as the single source of truth, and the MINOR-versus-PATCH rule. |

### Backlog and releases

| Skill | What it does |
| --- | --- |
| [`backlog`](plugins/fluyt/skills/backlog/SKILL.md) | Pick the next item, file and re-tier issues, run a hygiene scan. Reads your label scheme from Project Facts. |
| [`release`](plugins/fluyt/skills/release/SKILL.md) | Promote the integration branch to the release branch with a merge commit, never a squash, and tag it if you use tags. |
| [`branch-protection`](plugins/fluyt/skills/branch-protection/SKILL.md) | Offer or audit rulesets, merge methods and required checks, plus a CI-trigger audit. |

### Orchestration and parallel lanes

| Skill | What it does |
| --- | --- |
| [`orchestrator`](plugins/fluyt/skills/orchestrator/SKILL.md) | The main session's posture: delegate, verify, loop. Routes to the skill that owns each step. |
| [`agent-liveness`](plugins/fluyt/skills/agent-liveness/SKILL.md) | Tell a working sub-agent from a dead one without reading its transcript; resume rather than re-dispatch. |
| [`scrum`](plugins/fluyt/skills/scrum/SKILL.md) | A retrospective on the agent team and the workflow. It proposes; you decide. |

### Hand-overs across context resets

| Skill | What it does |
| --- | --- |
| [`handover`](plugins/fluyt/skills/handover/SKILL.md) | A hand-over a successor can act on without the transcript, written from the tree and stored where Project Facts says. |

### A hub for many repos

| Skill | What it does |
| --- | --- |
| [`hub`](plugins/fluyt/skills/hub/SKILL.md) | One hub session coordinating many project sessions: a message protocol, verbatim decision relay, roster hygiene, a context watch and away mode. A relayed answer counts as approval only where you gave it. |

### Onboarding and upkeep

| Skill | What it does |
| --- | --- |
| [`adopt-conventions`](plugins/fluyt/skills/adopt-conventions/SKILL.md) | From scratch, first-time adopt, or re-sync after an update. Non-destructive. |
| [`install-refresh-plugin`](plugins/fluyt/skills/install-refresh-plugin/SKILL.md) | Install, refresh and diagnose the plugin on either client. |
| [`hook-authoring`](plugins/fluyt/skills/hook-authoring/SKILL.md) | Read before you write a Claude Code hook: output files, timezones, repo-root paths, silent failures. |
| [`report-upstream`](plugins/fluyt/skills/report-upstream/SKILL.md) | File a bug or feature request about the plugin itself. Strips provenance by default, runs from the main session only (sub-agents and worker lanes hand their draft up), and refuses when Project Facts `report-upstream` is `off`. |

### Other forges and clients

| Skill | What it does |
| --- | --- |
| [`forge-azure-devops`](plugins/fluyt/skills/forge-azure-devops/SKILL.md) | Translates the GitHub steps to `az`: Board
````
