CoworkRoutineRun
One run in cowork.routines.runs — metadata only, never the routine's output.
Properties
Section titled “Properties”app?: string;The package that owns the routine's code (its manifest name); absent for a loose routine.
chain?
Section titled “chain?”chain?: string[];The routines that called this run, outermost first; absent for a run nobody called.
durationMs
Section titled “durationMs”durationMs: number;error?
Section titled “error?”error?: string;kind?: "app" | "capability";That package's kind, when the record says.
ok: boolean;principal?
Section titled “principal?”principal?: | { kind: "owner";} | { id: string; kind: "agent"; name: string;};Who ran it: the owner (a person, a pane, a schedule) or an agent signed in with its own login.
resultPreview?
Section titled “resultPreview?”resultPreview?: string;routineId
Section titled “routineId”routineId: string;runId?
Section titled “runId?”runId?: string;source?
Section titled “source?”source?: string;What started it — the coding agent or the source (claude-code, cli, app, …).
task?: object;A task's own record (an agent starting or finishing one): its title and goal, or its outcome.
goal?: string;outcome?
Section titled “outcome?”outcome?: string;parent?
Section titled “parent?”parent?: string;title?
Section titled “title?”title?: string;taskId?
Section titled “taskId?”taskId?: string;The agent's task the run was made for.
ts: number;