agents

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package agents renders the horizontal subagent chip strip that sits just above the input. Each in-flight (or recently completed) subagent appears as one bracketed chip:

‹⠋ explorer› ‹▶ writer› ‹✔ reviewer›

Chips animate their leading glyph for active phases (thinking, executing, draining, …); terminal phases (ready_report, crushed) show their static glyph. Async subagents get a small superscript "ᵃ" so the user can see fire-and-forget vs. blocking.

Source of truth is the *daemon.DaemonState filtered by KindLocalAgent. The strip subscribes implicitly via the agent's KindStoreUpdate bridge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ds *daemon.DaemonState, width int, th *theme.Theme, frame int) string

Render returns the chip strip as a styled (possibly multi-line) string. width is the available column count; chips that don't fit wrap to a fresh row rather than truncating — losing visibility of a running agent is worse than spending an extra row.

frame is the spinner index from the App's State; animated chips pick their glyph from theme.SpinnerFrame(frame).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL