Repository navigation
Chrome CrewLedger
github-actions[bot] edited this page Nov 1, 2026
·
1 revision
A list of the child agents and background jobs, with their status and a Cancel action for running agents. It draws nothing when there are no agents or jobs.
import 'package:agent_kit/agent_kit.dart';
Ledger, 252 px: the agents and jobs as rows, each with its status. Running agents show a Cancel button.
Asking parent: an agent waiting on its parent is listed with the asking-parent status.
| Parameter | Type | Notes |
|---|---|---|
agents |
List<ChildAgent> |
Default []. The child agents. |
jobs |
List<BackgroundJob> |
Default []. The background jobs. |
now |
DateTime? |
The clock for elapsed time. |
onOpenAgent |
ValueChanged<ChildAgent>? |
Called when an agent row is tapped. |
onOpenJob |
ValueChanged<BackgroundJob>? |
Called when a job row is tapped. |
onCancelAgent |
ValueChanged<ChildAgent>? |
Cancel callback. Without it there is no Cancel button. |
cancelling |
Set<String> |
Default {}. Ids of agents being cancelled. Their Cancel button reads Cancelling… and is disabled. |
BbTheme roles read in crew_ledger.dart:
-
ink,muted,faint,hover,pressed -
dangerInk(the failed-job edge bar) -
colors.iconSecondary,radii.field,typeScale.ui - Each row's status is a
StatusMarkorStatusMark.work(crew_ledger.dart:91,:118). The Cancel button isKitButton(composer_parts.dart).
Does not read the size class. The ledger takes the width it is given.
- A cancel button's tooltip is
Stops this agent and any agents it started. - Its label is
Cancel(orCancelling…while cancelling). Its semantics label isCancel <task>, orCancelling <task>. - A failed job has a 3 px
dangerInkedge bar. - Keys:
ledger-agent-<id>,ledger-job-<id>,ledger-cancel-<id>.
- Gallery scene: the Components scene (
apps/gallery/lib/src/components_scene.dart). Specimens:ChromeSpecimensinapps/gallery/lib/components/chrome.dart(CrewLedger at 252 px), and the asking-parent specimen inapps/gallery/lib/components/context.dart. - Golden shots:
apps/gallery/test/component_shots_test.dartwritescrew_ledger(CrewLedger 1) andcrew_ledger_asking_parent(CrewLedger 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 ledger counts, lists and opens its entries", "Cancel is offered on a running agent only", "without onCancelAgent there is no Cancel", and "a cancelling agent shows it and cannot be cancelled twice". -
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 ledger.
Generated from docs/components/chrome/CrewLedger.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