← Back to Blog

Tuning the Harness: How Coral's Health Monitor and Analytics Let Agents Improve Operations

Coral's vision is to make observing and guiding what agents are doing easier for humans. A better model and CLI comes out every single day, but how users interact with model providers can be boiled down to a clean workflow with Coral—allowing you to pick the best model for each role based on price and performance without changing how you work.

That stable workflow matters most once a team of coding agents runs for hours on a shared repository. Multi-agent work rarely fails with a loud crash; it stalls quietly. An agent sits at a permission prompt, a review waits behind a busy teammate while another reviewer is idle, an agent replies in chat without putting a question in the Operator's Inbox, or a task runs three times longer than usual with no update. Fixed timers and polling loops make this worse: they burn tokens when nothing has changed, push agents to post filler updates just to reset a clock, and flood the board with duplicate notices.

In Coral (v2.1.5), we pair a tunable board health monitor with built-in analytics. Instead of hard-coding timeouts in source code, every health rule exposes typed settings over a local CLI and API (coral-board health settings), compares each agent against its own historical baseline, and logs every change. Here is how the health monitor works, how we evolved our harness from real team signals, and how you can apply the same pattern in your own agent workflows.


1. How the Health Monitor Works: Nudges vs. Judgment Items

Coral separates routine nudges from items that need an orchestrator's judgment. Both go through Coral's typing gate—so an agent is never interrupted mid-turn or at a dialog—and agents never poll the board.

Diagram of Coral’s health monitor and analytics loop in four steps: live signals from the board, hooks and git; the health monitor sending automatic nudges and ranked items; the orchestrator or operator inspecting, acknowledging or tuning; and verification through the settings audit log and analytics.
How Coral’s health monitor and analytics loop works.

First, Coral sends automatic nudges on its own (up to 20 per board per hour):

Second, every interval_min (10 minutes by default), Coral types a ranked health check (at most 4 KB) to the Orchestrator. When heartbeat_min is 0 (the default), it sends only when something changed. Each item starts with [ack <id>], the evidence, and a suggestion:

Coral’s team settings on the Health check tab: a Send health check switch that is on, the Look every setting at 10 minutes, Say all is well every at 0, a Send it to choice set to the orchestrator, and below them the Reviews and assignment settings.
The Health check tab in Team settings: the timing, the recipient and the review settings from this section. These are the settings as they look in Coral, not a live result.

Before interrupting a teammate, the Orchestrator can peek at its recent activity without waking it, or acknowledge an item so it stays off future checks until its state changes:

# Check an agent's progress without interrupting its turn
coral-board peek "Backend Dev"

# Mark a health item handled; it stays off the check until its state changes
coral-board health ack a4f91c2e

# List every open item from the last check, including items cut by max_items
coral-board health list

If a task waits on an outside event, the Orchestrator parks it (coral-board task park <id> --reason "...", up to park_limit, 3 by default). Parked tasks raise no health items and get no nudges.

Coral’s Settings dialog on the Teams and Chief page, with the Team health checks switch turned on; each team still turns its own check on in Team settings.
Settings, Teams and Chief: the Team health checks switch. It applies to every team, and each team still turns its own check on in Team settings.

2. Each Agent's Own Baseline Instead of Fixed Timeouts

A fixed 15-minute timeout is too noisy for a deep backend change and too slow for a quick check. Task times also have a long tail, where one big run skews a simple average.

Coral's deviation rule (deviations.on, on by default) uses medians and percentiles from each agent's own board history:

  1. Task duration (A): Over an agent's last ~30 completed tasks (or the team's numbers if the agent has under 5), Coral flags an in_progress task past max(2 × median, 90th percentile): > [ack 8c31d04a] Backend Dev: #118 has been in progress for 1 h 45 min; the usual is 35 min (median of its last 24, 90th percentile 52 min). Suggest: check on it

  2. Silence on a task (B): Agents post at different cadences. Coral measures the gaps between a task's claim and posts naming #<id>. With at least two gaps, it flags silence past 3 × median gap: > [ack 19b0e712] Frontend Dev: silent on #122 for 38 min; its usual gap between posts on it is 9 min (median of 4). Suggest: ask for a status

  3. Pairwise waits (C): When Agent X waits on Agent Y (coral-board wait), Coral checks the last 30 answered waits for that pair (requiring at least 3) and flags a wait past 2 × median.

Each deviation fires once at the threshold and again only at each doubling (2×, 4×, 8×). Counters survive restarts and clear when the task or wait ends.


3. Real Examples: How We Evolved the Harness from Board Signals

Running dozens of goals through the monitor showed us where rules misfired or caused extra posts. Instead of editing prompts by hand, we removed duplicate prompts and turned fixed thresholds into live settings with defaults matching existing behavior.

Example 1: Stopping the "Goal Looks Done" Echo Chamber

When a goal's tasks finished, Coral used to say so in three places at once: a 15-minute warning notice to the goal's driver, a goals_ready line in the health check, and a "Goal looks done" row in the Operator's Needs you inbox.

Looking at the board and the Team communication view, we saw agents posting extra updates—and even adding filler tasks—when a goal finished. The 15-minute notice read like an order to act, and the health check kept repeating it.

We cut three prompts to one:

Example 2: Adding a Floor to Fast-Agent Deviations

During release testing, QA Reviewer 2 ran a video check with timed comments. It took 22 minutes. Because QA Reviewer 2's recent history was mostly 1-minute checks, the deviation rule flagged it at 22 minutes against a 1-minute median.

Twenty-two minutes on a video check is not stuck work. We then added three keys to deviations (at defaults 0, 100, and 0 on our board):

We added these keys so a team with fast reviewers can set a floor—for example, 30 minutes—to suppress short-median false alarms:

coral-board health settings set deviations.min_age_min 30

Example 3: Exempting Status Replies from operator_wait

Coral's operator_wait rule catches a common stall: an agent says in a post or chat that it is waiting on the Operator, but forgets --ask "@Operator ..." or a "for review" file tag, so nothing reaches Needs you.

When our Orchestrator posted a status reply to the Operator noting which teammate held a task, the rule saw @Operator with no --ask and nudged the Orchestrator ten minutes later.

We then added operator_wait.on (default on), operator_wait.grace_min (1 to 120 minutes, default 10), operator_wait.chat_max_age_min (5 to 1440 minutes, default 60), and operator_wait.authors_exempt (up to 8 member names, empty by default on our board) so a team can exempt roles that post status updates to the Operator without asking a question:

coral-board health settings set operator_wait.authors_exempt "Orchestrator"

Example 4: Putting [ack <id>] First and Recovering Cut Items

When a busy check hit the 4 KB cap, a cut line ("Su...") could lose its trailing [ack <id>]. We moved [ack <id>] to the start of every item, added action_list.max_items (0 for as many as fit, up to 50; 0 by default on our board) so a team can cap one check's length, and added coral-board health list to print every open item—including any cut by max_items. Rules wired for verbosity and routing also expose <rule>.text (short, normal, long from fixed templates on unowned_tasks, goal_size, busy_no_task, and pool_review) and <rule>.to:

# Show every key, its value, default, range, and the last 7 days of changes
coral-board health settings show --since 7d

# Example: a team can cap each check and use short lines on a wired rule
coral-board health settings set action_list.max_items 10
coral-board health settings set pool_review.text short

Only the Orchestrator or the Operator on the local computer can change health settings; worker agents and remote requests are refused, bad values are rejected with the accepted range, and every edit is logged. Teams can also add custom scheduled checks (coral-board health check add) that run small scripts and print JSON lines; nothing runs until the Operator clicks Approve in Needs you on the local computer, where the script's text, SHA-256, arguments, schedule, and --may-write flag (off by default) are shown and snapshotted.


4. Watching the Effect in Coral Analytics

Coral's Analytics views in v2.1.5 (available locally and to the computer owner through Coral Hub) show where work slows down and whether a harness change helped—and let you compare models and CLIs by price and speed inside the same workflow:


5. How to Use This in Your Own Agent Workflows

Whether you use Coral or build your own agent harness, five habits make multi-agent operations quieter and more reliable:

  1. Start with a few clear signals. Watch structured state instead of guessing from prose: assigned but unclaimed, in progress with no update, waiting on a person outside their inbox, and working with no task.
  2. Use each agent's own baseline, not a fixed timeout. Compare against medians and 90th percentiles over the agent's last ~30 tasks and post gaps (max(2 × median, p90) for duration; 3 × median gap for silence), with a configurable floor (min_age_min) for fast agents. Alert once on crossing and again only at each doubling.
  3. Let an orchestrator agent tune thresholds through a guarded API, with every change logged. Expose typed, clamped settings (show, set, reset) restricted to the orchestrator or human operator, refuse unwired keys explicitly, use fixed text templates (short, normal, long), and log every edit (--since 7d).
  4. Acknowledge or park instead of forcing filler work. Put [ack <id>] at the start of every health item so handled waits stay quiet until their state changes, park blocked work, and let agents do nothing when a goal is done.
  5. Measure before and after. Track tasks done per human touch, messages per task done, inbox share vs. chat, and overlapping heavy runs. When a threshold is tuned well, chatter and manual step-ins drop while completed work holds steady.

Run your own agent team with Coral

Download Coral, open source. Runs directly on your machine.

Download Coral

Keep reading