Metrics
Watch live you-agent-factory factory-ops metrics for a Factory Session: engine activity, work-token lifecycle, optional resource usage, and the local operator dashboard.
Read Session Status
Factory metrics are scoped to one live Factory Session. Call GET /factory-sessions/{session_id}/status for a deeper runtime health read than session list or factory query. Replace {session_id} with a live session id from session list—often ~default on single-session hosts. The response carries the factory-ops metrics fields operators watch during a live run: engine activity and runtime status, work-token lifecycle buckets, and optional resource usage when pools are declared.Example status read against the default local host:
Read these fields in the status response:
| Field | Meaning |
|---|---|
| factoryState | Factory lifecycle phase — for example IDLE, RUNNING, PAUSED, COMPLETED, or FAILED. |
| runtimeStatus | Whether the engine is actively processing — IDLE, ACTIVE, or FINISHED. |
| categories | Token counts by lifecycle bucket: initial, processing, terminal, and failed. |
| totalTokens | Total tokens across categories. |
| resources | Optional resource usage entries when the factory declares resources. |
Open The Operator Dashboard
When the service was started via you or you run without quiet mode, open the local operator dashboard as the browser surface for the same live metrics. The dashboard shows live session selection, work position, and factory activity alongside CLI and API status reads.Default local dashboard URL (service started without quiet mode):
Watch Metrics Over Time
A one-shot status read is a snapshot. Time-ordered watching means reading the same factory measures across successive ticks so trends become visible. The teaching chart below plots work-token lifecycle buckets — processing, terminal, and failed — over successive status ticks, the same categories totals operators watch while a Factory Session runs.Work-token lifecycle buckets over successive status ticks
X axis: Status tick. Y axis: Token count.
- Processing
- Terminal
- Failed