Manage heartbeats

From evolution-foundation/evo-nexus · View interactive version

Manage heartbeats is an AI agent skill from the GitHub repository evolution-foundation/evo-nexus. List, enable, disable, or manually trigger heartbeats (proactive agents). Shows last 10 runs with status and cost. Use when the user says 'list heartbeats', 'show active heartbeats', 'enable atlas-4h', 'disable zara-2h', 'run atlas heartbeat now', 'which heartbeats are running', or wants visibility

How to use this skill

Skill file

Manage Heartbeats

Auth note: Use from dashboard.backend.sdk_client import evo — auto-handles URL + auth, no Bearer token needed in code.

Inspect and control existing heartbeats — list them, enable/disable, trigger manual runs, review run history.

When to use

Use this skill when the user wants to:

Don't use this to create new heartbeats — use /create-heartbeat.

Step 1: List all heartbeats

from dashboard.backend.sdk_client import evo
heartbeats = evo.get("/api/heartbeats")

Response shape per heartbeat: id, agent, interval_seconds, enabled, last_run_at, last_run_status, last_run_cost_usd, next_trigger_at.

Present to user as a table:

Step 2: Detailed view (one heartbeat)

from dashboard.backend.sdk_client import evo
hb = evo.get(f"/api/heartbeats/{hb_id}")

Includes last 10 runs with full fields: started_at, ended_at, duration_ms, tokens_in, tokens_out, cost_usd, status, prompt_preview, error.

Show the user the latest 3 runs, summarize patterns (always-skip / always-act / mixed).

Step 3: Enable / disable

from dashboard.backend.sdk_client import evo

# Enable
evo.patch(f"/api/heartbeats/{hb_id}", {"enabled": True})

# Disable (preserves data, just stops the dispatcher from scheduling)
evo.patch(f"/api/heartbeats/{hb_id}", {"enabled": False})

Warn the user:

Step 4: Run Now (manual trigger)

from dashboard.backend.sdk_client import evo
result = evo.post(f"/api/heartbeats/{hb_id}/run")

Response {"run_id": "...", "status": "queued"} within ~500ms. Execution happens async.

Tell the user:

Step 5: Paginated run history

from dashboard.backend.sdk_client import evo
runs = evo.get(f"/api/heartbeats/{hb_id}/runs", params={"limit": 50})

Useful to audit a heartbeat that was misbehaving historically. Filter by:

Step 6: Delete (rare)

Only if truly obsolete:

from dashboard.backend.sdk_client import evo

# Gracefully — returns 409 if currently running
evo.delete(f"/api/heartbeats/{hb_id}")

# Force-kill currently-running
evo.delete(f"/api/heartbeats/{hb_id}", params={"force": "true"})

Confirm with user before forcing. Disable first, then delete once runs stop.

Notes

Related: .claude/rules/heartbeats.md, /create-heartbeat.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.