Agent Monitoring
Real-time monitoring of AI agent sessions with step-by-step progress tracking.
Overview
When the Play Agent runs, Lastest creates an agent session that tracks every step of the 11-step pipeline. You can monitor progress live from the dashboard via the activity feed.
Session States
| Status | Description |
|---|---|
| Active | Agent is currently executing steps |
| Paused | Agent is waiting for human input (plan approval, error resolution) |
| Completed | Agent finished all steps successfully |
Activity Feed
The activity feed provides real-time SSE (Server-Sent Events) streaming of agent progress:
- Step-by-step tracking -- see which step the agent is on and what it's doing
- Duration metrics -- how long each step took
- Artifact tracking -- tests created, builds triggered, diffs generated
- Error visibility -- see failures as they happen with full context
Event Types
| Event | Description |
|---|---|
| Agent step started | A new pipeline step begins |
| Agent step completed | A step finishes (with duration) |
| Test created | Agent generated a new test |
| Build triggered | Agent started a test build |
| Diff approved/rejected | Agent or user acted on a visual diff |
| Plan submitted | Agent proposed a test plan for review |
Session History
Past agent sessions are stored and viewable:
- See which sessions ran, when, and their final status
- Review the steps and outcomes of each session
- Track how many tests were generated and fixed
How It Works
- Play Agent starts -- a new
agentSessionrecord is created with all 11 steps initialized - Steps execute -- each step updates the session's
currentStepIdandstepsarray - Events stream -- activity events are emitted via SSE for the UI to consume
- Session completes -- final status and metadata are recorded
See also
- Creating Tests -- Play Agent details
- AI Configuration -- AI provider setup