CoworkkitWatch is the developer panel that shows what the agent perceives and did. It reads the same internal session state the on-screen button does (no new wire, no instrumentation on your side) and renders it as a floating, resizable panel over your app. In a dev build you mount nothing: the Coworkkit dev banner provides Watch for you.
It's the fastest way to answer the two questions every integration raises: does the agent actually see the surfaces and elements I declared, and did my actions fire, and gate, the way I intended?
Open it
In a dev build the Coworkkit dev banner provides Watch for you — open it from the banner's Watch control, or press ctrl+shift+k. There is nothing to mount.
You mount <CoworkkitWatch /> yourself only to configure it (the props below) or to run it in a production build for QA (enableInProduction) — the dev banner does not exist in production, so there is nothing to double up. In a dev build, prefer the banner's Watch and don't also mount your own. It ships as a deep import so it stays tree-shakeable: the panel and its code never reach a bundle that doesn't import it.
import { CoworkkitProvider } from "@coworkkit/react";
import { CoworkkitWatch } from "@coworkkit/react/watch";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<CoworkkitProvider tokenUrl="/api/coworkkit/session">
{children}
{/* Mounts only in development; ships nothing to a production build. */}
<CoworkkitWatch />
</CoworkkitProvider>
</body>
</html>
);
}Watch renders only in development, and it doesn't open on its own; it's a panel you toggle. Open it from the banner's Watch control, or press ctrl+shift+k. If you don't see the Watch control, you're almost certainly on a production build, where the dev banner and Watch are both gone by default. That's expected, not a missing feature; It's a dev surface (below) shows how to force it on when you need it.
Props
All optional. Mount it bare and these defaults apply:
defaultOpen?: boolean; // default false (closed); true starts it opened
position?: "bottom-left" | "bottom-right" | "top-left" | "top-right"; // default "bottom-left"
hotkey?: string; // default "ctrl+shift+k"
initialTab?: "timeline" | "catalogue" | "transcript" | "metrics"; // default "timeline" ("state" is accepted and resolves to it: the State strip is always pinned)
maxEntries?: number; // default 1000: cap on entries shown and exported
redact?: RedactProfile; // masking policy for transcripts and tool I/O
visibleTo?: () => boolean; // predicate over your own auth; false mounts nothing
enableInProduction?: boolean; // default false: the QA escape hatchvisibleTo is a function, and a function can't be passed from a Server Component, so mount a Watch that uses it from a client component (your own Providers, say) rather than straight in the layout.
What it shows
A pinned State strip across the top (session phase, mic, Hand-mode arm state, the active surface, session duration and idle time), plus four tabs:
- Timeline: the live event stream, turn by turn. Each action call, how it was gated (allowed, Hand-blocked, or held for a confirmation), and its outcome. This is where you watch an action actually fire, or catch the
needs_hand_modethat explains why it didn't. - Catalogue: the live declared-exposure snapshot. The current surface, every mounted element (including see-only ones), and the full action catalogue with each entry's
kindandcontrol. This is what proves the agent sees what you declared. It also marks the declared-vs-live distinction, so a snapshot taken before the agent joins isn't mistaken for "the agent already knows". - Transcript: the conversation, both sides, as the agent heard and spoke it.
- Metrics: per-turn latency, a turn table, and a session summary, for spotting a slow leg without reaching for a profiler.
It's a dev surface
Watch is gated to NODE_ENV === "development" by default. In a production build it mounts nothing, so leaving <CoworkkitWatch /> in your tree is safe. Two escapes exist for when you need it past dev: enableInProduction for a QA build, and visibleTo, a predicate over your own auth that must return true before anything renders (pair it with the redact policy to mask transcripts and tool I/O).
The header's copy and download buttons emit the whole session (state, timeline, transcript, metrics) as a single JSON blob. That's how you hand a teammate the exact observable state you're looking at: send them the export instead of narrating what you saw.