Overview
shell lets an agent drive the screen you see. It sends one command to your app, the app runs it, and the agent gets the result. The agent never edits the page itself.
Not built, not live: this ships with AllternitOS Stage 1. If no app showing the session answers within 30 seconds, the tool returns no_app.
Actions
What the agent cannot do
- Approve anything. Approvals are yours, in the inbox.
- Open or close approval, login, evidence or emergency-stop screens. The system raises those.
- Install or copy an app without your answer. Every
install_appandfork_appasks, at every autonomy level.
expected_state_version from get_state so a command built on an out-of-date screen is refused with conflict.
How a command reaches your app
- The tool publishes
shell.command.requestedon the runtime bus. - The agent-sessions sync stream delivers it to the app as
shell_command_requested, withrequest_id,session_id,kind(commandorget_state),commandandtime. - The app runs it and answers
POST /api/v1/shell/:requestID/replywith the result. allternit-api passes the reply to the runtime’s/v1/shell/:requestID/reply; on Allternit Cloud, cloud-api relays it to your computer first. - The first reply wins. The runtime publishes
shell.command.replied, the stream delivers it asshell_command_replied(request_id,session_id,ok), and any other open window or device stops running that command. A later reply for the same request is ignored.
install_app or fork_app, the command carries check_id, the id of the approval you gave. The app refuses either action with approval_required when check_id is missing.