Overview of the Listen & Direct Remote Agent Job System
mainThe Listen & Direct system enables remote agent execution across different machines over HTTP. It consists of two primary components:
apps/listen(The Server/Worker): A lightweight HTTP server and job manager that runs on the target machine (e.g., a Mac Mini). It accepts job requests, spawns autonomous worker processes that run agents (like Claude Code), and manages job state using YAML files on disk.apps/direct(The CLI Client): A command-line interface used to interact with alistenserver. It allows you to start, check, list, and stop jobs remotely.
Workflow:
- A client uses
direct startto send a prompt to thelistenserver viaPOST /job. - The server immediately returns a
job_idand spawns a background worker. - The worker executes the agent, which periodically updates a YAML file with progress and a final summary.
- The client polls
GET /job/{job_id}to retrieve the job's current state and results.