Docs
AgentsPro

Agent RunNew

A long-running agent task live: state, elapsed time, current activity, steps, tokens and cost, Pause and Stop, then its result.

$npx swiftpieces add AgentRunBlock

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProPattern · AgentsiOS 17+Themed by Pro's design system
Type
AgentRunBlock
Inside
Status chip, Live elapsed time, Steps, tokens and cost, Pause, Resume and Stop
Install, with a Pro license
npx swiftpieces add AgentRunBlock
Depends on
Pro's Design System, which installs with it

The status section for an agent working in the background. It shows the state, a ticking clock, what the agent is doing now, a segmented step bar and the tokens and cost so far, with Pause, Resume and a confirmed Stop, and Notify me when done through the system permission. It settles into a summary with the outputs to open, or the reason and Retry when it fails.

Its SwiftUI source comes with SwiftPieces Pro: Agent Run in the Pro library.

All patterns →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro