Progress

From BuilderIO/agent-native · View interactive version

Progress is an AI agent skill from the GitHub repository BuilderIO/agent-native. Report live progress from long-running agent tasks. Use when a task takes more than a few seconds, so the user can watch status in the runs tray instead of staring at a spinner.

How to use this skill

Skill file

Progress

Overview

progress_runs is the framework's "what is the agent doing right now" primitive. The agent starts a run at the top of a long task, updates it as work proceeds, and completes it with a terminal status. The UI renders active runs in a header-bar widget with a percent bar, current step, and spinner/check/X — live visibility into work that would otherwise be opaque.

Separate concern from notifications:

| | Notifications | Progress |

| ---------- | ----------------------------- | ----------------------------------------------- |

| Shape | One-shot event — "X happened" | Continuous state — "X is 45% done" |

| UI surface | Bell + toast | Runs tray with percent bar |

| Lifecycle | Dismissable (read/unread) | Running → terminal (succeeded/failed/cancelled) |

Common pattern: on completion, emit a notify() so the user sees the outcome when they're not actively watching the tray.

Tool

All progress operations go through a single manage-progress tool with an action parameter:

| Action | Purpose |

| ---------- | --------------------------------------------------------- |

| start | Mark the start of a long task. Returns a runId. |

| update | Update percent and/or current step. Call frequently. |

| complete | Mark terminal status: succeeded, failed, cancelled. |

| list | List recent runs (all or --active=true). |

Canonical Flow

manage-progress --action=start --title "Triage 128 unread emails" --step "Fetching inbox"
  → runId=abc

manage-progress --action=update --runId=abc --percent=25 --step="Classifying 32/128"
manage-progress --action=update --runId=abc --percent=75 --step="Drafting replies 97/128"

manage-progress --action=complete --runId=abc --status=succeeded
notify --severity=info --title="Triage done" --body="12 archived, 6 drafts ready to review"

Best Practices

Runs API

Mounted at /_agent-native/runs/* by core-routes-plugin. Read-only over HTTP — writes flow through the agent tools:

| Method | Route |

| -------- | ------------------------------------------ |

| GET | /_agent-native/runs?active=true&limit=50 |

| GET | /_agent-native/runs/:id |

| DELETE | /_agent-native/runs/:id |

UI Surface

Ships as <RunsTray /> at @agent-native/core/client/progress:

import { RunsTray } from "@agent-native/core/client/progress";

export function HeaderBar() {
  return (
    <header className="flex items-center gap-2">
      {/* … */}
      <RunsTray />
    </header>
  );
}

Inline header widget — mount next to the notifications bell. Shows a spinner icon + count badge when runs are active; click opens a dropdown with a live percent bar per run. Hides the trigger entirely when no active runs. Polls active=true every pollMs (default 3s).

Event Bus Integration

Two events emit on the bus so automations can react:

Example automation: _"when a run takes longer than 5 minutes, notify me."_

Related Skills

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.