Let your coding agent press record

All articles

A coding agent fixing a bug in a desktop app usually works from what it can read: the logs, the code, the output of the commands it runs. The moment that matters, the window flickering or the button that greys out a second too late, happens on a screen nobody is recording.

AgentEyes, our screen recorder for Windows, can be driven by the agent itself. It is its own download, separate from DevThrottle, and the steps that use hosted AI run through the same DevThrottle account. The running app serves a small Control API on your own machine, and an agent with a terminal can start a recording, take screenshots while the bug happens, stop, and read back what was said, without anyone touching the tray icon.

Where it listens

The API binds to the loopback address, 127.0.0.1:7882 by default. Only programs on the same machine can call it, and that includes any agent you run there, which is the point. The calls in this post take and return JSON, so curl is all an agent needs.

Start by asking it what it can do. GET / returns a discovery document listing every endpoint, and GET /health answers when the app is up:

curl.exe -s http://127.0.0.1:7882/health
curl.exe -s http://127.0.0.1:7882/

Record the bug, not a description of it

A short recording session from an agent looks like this:

# what is the recorder doing, and what can it film?
curl.exe -s http://127.0.0.1:7882/status
curl.exe -s http://127.0.0.1:7882/devices

# start, using a preset you already saved
curl.exe -s -X POST http://127.0.0.1:7882/record/start \
  -H "Content-Type: application/json" --data-binary "{ \"preset\": \"Bug repro\" }"

# ...the agent drives the app to the failing step, then:
curl.exe -s -X POST http://127.0.0.1:7882/record/shot

curl.exe -s -X POST http://127.0.0.1:7882/record/stop
  • Presets do the setup. A preset you saved in the app supplies the monitor, audio source, camera and frame rate. Any field you send explicitly, such as screen or region, overrides the preset for that recording.
  • Screenshots mark the moment. POST /record/shot takes a screenshot during the recording, and GET /recordings/{id}/shots later lists them with how far into the recording each was taken.
  • Stop answers fast. The response comes back once the raw files are on disk. Mixing the audio, rendering the camera, transcribing and titling carry on in the background, so the agent is not left waiting on a long call.
  • Mistakes come back as answers. Starting a recording while one is running returns 409 with a short JSON error, an unknown preset or an impossible request returns 400, and an unknown recording returns 404. An agent can read those and correct itself.

Read back what happened

GET /recordings lists the library newest first. Once transcription has finished, GET /recordings/{id}/transcript returns the text and its segments, each with a start and end time. If you talked through the bug while it was recording ("there, the save button just went grey"), the agent now has your words lined up against the timeline and the screenshots. That is a much better brief than a summary typed afterwards from memory.

Screenshots outside a recording work too. POST /screenshot takes one of a given monitor, or a region of it, and returns the saved file's path, which is useful when the agent only needs one look at a window before and after a change.

What stays on your machine

The address decides who can call the API. It does not decide where every call's data goes, and the two are worth keeping apart. Recording, the library, screenshots and burning subtitles all run on your own PC. Turning a recording into a transcript, translating it and writing its title use DevThrottle's hosted AI through your signed-in account, so for those steps the audio or the text is sent to DevThrottle. Loopback also means anything that can run code on your PC can drive the recorder, which is exactly what makes local automation possible.

The endpoints used here, with their fields and error codes, are on the AgentEyes Control API page, and where recordings go is explained in the AgentEyes overview.

Talk to usBook a 20-minute call