agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/task-alive-updates/SKILL.md

task-alive-updates

Skill9 starsChanged 3 months agoMITView on GitHub

Prepend your task prompt with: When used inside parallel-agents, each worker emits its own heartbeat prefixed with its worker ID:

  • Installs packages

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep long-running agent tasks visibly alive by emitting periodic heartbeat status updates to stdout.

    line 4
  2. Distinctive:

    Heartbeat interval: Every 30 seconds of inactivity, emit a status line.

    line 13
  3. Distinctive:

    NEVER suppress stdout during long operations

    line 49
  4. Very specific:

    Always call heartbeat_stop in a trap/finally pattern

    line 50
  5. Very specific:

    When used inside parallel-agents, each worker emits its own heartbeat prefixed with its worker ID:

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: task-alive-updates

Purpose

Keep long-running agent tasks visibly alive by emitting periodic heartbeat status updates to stdout. Prevents silent timeouts and gives the operator confidence the task is still progressing.

When to Use

  • Any task expected to run longer than 2 minutes
  • Background agent loops (e.g., parallel-agents, agent-harness)
  • CI-style workflows where no output = assumed dead

How It Works

  1. Heartbeat interval: Every 30 seconds of inactivity, emit a status line.
  2. Status line format:
    [ALIVE] <timestamp> | step: <current_step> | elapsed: <Xs> | status: <message>
  3. Completion signal: On finish, emit:
    [DONE] <timestamp> | elapsed: <Xs> | result: <success|failure>

Usage

In a shell script / agent harness

# Source the heartbeat helper
source .claude/skills/task-alive-updates/heartbeat.sh

# Start heartbeat (fires every 30s in background)
heartbeat_start "running implementation plan"

# ... do your work ...

heartbeat_stop "success"

In Claude task descriptions

Prepend your task prompt with:

<task-alive-updates interval="30" />
Emit [ALIVE] lines every 30 seconds while working on: ...

Implementation Rules

  • NEVER suppress stdout during long operations
  • Always call heartbeat_stop in a trap/finally pattern
  • The heartbeat message should reflect the current step name, not a generic string
  • Timestamps must be ISO-8601

Integration with parallel-agents

When used inside parallel-agents, each worker emits its own heartbeat prefixed with its worker ID:

[ALIVE][worker-2] 2025-01-15T10:23:45Z | step: test-suite | elapsed: 47s

Files

  • SKILL.md — this file
  • heartbeat.sh — bash helper (source this in shell-based agents)

Example Output

[ALIVE] 2025-01-15T10:21:00Z | step: installing-deps | elapsed: 30s | status: npm install running
[ALIVE] 2025-01-15T10:21:30Z | step: running-tests   | elapsed: 60s | status: 142/300 tests passed
[DONE]  2025-01-15T10:22:15Z | elapsed: 105s          | result: success

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.