Repository navigation
Description
Summary
The CLI adds two opt-in screen recording tools, RecordStart and RecordStop (inference-gateway/cli#1293, implemented in inference-gateway/cli#1304). The agent can record the entire primary screen, a single window, or a region to an H.264 MP4, for an unattended audit trail or for tutorials. The docs site has no page for them yet.
What to document:
- Enabling:
computer_use.recording.enabledincomputer_use.yaml(off by default), orINFER_COMPUTER_USE_RECORDING_ENABLED=true. - Config keys:
max_duration(120s default cap, the recording finalizes itself),output_dir(default~/.infer/tmp/recordings),framerate(24), with theirINFER_COMPUTER_USE_RECORDING_*env vars. - Capture modes with examples:
{"mode": "screen"},{"mode": "window", "window": "app:Safari"},{"mode": "region", "region": {"x": 0, "y": 80, "width": 1280, "height": 720}}. Window targets:frontmost,app:<name>,pid:<number>, or an app name. - Behaviour:
RecordStopreturns path, duration and size, an active recording is finalized on CLI exit, aRECbadge shows in the chat status bar, and a running recording is listed in/tasksunder Screen Recordings. - One recording at a time, machine wide: while ffmpeg runs, the recording holds
~/.infer/run/screen-recording.lock, so aRecordStartfrom any otherinferprocess (another chat, a Desktop app session, a channel run) fails with an error naming the owner's pid. - Headless runs keep the recording alive: a running recording is a background job, so
infer headlesswaits for it (up toa2a.task.agent_mode_max_wait_seconds, default 300s) instead of exiting and cutting it short. The Desktop app stops it by sending auser_messageline on stdin, which reachesRecordStopin the same process. Channel, scheduled and heartbeat runs do not forward follow-up messages to a running process, so there a recording runs untilmax_duration. A recording that stops on its own queues a note, and the agent collects the file withRecordStop. - Approval:
RecordStartalways requires approval except inautomode. Chat shows the approval prompt; headless followsapproval_behaviour(IPC with--require-approval, the LLM judge inauto-with-judgemode, otherwise blocked).RecordStopfollowscomputer_use.approval:never(default) anddestructiverun it without a prompt, onlyalwaysasks. - Headless and AG-UI hosts (
infer headless --format ag-ui, used by the Desktop app): aCUSTOMeventscreen_recordingwith{"active": bool}when a recording starts or ends, the recording appears inbackground_taskswith kindrecording, andRecordStartarrives as anapproval_requestwhen run with--require-approval. A recording still running when the run ends is finalized after the terminal event, so hosts clear their indicator onRUN_FINISHEDorRUN_ERROR. - Requirements: a full ffmpeg with libx264 and the platform screen grabber (avfoundation / x11grab / gdigrab) on
PATH, e.g.brew install ffmpegorapt install ffmpeg. The ffmpeg the CLI auto-downloads into~/.infer/bincannot record yet: the build with libx264 and the screen grabbers is merged (feat: build ffmpeg with screen capture and libx264 binaries#31) but not in a binaries release (the latest is v0.4.0), so do not document the download as a fallback until one ships. Also the macOS Screen Recording permission (plus Accessibility for window mode), and X11 on Linux (Wayland is not supported yet).
Suggested location: a new cli-screen-recording.md page linked from cli.md (next to the other cli-* feature pages), with a short "Headless and AG-UI hosts" section. Source of truth in the CLI repo: docs/tools-reference.md#recordstart-and-recordstop-tools, docs/configuration-reference.md#screen-recording-computer_useyaml, and docs/ag-ui-output.md. The Desktop app's recording overlay is tracked separately in inference-gateway/desktop#320 - document it on desktop.md once it ships.
Acceptance Criteria
- A screen recording page documents enabling, the three capture modes with examples, and the RecordStop result
- The config keys, defaults and env vars are listed
- Per-OS requirements (ffmpeg, macOS permissions, X11 only) are covered
- The approval behaviour is covered: RecordStart always asks outside
automode (chat prompt, headless viaapproval_behaviour), RecordStop followscomputer_use.approval - The machine-wide one-recording lock and the headless keep-alive are explained, including how the Desktop app stops a recording versus channel and scheduled runs
- The AG-UI
screen_recordingevent and therecordingbackground job kind are documented for headless hosts -
cli.mdlinks to the new page
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(computer): add RecordStart and RecordStop screen recording tools (…
edenreich commentedon Sep 25, 2026
@claude Can you document this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 25, 2026
Claude finished @edenreich's task in 3m 2s —— View job •
docs/issue-745-20260925-1930• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-745-20260925-1930?quick_pull=1&title=Issue%20%23745%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23745%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented the screen recording tools
cli-*pages, pulled the CLI repo's tools / configuration / AG-UI references as source of truthcli-screen-recording.mdcli.md(feature list, a short Computer Use subsection, tool-category table, tmp tree row) and registered both sidebar entriesbun run format,bun run lint:md,bun run buildall passThe page covers enabling (
computer_use.recording.enabled), the config keys with defaults andINFER_COMPUTER_USE_RECORDING_*env vars, the three capture modes with examples, theRecordStopresult, per-OS requirements, the machine-wide lock, the headless keep-alive (Desktop stdinuser_messageversus channel/scheduled runs), the approval split betweenRecordStartandRecordStop, and the AG-UIscreen_recordingevent plus therecordingjob kind.As the issue asks, the ffmpeg auto-download into
~/.infer/binis not documented as a fallback - only a full ffmpeg onPATH. Worth a follow-up once a binaries release ships the libx264 build. The Desktop recording overlay is out of scope here.inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.9.17 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀