list_agents
Retrieve a project's non-retired agents, ordered by recent activity, to identify who to message. Filter by activity within a set number of days and cap results with a limit.
Instructions
Return an array of non-retired agents in a project, most recently active first, with program, model, task and session details, including t3_thread for a T3 link. Use it to find who to message; whois returns one agent. active_within_days filters recent activity, not whether a session is running. Metadata and activity do not prove current session or model liveness. waiting_for_mail is true while a wake hook or bridge has a wait open on this server that began after the agent's last end report. false does not prove that no wait is open: a wait opened before the end report, or refused because its session ID names several registrations, shows false. session_ended_at is when the host's SessionEnd hook reported the end, or null if none is recorded or the agent has acted since. Neither proves a session is running or ended; confirm with the owning host before retiring another agent. limit caps this single result; there is no continuation cursor, so a full result may omit agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Positive page size; default 250, capped at 1000. | |
| project_key | Yes | Absolute path of the repository's primary checkout. | |
| active_within_days | No | Above 0; fractions allowed. Omit for every agent. |