Skip to content
GitHub (opens in a new tab)

TaskBrief

The brief a person hands an agent before it plans: a goal, one-line "done when" checks, optional spend, time and step limits, allowed tools, model and check-in level. Start, then one line.

stableOrganismcontracts/taskbrief.json

Preview

TaskBrief

The brief before the plan: goal, done-when checks, limits. Not PlanReview. Not Chat.

Master

Fill it in and Start. Start goes through starting to one line.

New task

One sentence on what the agent should do.

Done when

One line per check, up to 8. The agent is done when every check passes.

Limits

Optional. The agent stops when it reaches one.

Read sheetsEdit sheets

The agent can use only these.

Check-in level

Ask on high riskdefault

Acts on reads and small edits. Asks before deploys, deletes, spend, or anything outside the repo.

Usage

TaskBrief is what a person hands an agent before it plans. Each "done when" check is one line the result must pass; DoneCheck marks them after the run. The plan itself is a PlanReview.

Do's

  • a person sets up a task for an agent before it makes a plan
  • the result must pass agreed checks, which DoneCheck can mark later
  • the run needs hard caps on spend, time or steps

Don'ts

  • the agent already has a plan to approve — PlanReview
  • a free-text conversation with the agent — Chat
  • steering a run that is already going — AgentSteering
const [brief, setBrief] = useState({ goal: "", criteria: [""] });

<TaskBrief
  value={brief}
  onChange={setBrief}
  tools={[{ value: "read_sheet", label: "Read sheets" }, { value: "edit_sheet", label: "Edit sheets" }]}
  models={models}
  onStart={start}
  onSaveDraft={save}
/>

When to use

  • a person sets up a task for an agent before it makes a plan
  • the result must pass agreed checks, which DoneCheck can mark later
  • the run needs hard caps on spend, time or steps

When not to use

  • the agent already has a plan to approve — PlanReview
  • a free-text conversation with the agent — Chat
  • steering a run that is already going — AgentSteering

What an agent reads

import { TaskBrief } from "agentic-ds-kit";
must
  • the Card is aria-labelledby its title
  • every control has a label; Done when and Limits are fieldsets with legends
  • Goal and check errors sit under the control and are linked with aria-describedby
  • Start is disabled until there is a goal and one check; the reason is text and linked with aria-describedby
  • starting sets aria-busy and announces in a status region
  • the started row is named "Started: <goal>" and takes focus if focus was inside
  • motion is opacity and transform only, off under prefers-reduced-motion
defaults
  • title New task
  • currency USD
  • locale en
  • status draft
  • errorMessage Couldn't start the task.
stops if
  • Do not invent a local TaskForm, BriefCard or CriteriaList
  • Do not let Start run without a goal and at least one check
  • Start is the one solid primary; Save draft is outline
  • Do not use raw hex

From contracts/taskbrief.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
titlestringNoNew task—
valueobjectYes—{ goal, criteria: string[], spendCap?, minutes?, maxSteps?, tools?: string[], model?, autonomy? }. Limits are optional; null means no limit. 1–8 criteria; blank rows do not count.
onChangefunctionNo—(next) => void, the whole value on every edit.
toolsarrayNo—{ value, label }[] for the Tools MultiSelect. Empty hides it.
modelsarrayNo—ModelPicker models. Omit to hide the picker.
autonomyOptionsarrayNo—AutonomyDial stops for the check-in level. Default AUTONOMY_STOPS.
currencystringNoUSD—
localestringNoen—
statusdraft | starting | started | errorNodraftstarted folds to one line (goal · checks · cap). error keeps the form and shows a kit Alert.
errorMessagestringNoCouldn't start the task.—
onStartfunctionNo—(value) => void. Start, the one solid primary, disabled until there is a goal and one check; the reason sits beside it.
onSaveDraftfunctionNo—(value) => void. Save draft, outline. Omit to hide it.
  • Block
    →

    Plan review

    The go / no-go before an agent runs: edit its steps, see what will change, then approve, send back or reject.

  • Component
    →

    Chat

    Assistant panel with a header, a thread, and a composer.

  • Component
    →

    AgentSteering

    Redirect, pause or stop an agent while it runs: a steer composer with quick steers, Pause / Resume and Stop with an optional AlertDialog confirm.

  • Component
    →

    Card

    Framed tile with optional header, body, and footer actions.