Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
Mods API changes

What changed, release by release.

Every release's mods API against the one before it: which nouns, verbs, events and types it added, which it removed, and which changed shape, with the lines that moved. A removal is marked breaking; a change that took something out may break a mod; one that only added to a shape is marked extended.

Releases65 since 2.1.259
Newest2.1.330+35 added · 0 removed · 3 changed · 9 docs only
Machine readablechanges.jsonin pages: counts, and each release's items

v2.1.330

+35 added · 0 removed · 3 changed · 9 docs only since 2.1.329

The engine

  • added $.vcs noun

    Version control, whichever system keeps the folder. Each call rejects in a session with no disk.

  • added $.vcs.detect verb

    Returns the working copy a folder is in, the event vcs.detect; null when it is in none.

  • added $.vcs.diff verb

    Returns what changed in a working copy, the event vcs.diff; unknown where no hook can say.

  • added $.vcs.isolate verb

    Asks the hooks to isolate a folder: the event vcs.isolate. Nothing moves into the copy.

  • added $.vcs.list verb

    Lists the working copies of the repository holding path: the event vcs.list. The engine answers Git's worktrees for the repository the session is in, once the person trusted it, and none for any other.

  • added $.vcs.release verb

    Asks the hooks to take a working copy away: the event vcs.release.

  • added $.vcs.status verb

    Asks what a working copy holds: the event vcs.status. The engine answers for the trusted workspace's Git repository, its worktrees and this mod's own copies; for any other folder, { unknown }.

Events

  • added vcs.detect event

    Fires when the engine asks which version control system a folder uses; next(e) resolves to the working copy (VcsWorkingCopy) or null.

  • added vcs.detect result

    The working copy the folder is in, or null.

  • added vcs.diff event

    Fires when a mod asks what changed in a working copy, as /diff does where vcs.detect names a system other than Git; match it on vcs.

  • added vcs.diff result

    { base, files }, or { unknown } with the reason, null from core.

  • added vcs.isolate event

    Fires when a working copy is needed, before anything is made: for a subagent run with isolation: "worktree" (the Agent tool, a workflow's agent()), or for a session: by EnterWorktree, the --worktree flag, a Remote Control spawn in a worktree, or an app that is about to open one. A review reference (--worktree "#123", a URL) stays Git's, as does a sub-folder picked over Remote Control: no hook hears it. No vcs.* hook hears a name with a part that starts with a dash.

  • added vcs.isolate result

    { path, vcs, branch?, revision? }, or { deny }.

  • added vcs.list event

    Fires when the working copies of the repository holding path are asked for: EnterWorktree is to enter one by its path, a mod calls $.vcs.list, or a session recorded in a mod's copy is resumed after a restart.

  • added vcs.list result

    A list of { path, vcs, branch? }, possibly empty.

  • added vcs.release event

    Fires when the engine would take a working copy away: it read clean with nothing unpublished, or what it holds is to be discarded (isDiscard). Raised at the end of a subagent or a Remote Control session, by ExitWorktree and by the exit dialog. The session may still stand in its copy then: give a process another cwd.

  • added vcs.release result

    { isReleased: true, note? }, or { kept }.

  • added vcs.status event

    Fires when the engine asks what changed in a working copy and what removing it would lose: the subagent or the Remote Control session that worked there ended, ExitWorktree is to remove the session's, or the session is exiting inside it.

  • added vcs.status result

    { changes, unpublished, revision? }, or { unknown }.

Types

  • changed ButtonProps type may break

    The props of Button, every surface's pressable: an address, a label or children, the closure a press runs, and the styles a hover overrides.

        role?: 'dismiss';    autoFocus?: true;    hover?: TextHoverProps;    onPress: (e: UiPressArgument) => void;    onPress: ((e: UiPressArgument) => void) | ((e: UiPressArgument) => Promise<unknown>);};
  • changed EventCalls type extended

    The engine's own events as calls on $, one signature each: $.<noun>.<event>(input) resolves to its result, or to its stream.

        };    attribution: {        text: (input: AttributionTextInput) => Promise<AttributionTextResult>;    };    vcs: {        detect: (input: VcsDetectInput) => Promise<VcsDetectResult>;        diff: (input: VcsDiffInput) => Promise<VcsDiffResult>;        isolate: (input: VcsIsolateInput) => Promise<VcsIsolateResult>;        list: (input: VcsListInput) => Promise<VcsListResult>;        status: (input: VcsStatusInput) => Promise<VcsStatusResult>;        release: (input: VcsReleaseInput) => Promise<VcsReleaseResult>;    };    agent: {        offer: (input: AgentOfferInput) => Promise<AgentOfferResult>;
  • changed MarkdownProps type may break

    The props of Markdown, a block of markdown every surface draws as it draws an assistant reply's text: its own renderer, links, tables, fences.

        key?: string;    text: string;    dimColor?: boolean;    onLinkPress?: (link: PressedLink, e: UiPressArgument) => void;    onLinkPress?: ((link: PressedLink, e: UiPressArgument) => void) | ((link: PressedLink, e: UiPressArgument) => Promise<unknown>);    pressableLinks?: readonly string[];};
  • added VcsChange type

    One uncommitted change in a working copy.

  • added VcsDetectInput type

    The input of vcs.detect: the folder asked about.

  • added VcsDetectResult type

    What a vcs.detect hook returns: the working copy the folder is in, or null when it is in none.

  • added VcsDiffFile type

    One changed file of a vcs.diff answer. Its names are data to show, each of at most 4096 characters.

  • added VcsDiffInput type

    The input of vcs.diff; every key is pinned, so no hook passes another down.

  • added VcsDiffResult type

    What a vcs.diff hook returns: the changed files and base, a label to show for what they were compared with, or why they are unknown. A null unknown is core's: no hook answered.

  • added VcsIsolateInput type

    The input of vcs.isolate: who needs a working copy of its own, and what to make it from. Every field is pinned.

  • added VcsIsolateResult type

    What a vcs.isolate hook returns and what next(e) resolves to: the copy, or { deny: reason }, the spawn's or the tool's error.

  • added VcsListInput type

    The input of vcs.list: a folder of the repository asked about.

  • added VcsListResult type

    What a vcs.list hook returns and what next(e) resolves to: the working copies of the repository holding path, possibly none.

  • added VcsListedCopy type

    One working copy on this machine, as vcs.list answers it.

  • added VcsReleaseInput type

    The input of vcs.release: the working copy to take away, and why. Every field is pinned.

  • added VcsReleaseResult type

    What a vcs.release hook returns and what next(e) resolves to: { isReleased: true, note? }, or { kept: reason }, the copy left as it is.

  • added VcsStatusInput type

    The input of vcs.status: the working copy asked about. Every field is pinned.

  • added VcsStatusResult type

    What a vcs.status hook returns and what next(e) resolves to: what the copy holds, or { unknown: reason }, which keeps it.

  • added VcsWorkingCopy type

    One working copy, as vcs.detect answers it: which system keeps it, where it lies, and where it stands now.

9 docs only: reworded, same shape
  • Returns the machine the engine runs on: the system, kernel release and hardware as uname -s, -r and -m print them, and which of npm, yarn, pnpm, bun, deno and node are on the PATH.

  • Returns the repository the session runs in; null when the directory is not inside one.

  • Everything a classic hook event's answer can carry, named as the classic hook's JSON output names it; each event reads its subset (ClassicResultOf).

  • The time bounds every hook runs under, in milliseconds: the engine's own constants are typed by these members, and next.budget reads the live one.

  • Pointer type

    A press comes as a new pointer, after the others. down 1 with age 0 is its first frame, on the bare backdrop or over the app. A pointer that lifted stays up to a second with gone above 0. Check every pointer: an index doesn't keep naming the same one.

  • The plain-data props of each renderable component, as ui.render sees them under e.props; a hook rewrites them with next({ ...e, props }).

  • What $.session.machine() answers: the machine the engine runs on, as uname -s, -r and -m print it (on Windows, what the runtime reports in their place), and which of six developer tools its PATH holds.

  • What $.session.repo() answers: the repository's root and its origin remote, when the session is in one. A vcs.detect hook changes those two.

  • The input of tool.check: the tool, its arguments, the organization's ceiling if it set one, and on a real call its id and the loop's agentId.

v2.1.329

+29 added · 0 removed · 5 changed · 4 docs only since 2.1.328

Events

  • added agent.report event

    Fires before an agent's report reaches its parent, for each run that ends or is stopped. next(e) answers auto mode's review and delivers nothing.

  • added agent.report result

    { text, review, warning? } (the report to deliver) or { consumed }.

Types

  • changed EventCalls type extended

    The engine's own events as calls on $, one signature each: $.<noun>.<event>(input) resolves to its result, or to its stream.

        agent: {        offer: (input: AgentOfferInput) => Promise<AgentOfferResult>;        spawn: (input: AgentSpawnArgs) => Promise<AgentSpawnResult>;        report: (input: AgentReportInput) => Promise<AgentReportResult>;    };    session: {        start: (input: SessionStartInput) => Promise<SessionStartResult>;
  • changed PromptFillResult type may break

    What a prompt.fill hook returns and what next(e) resolves to: whether the text went into the prompt box.

    export type PromptFillResult = {    isFilled: boolean;    refusal?: 'no_composer' | 'dialog';    refusal?: 'no_composer' | 'dialog' | 'unanswered';};
  • changed PromptFilled type may break

    What $.prompt.fill resolves to: whether the box took the text, and the box afterwards (PromptBox) as the caller's own $.prompt.read() reads it.

    export type PromptFilled = {    isFilled: boolean;    refusal?: 'no_composer' | 'dialog';    refusal?: 'no_composer' | 'dialog' | 'unanswered';    text: string;    cursor: number;};
  • changed ThemeSetArgs type extended

    The argument of $.theme.set: one object of named attributes, so a later attribute is an addition and never a change of the call.

        backdrop?: ThemeBackdrop;    overrideColorScheme?: 'light' | 'dark';    colors?: ThemeColors;    sound?: ThemeSound;    style?: ThemeStyle;};
  • changed UiCopyResult type may break

    What $.ui.copy resolves to and what a ui.copy hook's { value } holds: whether the text reached a clipboard (isCopied), else why not.

        isCopied: true;} | {    isCopied: false;    reason: 'no-surface' | 'no-clipboard' | 'refused';    reason: 'no-surface' | 'no-clipboard' | 'unanswered' | 'refused';};
  • added AgentReportInput type

    The input of agent.report: one report of an agent, before it reaches the loop that waits for it.

  • What an agent.report hook returns and what next(e) resolves to: the text to deliver with the report's review, or { consumed: reason }.

  • What auto mode's hand-off review made of a report.

  • added ThemeAmbience type

    What plays on behind the session: 1 to 8 layers.

  • added ThemeBoxRule interface

    How the box around a part looks. Lengths are numbers of points.

  • added ThemeCue type

    A short sound: 1 to 8 layers that start together.

  • added ThemeFill type

    A background that isn't one flat color.

  • added ThemeFillGradient interface

    Colors that run across a part's box, as in a still backdrop.

  • added ThemeFillVector interface

    A drawing behind a part's words, as in a still backdrop.

  • added ThemeGenericFont type

    A font every device has. code is the app's own font for code.

  • How one hit starts and dies away.

  • added ThemeLayerMix type

    What every layer may say about how it sounds.

  • added ThemeMessageRule interface

    How a message looks. What it says of the words beats Text.

  • added ThemeNoiseDrone interface

    Noise without a break.

  • added ThemeNoiseLayer interface

    A layer that is one burst of noise.

  • added ThemeNoiseScatter interface

    Bursts of noise that fall at random, scatter times a second on average: 0.02 to 10.

  • added ThemeNoiseWave type

    Hiss to rumble, brightest first, and crackle: the ticks of rain on leaves, a fire or gravel.

  • added ThemeNote type

    A pitch: a note name such as C5, F#3 or Bb2, a number of hertz from 20 to 10,000, or 0 for a rest.

  • added ThemeSound type

    The sound attribute of $.theme.set: what the desktop app plays, on the person's own device, once they turn the theme's sound on.

  • added ThemeStyle type

    The style attribute of $.theme.set: how the desktop app draws the conversation's own rows.

  • added ThemeStyleColor type

    A color in style: any ThemeColor, or one of the four message colors that colors.inputs may give for each mode (ThemeColorInputs). Where the mode gives none, a bg- name draws as surface-2 and a text- name as text-primary.

  • added ThemeToneDrone interface

    Notes held together without a break.

  • added ThemeToneLayer interface

    A layer that plays its notes and ends, within 4 seconds.

  • added ThemeToneScatter interface

    Notes that fall at random, scatter times a second on average: 0.02 to 10.

  • added ThemeToneWave type

    What a note is played on.

  • added ThemeToolRule interface

    How a tool call's row looks: its box, and the color and generic font of its words.

  • added ThemeTypeRule interface

    How a part's words look. Lengths are numbers of points, and a property left out keeps the app's own value.

4 docs only: reworded, same shape
  • Sets the session's theme from one object of named top-level attributes, the whole theme: what a set leaves out is gone. backdrop is a scene, drawn behind the conversation by what ui.render answers for Backdrop: full window on desktop under its frosted panels, full screen on mobile under one veil (tint and opacity, not yet blur). Or it's a still ground, which a surface draws with no hook: a color, a gradient or a vector. { image } is refused, so redraw a picture as SVG. colors is a theme for a surface to paint itself with, where it reads one. With no scene, no ui.render hook is asked to draw. sound is what the desktop app plays once the person turns it on. style is how the desktop app draws messages and tool calls' rows. Display only: --resume brings none back and a plugin that unloads takes its own with it, so set it at session.start.

  • The Box props a hover may override, none of which moves the Box's siblings, and scope, which names the hover group the Box joins.

  • The Text props a hover may override (its colors and styles, not its wrapping) and scope, the hover group it joins; a Button's label too.

  • One mode's colors in ThemeColors: a six-digit hex color such as #1e1e2e under the name of each design system token the theme sets. The type checks the leading # alone.

v2.1.328

+10 added · 0 removed · 10 changed · 19 docs only since 2.1.327

The engine

  • Returns the machine the engine runs on: the system, kernel release and hardware as uname -s, -r and -m print them, and which of npm, yarn, pnpm, bun, deno and node are on the PATH.

Events

  • added session.machine event

    The argument of $.session.machine().

  • added tool.offer event

    Fires once per tool before a loop's first request, and again when its model calls the tool; next(e) resolves to { isOffered: true }.

  • added tool.offer result

    { isOffered }.

Types

  • changed AgentOfferInput type extended

    The input of agent.offer: one agent type, at the moment the engine offers it to the model.

        description: string;    source: string;    provider: Origin;    agentId?: string;};
  • changed EventCalls type extended

    The engine's own events as calls on $, one signature each: $.<noun>.<event>(input) resolves to its result, or to its stream.

            judge: (input: ToolJudgeInput) => Promise<ToolJudgeResult>;        run: (input: ToolCallInput) => Promise<ToolCallResult>;        describe: (input: ToolDescribeInput) => Promise<ToolDescribeResult>;        offer: (input: ToolOfferInput) => Promise<ToolOfferResult>;    };    command: {        run: (input: CommandRunArgs) => Promise<CommandRunResult>;
  • changed GlobNext type may break

    next in a hook on a glob or a negation: an overload per selected event, then one over their union for an e not yet narrowed.

        readonly signal: AbortSignal;    readonly is: <M extends PatternOver<N>>(pattern: M, e: unknown) => e is Frozen<Args<Extract<N, Selected<M>>>>;    readonly event: N;    readonly origin: Origin;    readonly origin: NextOrigin;    readonly trace: readonly TraceEntry<N, Args<N>, GlobNextResult<N>>[];    readonly budget: NextBudget;};
  • changed Next type may break

    The rest of the chain, as one hook receives it: made once per dispatch per hook, frozen; next(e) resolves to the downstream result.

        readonly signal: AbortSignal;    readonly is: <M extends PatternOver<N>>(pattern: M, e: unknown) => e is Frozen<S[Extract<N, Selected<M>>]>;    readonly event: N;    readonly origin: Origin;    readonly origin: NextOrigin;    readonly trace: readonly TraceEntry<N, E, O>[];    readonly budget: NextBudget;};
  • changed OpValueOf type extended

    What each call on $ answers (the value of its event's result), by event name.

        'session.usage': SessionUsage;    'session.version': SessionVersion;    'session.info': SessionInfo;    'session.machine': SessionMachine;    'turn.abort': void;    'prompt.read': PromptBox;    'prompt.paint': PromptPainted;
  • changed PluginRegisterInput type extended

    The input of plugin.register: one plugin the engine is about to load, with a hooks module or without one, read off its manifest and, where it has a module, its scanned source. Every field is pinned but provides, which only narrows.

        uses: PluginRegisterUses;    provides: PluginProvides;    unread: readonly (keyof PluginProvides)[];    hosts: PluginHosts;};
  • changed PluginRegisterUses type extended

    What a hooks module uses, as the host scanned its source before loading it: the same lists claude plugin validate prints and the host's rule reads.

            reads: readonly StateName[];        writes: readonly StateName[];    };    hosts?: {        named: readonly string[];        unread: readonly string[];    };};
  • changed PluginValidateReport type extended

    What claude plugin validate --json prints: a public contract, to which fields are added and in which none is renamed or retyped.

        manifest: PluginValidateFile | null;    contents: PluginValidateFile[];    provides: PluginProvides | null;    hosts: PluginHosts | null;    advice: readonly PluginValidateAdvice[];    directory: PluginValidateDirectory | null;};
  • changed StarNext type may break

    next in a * hook: the set of events is open at runtime, so e is unknown until next.is(pattern, e) narrows it to events it knows.

        readonly signal: AbortSignal;    readonly is: <M extends Pattern>(pattern: M, e: unknown) => e is Frozen<Args<Selected<M>>>;    readonly event: EventName;    readonly origin: Origin;    readonly origin: NextOrigin;    readonly trace: readonly TraceEntry<EventName, unknown, unknown>[];    readonly budget: NextBudget;};
  • changed ToolCheckInput type extended

    The input of tool.check: the tool, its arguments, the organization's ceiling if it set one, and on a real call its id and the loop's agentId.

        tool_use_id?: string;    agentId?: string;    ceiling?: ToolCheckDecision;    isCeilingUnread?: true;    op?: 'fs.read' | 'fs.list' | 'fs.write' | 'process.run' | 'process.spawn';    approver?: ToolCheckApprover;    isReadOnly?: true;};
  • added NextOrigin type

    What next.origin holds: who raised the dispatch (Origin), and whose code that is. Set by the host; an event's provider carries neither field.

  • added PluginHostSource type

    Where a host in PluginHosts came from, named as provides names the part. More types may be added, so a reader leaves room for one it does not know.

  • added PluginHosts type

    The network hosts a plugin's files and source name, and the parts that could reach others: drawn from provides, uses and what its author declares, with nothing dialed or run.

  • added SessionMachine type

    What $.session.machine() answers: the machine the engine runs on, as uname -s, -r and -m print it (on Windows, what the runtime reports in their place), and which of six developer tools its PATH holds.

  • added ToolOfferInput type

    The input of tool.offer: one tool of a loop's pool, at the moment the engine offers it to that loop's model. Every field is pinned.

  • added ToolOfferResult type

    What a tool.offer hook returns: whether the loop's model is offered the tool, in its tool list and at its call.

19 docs only: reworded, same shape
  • Spawns a subagent: the event agent.spawn, the same call the engine makes when the Agent tool starts one; the engine fills the rest.

  • Runs a slash command as if the person typed /command args: the event command.run, queued and run once the session is idle.

  • Fetches url through the host (never the plugin's own network) and resolves { status, ok, headers, text } once the body is read.

  • Submits a prompt: the event prompt.submit, the same call the engine makes for a typed prompt; a turn of its own, once the session is idle.

  • Compacts the conversation: the event session.compact with trigger plugin, the same call /compact makes, between turns.

  • Calls a tool: the event tool.call, the same call the engine makes for the model's tool calls, under a tool_use_id of its own.

  • Asks the user question in the engine's own AskUserQuestion dialog and resolves to the label they chose, or the text typed under "Other".

  • Compiles a WebAssembly binary and resolves with its WebAssembly.Module, to instantiate with the standard API or hand to emscripten's or wasm-bindgen's glue.

  • Fires when the engine offers an agent type to the model, in the agent listing and again at dispatch; next(e) resolves to { isOffered: true }.

  • Fires when a record is about to be logged to the destination e.to names: a built-in's $.telemetry.log, or the engine's own events.

  • Fires when the engine decides whether a tool call may run, after the tool.call and PreToolUse hooks and before the mode settles an ask.

  • What $.agent.register takes: an agent type this plugin defines, spelled as an agent definition in settings JSON is, plus its name.

  • What a command.run hook returns and what next(e) and $.command.run resolve to: the command's output text and the notes it leaves the model.

  • Options of $.http.fetch.

  • Origin type

    Who raised a dispatch, as next.origin holds it: the calling plugin's name and the tier it sits in; the engine reads engine in core.

  • The facts prompt.attachment pins under e.detail, by attachment type: what the engine computed for the row, as it rendered the row's text.

  • Tier type

    One of the chain's five tiers (TIERS), outermost first; on every next.trace entry, and what next.to(e, tier) names.

  • tool.check's input as $.tool.check takes it: the tool and its arguments; the call's id, agentId, ceiling, isCeilingUnread, approver and isReadOnly are the engine's to set.

  • What a tool.check hook returns and what next(e) resolves to: the verdict, why, and what stands behind it, never who answers it.

v2.1.327

+0 added · 0 removed · 0 changed · 3 docs only since 2.1.326
3 docs only: reworded, same shape
  • The input of plugin.register: one plugin the engine is about to load, with a hooks module or without one, read off its manifest and, where it has a module, its scanned source. Every field is pinned but provides, which only narrows.

  • Tier type

    One of the chain's five tiers (TIERS), outermost first; on every next.trace entry, and what next.to(e, tier) names.

  • The keys tool.call's input carries beside the tool's own arguments, none of which the tool sees (the engine strips them before the tool runs).

v2.1.326

+120 added · 3 removed · 30 changed · 64 docs only since 2.1.325

The engine

  • added $.agent.call verb

    Runs a tool as an agent's own call: the event agent.call, and beneath it tool.call in that agent's loop. $.tool.call is unchanged.

  • added $.agent.limits verb

    Returns how many agents may run at once, how deep they may nest and whether they can run in the background (AgentLimits), read at each call.

  • Returns the variables that name the session and this plugin, as its command hook gets them, to pass as a child's env; run and spawn set none of them.

  • added $.session.info verb

    Returns the session's transcript file, scratchpad, prompt id, agent type, config root, platform and hosting (SessionInfo), as they stand at the call.

  • added $.wasm noun

    WebAssembly, run in the module's own environment, where its hooks run.

  • added $.wasm.compile verb

    Compiles a WebAssembly binary and resolves with its WebAssembly.Module, to instantiate with the standard API or hand to emscripten's or wasm-bindgen's glue.

Events

  • added agent.call event

    The argument of $.agent.call(args, { signal }). A hook above may rewrite the tool and its input, and the call is then no longer its caller's own at tool.judge; agentId is pinned. The signal does not cross, it cuts the call.

  • added agent.limits event

    The argument of $.agent.limits().

  • added process.hookEnv event

    The argument of $.process.hookEnv().

  • added session.info event

    The argument of $.session.info().

  • added session.stop event

    Fires when the person presses Stop: Esc or Ctrl+C on a turn, a client's Stop, Ctrl+C at an idle prompt where it stops running scripts.

  • added session.stop result

    { isTurnRunning }.

  • added tool.judge event

    Fires when auto mode is about to ask its classifier about a call, after every rule, hook and check that only a person may answer.

  • added tool.judge result

    { decision, reason?, plugin? }.

  • added tool.run event

    Fires when a call has been allowed and is about to run: after tool.call, PreToolUse, tool.check and whoever settled an ask; never for a refusal.

  • added tool.run result

    { result, context? }, { deny }, or core's { ref, result }, read before any PostToolUse hook has had it.

  • added ui.pointer event

    Fires when the person clicks or taps the backdrop where no part of the app covers it. Only the hooks of the plugin that set the theme see it.

  • added ui.pointer result

    {}: the click was heard.

  • added wasm.compile event

    The bytes $.wasm.compile(source) is about to compile, and the file they were read from; path is identity, pinned.

Types

  • removed ThemeImage interface breaking

    A picture from the mod's folder, filling its box unless size and repeat tile it.

  • removed ThemeImageGround interface breaking
  • removed ThemeImageWire type breaking

    How a Theme answer names a ground's image: a surface pulls the bytes by id, and lays them out by size and repeat as the mod gave them. The bytes are the mod's own, so width and height, the size in the file's header before any EXIF rotation, are hints: a surface reads the file's header with its own decoder, decodes off the main thread, caps the pixels at 4096 on a side and, if it can't draw the picture, keeps the app's own ground.

  • changed AgentInfo type extended

    One agent loop of this session as $.agent.list() returns it: a subagent or a teammate.

        parentId?: string;    spawnedBy?: string;    name?: string;    kind: 'local_agent' | 'in_process_teammate';    taskStatus: 'pending' | 'running' | 'completed' | 'failed' | 'killed' | 'paused';    label: string;    startTime: number;    cwd: string;    model?: string;    effort?: ModelEffort | number;    contextWindowSize?: number;    tokenCount: number;    tokenSamples: number[];    lastRequest?: AgentRequest;    usage?: TurnUsage[];    cost?: SessionCost;    hasRow: boolean;};
  • changed AgentSpawnArgs type may break

    agent.spawn's input as the call takes it: what the Agent tool's caller says; the engine fills the rest.

    export type AgentSpawnArgs = Pick<AgentSpawnInput, 'prompt'> & Partial<Pick<AgentSpawnInput, 'description' | 'subagentType' | 'model' | 'name' | 'cwd'>>;export type AgentSpawnArgs = Pick<AgentSpawnInput, 'prompt'> & Partial<Pick<AgentSpawnInput, 'description' | 'subagentType' | 'model' | 'name' | 'cwd' | 'parentAgentId'>>;
  • changed BoxProps type extended

    The props of Box: the layout, position, margin, padding and border props of Ink's Box a tree may set, and the two of hover.

        borderDimColor?: boolean;    backgroundColor?: Color;    overflow?: 'visible' | 'hidden';    overflowX?: 'visible' | 'scroll';    display?: 'flex' | 'none';};
  • changed Elements interface extended

    Each surface's primitive tags and their prop types, by e.surface, for the surfaces the plugin was compiled against.

            Markdown: ElementConstructor<MarkdownProps>;        Progress: ElementConstructor<ProgressProps>;        Client: ElementConstructor<ClientProps>;        Shader: ElementConstructor<ShaderProps>;    };    mobile: {        Box: ElementConstructor<BoxProps>;…        Code: ElementConstructor<CodeProps>;        Markdown: ElementConstructor<MarkdownProps>;        Progress: ElementConstructor<ProgressProps>;        Shader: ElementConstructor<ShaderProps>;    };    vscode: {        Box: ElementConstructor<BoxProps>;
  • changed EventCalls type extended

    The engine's own events as calls on $, one signature each: $.<noun>.<event>(input) resolves to its result, or to its stream.

        tool: {        call: ToolCallOverloads;        check: (input: ToolCheckArgs) => Promise<ToolCheckResult>;        judge: (input: ToolJudgeInput) => Promise<ToolJudgeResult>;        run: (input: ToolCallInput) => Promise<ToolCallResult>;        describe: (input: ToolDescribeInput) => Promise<ToolDescribeResult>;    };    command: {…        attach: (input: SessionAttachInput) => Promise<SessionAttachResult>;        detach: (input: SessionDetachInput) => Promise<SessionDetachResult>;        measure: (input: SessionMeasureInput) => Promise<SessionMeasureResult>;        stop: (input: SessionStopInput) => Promise<SessionStopResult>;        end: (input: SessionEndInput) => Promise<SessionEndResult>;    };    telemetry: {
  • changed FsReadBytesOptions type extended

    The options of $.fs.read that ask for the bytes: the call answers { base64 }.

    export type FsReadBytesOptions = {    as: 'bytes';    offset?: number;    length?: number;};
  • changed FsReadCall type extended

    $.fs.read: the file's text, or with { as: "bytes" } its bytes as { base64 }; with offset or length, that range of it.

    export type FsReadCall = {    (path: string): Promise<string>;    (path: string, options: FsReadBytesOptions): Promise<FsBytes>;    (path: string, options: FsReadTextOptions): Promise<string>;    (path: string, options: FsReadOptions): Promise<string | FsBytes>;};
  • changed FsReadOptions type may break

    The options of $.fs.read: how it answers, and which bytes of the file.

    export type FsReadOptions = {    as: FsReadAs;    as?: FsReadAs;    offset?: number;    length?: number;    [Symbol.iterator]?: never;};
  • changed OpValueOf type extended

    What each call on $ answers (the value of its event's result), by event name.

        'session.identity': SessionIdentity;    'session.usage': SessionUsage;    'session.version': SessionVersion;    'session.info': SessionInfo;    'turn.abort': void;    'prompt.read': PromptBox;    'prompt.paint': PromptPainted;…    };    'config.list': ConfigRow[];    'agent.list': AgentInfo[];    'agent.limits': AgentLimits;    'agent.register': {        agent: string;    };    'agent.call': ToolCallResult;    'ui.toast': void;    'ui.status': void;    'ui.log': void;…    'http.fetch': HttpResponse;    'process.run': ProcessRunResult;    'process.spawn': ProcessSpawnResult;    'process.hookEnv': Record<string, string>;    'settings.read': Settings;    'env.get': string | undefined;    'env.set': EnvSetResult;    'wasm.compile': WasmBytes;};
  • changed PluginRegisterInput type extended

    The input of plugin.register: one plugin the engine is about to load, with a hooks module or without one, read off its manifest and, where it has a module, its scanned source. Every field is pinned but provides, which only narrows.

        root: string;    version?: string;    provenance: string;    requiredByOrganization?: true;    uses: PluginRegisterUses;    provides: PluginProvides;    unread: readonly (keyof PluginProvides)[];};
  • changed RenderComponent type may break

    Everything ui.render can draw: one name per component that has a render site; a matcher narrows on it.

    export type RenderComponent = 'AskUserQuestion' | 'UserMessage' | 'AssistantMessage' | 'ToolUse' | 'ToolResult' | 'ToolGroup' | 'ToolProgress' | 'CommandOutput' | 'Spinner' | 'TurnDuration' | 'InfoNotice' | 'SessionMode' | 'PromptHint' | 'AbovePrompt' | 'AbovePromptList' | 'Pane' | 'Placed' | 'Backdrop';export type RenderComponent = 'AskUserQuestion' | 'UserMessage' | 'AssistantMessage' | 'ToolUse' | 'ToolResult' | 'ToolGroup' | 'ToolProgress' | 'CommandOutput' | 'Spinner' | 'TurnDuration' | 'InfoNotice' | 'SessionMode' | 'PromptHint' | 'AbovePrompt' | 'AbovePromptList' | 'AgentRow' | 'ContextMenu' | 'Pane' | 'Placed' | 'Backdrop';
  • changed RenderElement type extended

    What a render hook returns, and what next(e) resolves to: a plain-data tree of elements (a Box or Text is a StyledElement), strings as children.

        props: SvgProps;    children?: undefined;} | {    type: 'Shader';    props: ShaderProps;    shader?: PluginStamp;    children?: RenderNode[];} | {    type: 'Progress';    props: ProgressProps;    children?: undefined;
  • changed RenderPropsOf type extended

    The plain-data props of each renderable component, as ui.render sees them under e.props; a hook rewrites them with next({ ...e, props }).

            scroll: SiteScroll;        view: SiteView;    };    AgentRow: AgentInfo & {        rowIds: string[];        columns?: number;        body?: string;        isHidden: boolean;    };    ContextMenu: {        row?: {            component: RenderComponent;            requestId: string;        };        link?: {            href: string;            text?: string;        };        selection?: UiSelection;        code?: {            text: string;            isBlock: boolean;        };    };    Pane: {        title: string;        isFocused: boolean;
  • changed SessionCost type extended

    What the session has cost, as /cost and the status line total it; on an agent (AgentInfo), its own requests' part of that.

    export type SessionCost = {    usd: number;    hasUnknownPrice?: true;};
  • changed SessionIdentity type extended

    What $.session.identity() answers: how the session is signed in, the address the model was handed and, under a managed pin, the account the session holds.

        organizationType?: string;    email?: string;    isVerified: boolean;    contextEmail?: string;    deny?: undefined;} | {    deny: string;…    organizationType?: undefined;    email?: undefined;    isVerified?: undefined;    contextEmail?: undefined;};
  • changed SessionMessage type extended

    One message of the transcript as $.session.messages() returns it.

        text: string;    toolUses: ToolUseSummary[];    toolResults?: ToolResultSummary[];    uuid?: string;    handle?: string;};
  • changed SessionMessagesAgentArgs type extended

    A $.session.messages call for the rows (SessionMessage) of the main conversation or of one agent's, whole or in part: no as.

    type SessionMessagesAgentArgs = {    agentId?: string;    as?: undefined;    last?: number;    after?: string;};
  • changed SessionMessagesApiArgs type extended

    A $.session.messages call for the Messages API form (ApiMessage) of the main conversation or, with agentId, of one of this session's agents'.

    type SessionMessagesApiArgs = {    as: 'api';    agentId?: string;    last?: number;    after?: undefined;};
  • changed SessionMessagesArgs type extended

    What $.session.messages(args) takes and a session.messages hook reads on e: whose conversation, in which form, and which part of it.

    type SessionMessagesArgs = {    agentId?: string;    as?: 'api';    last?: number;    after?: string;};
  • changed SessionMessagesMainApiArgs type extended

    A $.session.messages({ as: "api" }) call naming no agent: the main conversation, whose answer is always the messages (ApiMessage).

    type SessionMessagesMainApiArgs = {    as: 'api';    agentId?: undefined;    last?: number;    after?: undefined;};
  • changed SpeakOptions type extended

    Options of $.audio.speak.

    export type SpeakOptions = {    voice?: string;    signal?: AbortSignal;};
  • changed SpeakRequest type may break

    The argument of $.audio.speak(text, options) as the event carries it: the signal does not cross.

    type SpeakRequest = SpeakOptions & {type SpeakRequest = {    text: string;    voice?: SpeakOptions['voice'];};
  • changed TextProps type may break

    The props of Text: colors, styles, and the size, weight, face and digits each surface draws its own way. Colors are a theme key or a raw color.

        strikethrough?: boolean;    inverse?: boolean;    dir?: 'ltr' | 'rtl';    wrap?: 'wrap' | 'end' | 'middle' | 'truncate' | 'truncate-start' | 'truncate-middle' | 'truncate-end';    wrap?: 'wrap' | 'end' | 'middle' | 'truncate' | 'truncate-start' | 'truncate-middle' | 'truncate-end' | 'clip';    maxLines?: number;};
  • changed ThemeColorGround interface may break
        color: ThemeColor;    gradient?: never;    vector?: never;    image?: never;}
  • changed ThemeGradientGround interface may break
        gradient: ThemeGradient;    color?: never;    vector?: never;    image?: never;}
  • changed ThemeGround type may break

    A still ground behind the conversation: a flat color, a gradient or a drawing in paths. A scene draws what moves, and any other pattern. There is no picture ground for now, so redraw a picture as SVG.

    export type ThemeGround = ThemeColorGround | ThemeGradientGround | ThemeImageGround | ThemeVectorGround;export type ThemeGround = ThemeColorGround | ThemeGradientGround | ThemeVectorGround;
  • changed ThemeScene type may break

    A live scene: what ui.render answers for Backdrop, and how the surface frosts its panels over it.

        color?: never;    gradient?: never;    vector?: never;    image?: never;};
  • changed ThemeVectorGround interface may break
        vector: ThemeVector;    color?: never;    gradient?: never;    image?: never;}
  • changed ToolDescribeInput type extended

    The input of tool.describe: one tool's description, at the moment the engine first renders the tool's schema for the model.

        description: string;    isDeferred?: true;    provider: Origin;    mcpServer?: ToolMcpServer;};
  • changed TurnUsage type extended

    What a model turn, or one response inside it, cost as the API reported it: the four token counts (ModelUsage), the cache writes by lifetime and the model's id.

    export type TurnUsage = ModelUsage & {    ephemeral_5m_input_tokens?: number;    ephemeral_1h_input_tokens?: number;    model: string;};
  • added AgentCallArgs type

    The argument of $.agent.call: a tool, its arguments, and whose call it is.

  • added AgentCallOptions type

    Options of $.agent.call: what is no part of the call, so no hook on agent.call reads it on e.

  • added AgentLimits type

    What $.agent.limits() answers: the bounds the session's agents run under, as they stand at the call.

  • added AgentRequest type

    One request of an agent's loop (a turn.step's) as it went out, past caps, fallbacks and a hook's rewrite.

  • added Box type

    An out parameter: a function sets .v.

  • added Buffer type
  • The options of $.fs.read that ask for the text: the call answers a string, U+FFFD at an edge where the range cuts a character.

  • added Lanes type
  • added Lanes2 interface
  • added Lanes3 interface
  • added Lanes4 interface
  • added One type
  • added PI const
  • added Pass type
  • added Pixel type
  • added PluginHookEntry type

    One settings hook a plugin ships (hooks.json or its manifest's hooks): the classic event it stands on (PreToolUse), its entry's matcher when it names one, and what it runs.

  • added PluginProvides type

    What a plugin provides, kind by kind, as the host read it off the plugin's folder: the same lists claude plugin validate prints.

  • One thing claude plugin validate advises and no verdict counts.

  • What the plugin directory's checks found, in a validate report.

  • One finding of the plugin directory's checks.

  • One file of a validate report. It failed exactly when errors holds something; nothing else here is a verdict.

  • One error or warning of a validate report, as display text: cleaned and cut.

  • One hook at a gating site as claude plugin validate --json reports it: where it is written, what it is registered on, whether .catch follows.

  • One on(...) call of a hooks module, as validate read it.

  • A matcher, or a part of one, as validate read it off the source. anyOf is an array, or the literals a for...of registers a hook on in turn.

  • What a hooks module does, as validate read it off its source. An empty list and false mean nothing; every name is whole.

  • What a module's engine.create hook does to $ if it registers.

  • One figure for each class of GPU.

  • What claude plugin validate --json prints: a public contract, to which fields are added and in which none is renamed or retyped.

  • One shader file as claude plugin validate read it. The report's text is drawn from this; every name is whole.

  • A shader's worst-case cost in a window of 1512x945 points.

  • One thing a hooks module's $.wasm.compile calls compile.

  • One .wasm file a hooks module lists, as claude plugin validate reports it: which bytes they are, and what they ask for and offer.

  • added Pointer type
  • added Row type
  • added Scene type
  • added SessionInfo type

    What $.session.info() answers: what a settings hook's input says of the session that no other read on $.session does, and where the engine runs.

  • added SessionStopInput type

    The input of session.stop: what the person's Stop found.

  • What a session.stop hook returns and what next(e) resolves to: { isTurnRunning }, echoed by core; a hook's own value changes nothing.

  • added ShaderProps type

    The props of Shader, a scene desktop plays on the GPU: the shader file module names, fed values, over one Svg child, shown alone on mobile.

  • added Spot type

    a and b are the vertices', blended across the shape.

  • added Three type
  • added ToolJudgeInput type

    The input of tool.judge: tool.check's question about a real call. All of it is pinned.

  • added ToolJudgeResult type

    What a tool.judge hook returns and what next(e) resolves to: a verdict on one call, why, and whose it is.

  • added ToolMcpServer type

    The MCP server a tool comes from, as tool.describe reports it (ToolDescribeInput.mcpServer).

  • added UiPointerInput type

    The input of ui.pointer: what the pointer did on the backdrop, and where. Every key is pinned.

  • added UiPointerResult type

    What a ui.pointer hook returns and what next(e) resolves to: {}.

  • added WasmBytes type

    A WebAssembly binary as a hook on wasm.compile reads and answers it: base64, since only plain data crosses between environments.

  • added WasmCompileInput type

    What a hook on wasm.compile receives: the bytes about to compile, and the file they were read from when the call named one.

  • added WebAssembly namespace

    The standard API over the modules $.wasm.compile answers, frozen.

  • added Wide type
  • added atan const
  • added box function
  • added buffer function

    A texture that lasts between frames: reading it gives its last write. With no body it is an empty target for shapes. With no scale or size it is as sharp as the picture. To read itself, it names its type: const trail: Buffer = buffer({}, p => vec4(trail.sample(p.uv) * exp(-dt))).

  • added clamp const
  • added composer const
  • added coord const
  • added cos const
  • added dot function
  • added dt const
  • added dx const
  • added first const

    True on frame 0.

  • added fresh const
  • added fwidth const
  • added instance const
  • added int function

    Cuts toward zero and wraps, as x | 0 does.

  • added int type

    A 32-bit int that wraps: + - * & | ^ ~ << >> >>> with their JS meaning, * as Math.imul, shifts masked to 0..31. A whole number written beside an int is an int. int(a + b) names the result again.

  • added log const
  • added max const
  • added mix const
  • added mod const
  • added normalize const
  • added picture function

    What shows, premultiplied, over the Svg. Exactly one.

  • added pixel const
  • added pointerCount const

    0 to 4.

  • added pointers const

    A loop over these stops at pointerCount, and is charged for 4.

  • added px const
  • added quot const
  • added range function

    The whole numbers from from (or 0) up to, not including, to.

  • added res const
  • added scene const

    A picture of the Svg under the shader; as into, the picture itself.

  • added shader function

    The module's default export. Passes run in order, 24 at most with tables.

  • added shapes function

    Draws count vertices, instances times, onto the picture or a buffer. at is -1 to 1 across the target (a vec4 is divided by its w, and hidden when z is outside it). size is a point's pixels, 1 to 64. hide: true hides every shape the vertex is part of, and keeps its a and b out of the cost. paint answers a premultiplied color: vec4(rgb * a, a).

  • added sign const
  • added signed function
  • added size const
  • added smoothstep const
  • added sqrt const
  • added step const

    step(edge, x): 0 below the edge, else 1.

  • added still const
  • added table function

    Up to 256 rows of 1 to 4 numbers, kept as data. .at(i) clamps i. An 'int' row of several reads as a list of ints.

  • added table function
  • added time const

    Seconds since the start.

  • added trunc const
  • added turn const
  • added unsigned function
  • added values function

    The numbers the mod sets while it plays (Shader's values), each held to its range. A file with more than 8 names is refused.

  • added vec2 function

    Builds a vector from parts whose lanes add up, or from one number.

  • added vec2 type

    A vector is a number with lanes, so + - * / type-check, lane by lane, and a plain number goes to every lane. The result reads as number: name its width again with vec2(a + b), which the compiler proves. Lanes are xyzw or rgba, read and written in any order (c.rgb = vec3(0)), or by index (v[i]). Vectors copy.

  • added vec4 function
  • added vec4 type
64 docs only: reworded, same shape
  • Spawns a subagent: the event agent.spawn, the same call the engine makes when the Agent tool starts one; the engine fills the rest.

  • Speaks text with the platform's own synthesizer (say on macOS). Plain text.

  • $.clock noun

    The time and timers, each an event through the host: clock.now reads the time; clock.sleep, after and every wait until it has passed.

  • Sets the variable for this process and everything it starts after, or unsets it when value is undefined.

  • $.fs noun

    The file system as the engine's own process reaches it; a relative path is under the session's working directory, and text is UTF-8.

  • Reads a file and returns its text, or with { as: "bytes" } its bytes as { base64 }; with offset or length, that range of bytes alone.

  • Calls tool on one of the engine's connected MCP servers with the engine's own connection and credentials.

  • The plugin's directory (the one holding .claude-plugin/plugin.json), absolute.

  • Appends a row to a conversation of the session: the event session.append, the engine's own call for every row it keeps.

  • Returns how the session is signed in, and the account (organization, plan, email) where managed forceLoginOrgUUID lists it. No request is made.

  • Returns the transcript so far, one SessionMessage per user or assistant message; progress rows, $.ui.log lines and notices are not messages.

  • Returns when the session began, and the context window's fill, the rate-limit windows and the cost as the status line has them, itemized. The cost includes every mod's answered $.model calls, and is an estimate, not the bill (SessionCost).

  • Sets the session's theme from one object of named top-level attributes, the whole theme: what a set leaves out is gone. backdrop is a scene, drawn behind the conversation by what ui.render answers for Backdrop: full window on desktop under its frosted panels, full screen on mobile under one veil (tint and opacity, not yet blur). Or it's a still ground, which a surface draws with no hook: a color, a gradient or a vector. { image } is refused, so redraw a picture as SVG. colors is a theme for a surface to paint itself with, where it reads one. With no scene, no ui.render hook is asked to draw. Display only: --resume brings none back and a plugin that unloads takes its own with it, so set it at session.start.

  • Calls a tool: the event tool.call, the same call the engine makes for the model's tool calls, under a tool_use_id of its own.

  • Declares a tool the model can call from the next prompt on: the name, description and input schema of mcp__<plugin>__<name>.

  • Fires when the Agent tool, or a workflow script's agent() (e.workflow), is about to start an agent, its model not yet resolved.

  • The argument of $.audio.speak(text, { voice, signal }); the signal does not cross, it aborts the call.

  • Runs while $ is being built, once per load or reload of this plugin and before any other hook of it; next(e) resolves to $ built so far.

  • Fires once per hooks module about to join the chain, at load (the set folded and built, nothing swapped in) and at reload; core allows.

  • The argument of $.session.messages(args): {} for the main conversation, { agentId } for one of its agents, as for the form.

  • tool.call event

    Fires when the engine is about to run a tool. Each next(e) runs the hooks beneath, then core (the permission prompt, the tool itself).

  • Fires when the engine decides whether a tool call may run, after the tool.call and PreToolUse hooks and before the mode settles an ask.

  • Fires when a model turn begins, main's or a subagent's (e.agentId), before its first model call; next(e) resolves to { turnId }.

  • The input of agent.spawn: what is decided about an agent about to start, before its model is resolved.

  • What an agent.spawn hook returns and what next(e) resolves to: the started subagent's { model, agentId }, or { deny: reason }, refusing it.

  • One message of the conversation in Messages API form, as $.session.messages({ as: "api" }) returns it.

  • What a command.run hook returns and what next(e) and $.command.run resolve to: the command's output text and the notes it leaves the model.

  • What $.env.set resolves to and what an env.set hook's { value } holds: {} once the variable is set or unset, or why it was not.

  • FsBytes type

    What $.fs.read(path, { as: "bytes" }) resolves with: the file's bytes, base64, since only plain data crosses into a plugin's environment.

  • The time bounds every hook runs under, in milliseconds: the engine's own constants are typed by these members, and next.budget reads the live one.

  • What a hooks module exports: register, and nothing the loader reads besides.

  • One instruction file behind the claudeMd block: where it was read, its tier, its text as loaded, and the file that @-imported it if one did.

  • What one model call cost, as the API counted it: the four token counts in the API's spelling, summed over the call's responses when it made several.

  • What next(e) resolves to once e.tool is the literal T: on tool.call and tool.run the result typed for that tool; else O as declared.

  • On type

    Registers hook on the events pattern selects: one by name, every one under a namespace (classic.*), all (*), or all but some (!tool.*).

  • A classic.PermissionRequest answer's decision, as the classic hook's hookSpecificOutput.decision: allow (with a rewrite or rules) or deny.

  • What a plugin.register hook returns and what next(e) resolves to: { allow: true } from core, or { refuse: reason }.

  • What a prompt.context hook returns: the blocks the conversation carries, in order; one left out is not sent.

  • prompt.submit's input as a plugin's call takes it: origin, turnId and wait are the engine's to set, context the hooks' to attach.

  • One ui.render input, for a component narrowed to one surface.

  • session.append's input as a plugin's $.session.append(args) takes it: the row's kind and text, and the loop it joins.

  • What a session.append hook returns and what next(e) resolves to: the row as the session stored it, or { deny: reason } for a plugin's own call.

  • The input of session.measure: what $.session.usage() answers at this moment, and which of its units moved since the last measurement a hook saw.

  • $.session.messages: the main conversation's rows with no argument, with { as: "api" } its Messages API form; with agentId an agent's, or deny.

  • What $.session.messages resolves to when agentId names no conversation this session can read, or after no row to read on from: why, in deny.

  • What $.session.messages({ agentId, last, after }) resolves to: the messages (SessionMessage), or { deny } (SessionMessagesDeny).

  • One rate-limit window as the rate-limit notices read it.

  • Who is sending at session.send: the model through its SendMessage tool, or a plugin through $.session.send; stamped by the engine, pinned.

  • What $.session.usage() answers: when the session began, the context window's fill, the account's rate-limit windows and the session's cost.

  • The backdrop attribute of $.theme.set: what is behind the conversation. scene makes a live scene, and color, gradient or vector make a still ground. All of them are pure vector, with no embedded pictures or fonts.

  • One mode's colors in ThemeColors: a six-digit hex color such as #1e1e2e under the name of each design system token the theme sets. The type checks the leading # alone.

  • The argument of $.theme.set: one object of named attributes, so a later attribute is an addition and never a change of the call.

  • ThemeTiling interface

    How a drawing or a gradient lies in its box.

  • Tier type

    One of the chain's five tiers (TIERS), outermost first; on every next.trace entry, and what next.to(e, tier) names.

  • The input of tool.call and tool.run: the tool, the call's id, the tool's arguments beside them (e.command for Bash), and agentId in a subagent.

  • What a tool.call or tool.run hook returns and what next(e) and $.tool.call(input) resolve to: { result, context? } or { deny }.

  • What a tool.check hook returns and what next(e) resolves to: the verdict, why, and what stands behind it, never who answers it.

  • One tool as $.tool.list() returns it and a tool.list hook answers it.

  • One tool_result block of a user message.

  • One tool_use block of an assistant message, with its outcome once the transcript holds the call's tool_result (paired by tool_use_id).

  • What every turn.complete carries whatever its reason: the answer, the duration, the interrupt flag, the turn's id, its loop and what it cost.

  • The input of turn.start: the prompt a model turn begins with, the main loop's or a subagent's or teammate's run (agentId).

  • The input of turn.step: one model request inside a turn, at the moment the engine is about to send it; the bottom of the chain sends it.

  • One prompt.attachment input of every other type, the ones PromptAttachmentDetailOf does not name: the attachment's text alone.

Feedback