Repository navigation
Chrome CrewStrip
github-actions[bot] edited this page Nov 1, 2026
·
1 revision
A horizontal strip of chips, one per child agent or background job, that opens them. It draws nothing when there are no agents or jobs.
import 'package:agent_kit/agent_kit.dart';
Expanded, 1000 px: one chip per agent and job, with their titles ("Survey quota", "Map transitions" in the gallery data).
Compact, 390 px: the same chips in a strip that scrolls sideways. The third chip is cut off at the right edge, which is the scroll.
Asking parent: a child agent waiting on its parent. The gallery frame shows that state.
| Parameter | Type | Notes |
|---|---|---|
agents |
List<ChildAgent> |
Default []. The child agents. |
jobs |
List<BackgroundJob> |
Default []. The background jobs. |
now |
DateTime? |
The clock for elapsed time. |
agentTitle |
String Function(ChildAgent agent)? |
The chip title for an agent. |
jobTitle |
String Function(BackgroundJob job)? |
The chip title for a job. |
onOpenAgent |
ValueChanged<ChildAgent>? |
Called when an agent chip is tapped. |
onOpenJob |
ValueChanged<BackgroundJob>? |
Called when a job chip is tapped. |
BbTheme roles read in crew_strip.dart:
-
ink,hover,pressed,seam,colors.borderSubtle,colors.iconSecondary -
radii.pill(chip shape),typeScale.uiSmall,formFactor - Each chip's mark is a
StatusMarkorStatusMark.work(crew_strip.dart:53,:62).StatusMarkusesaskingParentfor an agent waiting on its parent (status/status_mark.dart:111).
- Height: 40 px, or 32 px on touch (
crew_strip.dart:46). - Chip height: 26 px, or 24 px on touch.
- Title maximum width: 180 px. Tag maximum width: 140 px.
- The strip scrolls horizontally with its scrollbars off. The compact crop shows the scroll.
- The strip's semantics label is the heading from
crewHeading(...), which readsStill runningorCrew. - Chip keys:
crew-agent-<id>andcrew-job-<id>. - Each chip is a tap target that calls
onOpenAgentoronOpenJob.
- Gallery scene: the Components scene (
apps/gallery/lib/src/components_scene.dart). Specimens:ChromeSpecimensinapps/gallery/lib/components/chrome.dart(1000 px and 390 px, withagentTitle: 'Survey quota'and'Map transitions'), and the asking-parent specimen inapps/gallery/lib/components/context.dart. - Golden shots:
apps/gallery/test/component_shots_test.dartwritescrew_strip_expanded(CrewStrip 1),crew_strip_compact(CrewStrip 2) andcrew_strip_asking_parent(CrewStrip 0 from the context specimens) toapps/gallery/test/goldens/shots/.scenes_golden_test.dartcovers the sheet ascomponents_1000_light.pngandcomponents_1000_dark.png. -
packages/agent_kit/test/chrome/chrome_test.dart: "the strip shows a chip per agent and job and opens them" and "the strip scrolls sideways when narrow". -
packages/agent_kit/test/chrome/chrome_golden_test.dart:chrome_crew_1000_<brightness>.pngandchrome_crew_390_<brightness>.pnginpackages/agent_kit/test/goldens/. -
packages/agent_kit/test/compositions/agent_workbench_test.dart(crew group) andpackages/agent_kit/test/transcript/child_question_test.dart(asking parent group) mention the strip.
Generated from docs/components/chrome/CrewStrip.md. Edit the file there; changes made on the wiki are overwritten.
Guides
- Package layout and pinning
- agent_kit_core
- Backend mapping
- agent_kit and the gallery
- Icon and README assets
Component sheets
theme
status
transcript
- ActivityGroupView
- AssistantProse
- ChildQuestionRow
- CodeBlock
- DiffView
- ExecOutput
- FileEditRow
- PlanChecklist
- ReturnLine
- SystemLineView
- TranscriptList
- UserBubble
composer
chrome
context
history
outline
workspace
compositions
providers