Subagent

A line for work the agent hands to a subagent. The run is the title, like "Ran the research agent"; open it for the tool calls the subagent made and what it found.

Usage

Subagent

Why does image optimization rerun on every deploy?

The cache is keyed on the commit SHA, so every deploy misses it and optimizes all 1,240 images again.

Image optimization reruns because its cache is keyed on the commit SHA, which changes on every deploy. Key the cache on a hash of public/images instead, and unchanged images will be skipped.

import {  Component,  DestroyRef,  ViewEncapsulation,  computed,  inject,  signal,} from '@angular/core';import {  ScBubble,

A Trace line, collapsible on the run, with a Trace of its tool calls inside — each as a Tool line — and its report under them.

Anatomy

import {  ScTrace, ScTraceLine, ScTraceIcon, ScTraceTitle,  ScTraceCollapsible, ScTraceCollapsibleTrigger, ScTraceCollapsiblePanelContent,  ScCollapsible, ScCollapsibleTrigger, ScCollapsiblePanel,} from '@semantic-components/ui';
<div scTrace>  <div scCollapsible scTraceCollapsible>    <button scCollapsibleTrigger scTraceCollapsibleTrigger>      <span scTraceLine>        <span scTraceIcon><svg siCircleCheckIcon></svg></span>        <span scTraceTitle>Ran the research agent</span>      </span>    </button>    <div scCollapsiblePanel>      <div scTraceCollapsiblePanelContent class="flex flex-col gap-3">        <div scTrace>          <span scTraceLine>… Ran grep -rn cacheKey scripts</span>        </div>        <p>The cache is keyed on the commit SHA.</p>      </div>    </div>  </div></div>

States

The subagent streams what it has done so far, then its final result, which replaces it: show "Ran" only once the result is final.

StateLine statusTitle
Starting, or a partial result"running" while the chat streamsRunning …
Final resultnoneRan …
Failed, or still running after the chat stops"error"Failed to run …

Examples

While it runs, the line is running and its content shows the tool calls so far; add the result when it finishes.

Running

Ran grep -rn cacheKey scriptsRunning sed -n 13,15p scripts/optimize-images.ts
import { Component, ViewEncapsulation } from '@angular/core';import {  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,  ScTraceIcon,

The task it was given at the top, its model and tools as badges, how long it ran after the title.

Task and tools

anthropic/claude-sonnet-4.5runCommand

Find out why image optimization reruns on every deploy.

Ran grep -rn cacheKey scriptsRan sed -n 13,15p scripts/optimize-images.ts

The cache is keyed on the commit SHA.

import { Component, ViewEncapsulation } from '@angular/core';import {  ScBadge,  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,

RTL

شغّل grep -rn cacheKey scriptsشغّل ls public/images | wc -l

مفتاح الذاكرة المؤقتة هو معرّف الإيداع، فيُعاد تحسين كل صورة.

import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation } from '@angular/core';import {  ScCollapsible,  ScCollapsiblePanel,  ScCollapsibleTrigger,  ScTrace,  ScTraceCollapsible,  ScTraceCollapsiblePanelContent,  ScTraceCollapsibleTrigger,

API reference

See the Trace.