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
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- router/CLAUDE.mdCLAUDE.md
- .agents/skills/llms.txtllms.txt
- agent-harnessSkill
- auto-fixSkill
- brain-dumpSkill
- industrial-brutalist-uiSkill
- changelog-enforcerSkill
- checkpoint-strategySkill
- context-primeSkill
- cooldown-resumeSkill
- council-reviewSkill
- data-quality-auditSkill
- debug-tracerSkill
- dependency-auditSkill
- deslopSkill
- docs-syncSkill
- duplicate-threadSkill
- email-triageSkill
- fabric-patternsSkill
- feature-flagSkill
- git-hygieneSkill
- graphifySkill
- implementation-plannerSkill
- insightsSkill
- issue-resolverSkill
- learn-ruleSkill
- local-ai-querySkill
- lr-schedule-advisorSkill
- minimalist-uiSkill
- modularity-reviewSkill
- full-output-enforcementSkill
- parallel-agentsSkill
- parallel-worktreesSkill
- prompt-librarySkill
- prompt-transparencySkill
- pro-workflowSkill
- redesign-existing-projectsSkill
- release-readinessSkill
- replay-learningsSkill
- repo-memory-updaterSkill
- repowise-intelligenceSkill
- researchSkill
- resource-panelSkill
- risky-module-reviewSkill
- sandboxed-execSkill
- scope-guardSkill
- self-improveSkill
- session-handoffSkill
- skill-composerSkill
- smart-commitSkill
- high-end-visual-designSkill
- stitch-design-tasteSkill
- system-prompt-auditSkill
- task-scoperSkill
- design-taste-frontendSkill
- test-first-executorSkill
- The first 60 shown.
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
- Distinctive: line 4
Keep long-running agent tasks visibly alive by emitting periodic heartbeat status updates to stdout.
- Distinctive: line 13
Heartbeat interval: Every 30 seconds of inactivity, emit a status line.
- Distinctive: line 49
NEVER suppress stdout during long operations
- Very specific: line 50
Always call heartbeat_stop in a trap/finally pattern
- Very specific: line 56
When used inside parallel-agents, each worker emits its own heartbeat prefixed with its worker ID:
≈ “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.
Files
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
- Heartbeat interval: Every 30 seconds of inactivity, emit a status line.
- Status line format:
[ALIVE] <timestamp> | step: <current_step> | elapsed: <Xs> | status: <message> - 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_stopin 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: 47sFiles
SKILL.md— this fileheartbeat.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: successDoes 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
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.

