Skip to content

CoworkRoutineRun

One run in cowork.routines.runs — metadata only, never the routine's output.

app?: string;

The package that owns the routine's code (its manifest name); absent for a loose routine.


chain?: string[];

The routines that called this run, outermost first; absent for a run nobody called.


durationMs: number;

error?: string;

kind?: "app" | "capability";

That package's kind, when the record says.


ok: boolean;

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?: string;

routineId: string;

runId?: string;

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?: string;
parent?: string;
title?: string;

taskId?: string;

The agent's task the run was made for.


ts: number;