Skip to content

dorshitrit/system

v1.0.0

Run commands, inspect files and manage applications on available OS targets; observe and control user desktops.

SYSTEM computer control

SYSTEM can observe and control the user's existing desktop alongside its command, file and application capabilities. It does not infer task intent, parse shell output into clicks, select browser brands or create a separate authenticated session.

Enable the SYSTEM plugin and its computer capabilities through the existing plugin configuration. Ask and Full retain exact-action approvals; Full+ retains its normal approval policy. OS accessibility, screen-recording and portal permissions still apply. An available shell or connected companion does not prove desktop readiness.

Model guidance

The manifest associates a short common policy with separate command, application and desktop action guides. The existing capability instruction projection selects only those referenced by the offered capabilities. These are plugin instructions, distinct from readable Knowledge Skills such as Desktop GUI Interaction. SYSTEM retains its Execution Agent route; no request-global computer context or new role-routing mechanism is added. Command guidance derives shell family and cwd rules from the captured request routes. It does not probe another host, expose internal shell paths or claim desktop readiness.

Application executable observations

Application discovery enriches only query/limit-selected catalog entries with an optional executableResolution. Its status is resolved, unresolved or ambiguous; a resolved entry supplies its registered source and executable path, while other outcomes supply a reason. Windows uses exact AppsFolder IDs; macOS reads the selected bundle's executable metadata; Linux resolves only supported absolute executable forms in the selected desktop entry. Complex launch commands remain unresolved. Names, PATH guesses and conventional installation paths do not establish identity.

Resolution is an observation of system metadata and a file, not a launch recipe, permission or proof of an application effect. Catalog id remains the identity accepted by system_launch, whose argument behavior is unchanged. Returned paths receive the same secret protection as other actionable identities. Existing tool results and older Companion responses without this optional field retain their meaning: missing resolution is unknown, not absence. Resolution metadata is optional within the existing result byte limit: oversized paths are withheld with output_budget_exceeded, or the optional field is omitted if needed to preserve the selected identities and coverage counts. Cancellation prevents new resolution work and propagates to running helper processes. No new persistence store, transport operation or replay is introduced.

Guidance updates ship with the Runtime. Executable resolution runs on the selected execution host; Store-installed Companions need a newer Companion package to gain this metadata. Existing compatible Companions continue without it. Updating the Runtime does not replace the installed Windows Store package.

Command working directory

On native Windows, system_command.cwd accepts the same logical paths as filesystem: . and ordinary relative paths use the request's agent-work root; workspace/... uses the configured workspace. The request-bound resolver checks these roots and resolves the full directory before exact-action approval. Approval, activity and execution use that same captured absolute path. Absolute paths retain their existing target-OS meaning and may be outside those roots.

The request root is also retained across approval resume, even if the configured agent-work root changes. The adapter does not rewrite the command or choose a tool or execution strategy. Linux/macOS, WSL interop and Companion targeting retain the existing absolute-cwd contract; no guest-to-host directory mapping is performed.

Local command output

Local system_command execution, including Windows through WSL interop, captures stdout and stderr to private files under the plugin state directory. Temporary raw disk storage is allowed inside this boundary. Once both streams reach natural EOF, SYSTEM's independent secret detector checks their full text before any output read or delivery. Suspected streams are replaced with [REDACTED]. An incomplete check, invalid UTF-8 or scanner failure withholds output, attempts to remove raw stream files and retains a safe process receipt.

There is no new total-output quota or truncation. Checking and final delivery still materialize text in memory. The existing SDK context-text contract lets the Runtime admit or compact the checked text using its normal model-context budget; even the compaction model receives only checked text. Small clean results are unchanged.

extensions["ai.abot.runtime"].settings.defaults.outputRetentionMs in the plugin's plugin.json controls retention; the default is seven days after capture completes. Cleanup protects active captures and removes expired captures during plugin initialization and periodic maintenance, including raw leftovers after a crash or interrupted cleanup. Removal is ordinary file cleanup, not guaranteed forensic erasure. Reads do not renew retention. Completed captures keep the retention recorded at creation across Companion reconnects and later configuration changes. Each capture has an opaque ID, byte counts and a saved process receipt; files are private implementation storage, not user-authored artifacts or model instructions. No wait/cancel operation or automatic command replay is added.

A storage failure before dispatch prevents the command from starting. A capture write failure stops observation of that command and reports incomplete output; external descendants are not assumed terminated. Delivery failures retain the capture receipt, recorded helper PID, process status and exit code when available. This does not grant a new model-facing operation for reading retained captures.

Application/target descriptions and launch results are checked before excerpts. Sensitive actionable catalog identities are withheld instead of replaced by a fabricated executable identifier. Input receipts retain their mechanical meaning.

Companion command output

Updated companions advertise host_secret_protection_v1 and system_command_output_v1. SYSTEM then uses private capture/read/close operations over the existing connection: the Companion stores checked streams in its private state directory using its own detector with the capture implementation, returns the process receipt, and serves 64 KiB byte chunks. SYSTEM verifies the capture ID, stream, offset, byte count and SHA-256 before delivering text through the existing context-text contract. UTF-8 characters may cross chunk boundaries. The model receives one tool result; transport chunks do not invoke a model.

Output references belong to the authenticated Companion connection. Transfers protect their captures from expiry until closed or disconnected; the configured SYSTEM retention then continues on disk. A failed transfer preserves the command receipt and never repeats execution. Companions missing protection or complete command capture fail before dispatch with an upgrade-required result; there is no unprotected legacy fallback. This transfer adds no model-facing tool, and final text delivery still materializes the streams in memory.

Shared connection

Use Home → Computer access for one installation shared with ABot Spark. ABot Spark collection remains a separate opt-in. Unpair computer revokes the connection while retaining saved insights. Native drivers and Companion lifecycle live in the Runtime's src/computer-access, consumed through the optional computer-access SDK facade; SYSTEM owns tool declarations and request adapters.

Accepted input receipts populate the Runtime's existing mutation-evidence contract for native input dispatch only. They do not verify navigation, page content or the user's task outcome. Partial/image failures preserve the accepted input evidence.

Model operations

  • computer_desktops: discover request-bound desktops, windows and per-operation readiness. Discovery invalidates earlier observation/window references before inspection, including when inspection fails. Native and companion destinations remain distinct even on the same OS.
  • computer_observe: capture the visible desktop and bounded accessibility content, or a smaller region selected inside the preceding image. Returns a temporary image and fresh observation/window references. Capture attempts invalidate the previous references; failed capture requires a usable new observation before input. A regional image establishes the coordinates for subsequent input. Occluded content is not recovered.
  • computer_act: click, move, drag, scroll, type literal text, press an explicit key chord or focus an observed window. Each operation requires the current observation, consumes that reference and attempts a new observation after dispatch. Input requires an observation no more than two minutes old. A successful post-action capture is already the next observation; callers can use its references without another capture.

Coordinates are image coordinates; the adapter maps them to its native coordinate space (physical pixels or logical points). Window/accessibility bounds accompanying an image use the same image coordinates. Discovery without an image labels its native coordinate space explicitly. Scroll deltas use signed wheel units: 120 is a conventional notch, positive right/down. Fractional wheel support and the application’s movement depend on the native backend and user settings.

Input receipts distinguish not dispatched, accepted, partial and unknown. Acceptance does not prove an application effect. Observed focus, session or geometry drift rejects an action; concurrent user input can still race with native dispatch. There is no transactional rollback or automatic replay. A failed post-action screenshot does not erase the injection receipt.

Within one Runtime process, observation/input on local routes for the same OS share a queue: native and companion transports may reach the same physical desktop. Desktop identities remain distinct. Separate Runtime processes and concurrent human input are not covered by this queue.

Execution environments

User desktopRuntime locationExecution route
WindowsNative WindowsNative Win32/UIA/PowerShell helper
WindowsWSLWindows executable interop, or the locally paired companion
Windows/macOS/LinuxDockerCompanion running in the host graphical login
macOSNative macOSNative Swift helper
Linux X11/WaylandNative LinuxNative Python helper for that graphical session

The companion connects to the Runtime's loopback address. Publish a container port on host loopback for this route. This feature does not enable LAN or Internet control, copy session credentials into a container or infer that a container desktop is its host desktop. Update an older companion from the current Runtime bundle if discovery reports computer_companion_upgrade_required.

Windows uses existing PowerShell 5.1/.NET, Win32 input, UI Automation and desktop capture. Secure/locked desktops and Session 0 are unavailable; integrity restrictions can reject input. macOS requires macOS 14+, Swift developer tools, Screen Recording and Accessibility grants. A signed precompiled helper is not bundled in this version.

Linux X11 uses Python 3, native X11/XTest and XRandR libraries (RandR 1.3+), an EWMH window manager and GI/Gio for session-lock status; structured accessibility requires pyatspi/AT-SPI. Wayland requires Python GI, the RemoteDesktop/ScreenCast portals, GStreamer with GstVideo and pipewiresrc, and a compatible compositor portal backend. Stable PipeWire serials are used when provided; a lost stream is never reconnected or rebound to a reused node ID within the request. The user selects one monitor per request; there is no portable global window inventory, focus or accessibility API. Capture requires a provably fresh frame; static streams can report linux_pipewire_fresh_frame_unavailable. Resolution changes invalidate the session. Linux/macOS scroll inputs require multiples of 120. Missing dependencies/permissions are reported per capability and are not installed or bypassed automatically. Native text injection never silently replaces the clipboard; unsupported key mappings fail explicitly.

Media and lifetime

Images use the generic SDK context.media.writeImage({ bytes, mimeType }) channel, separate from textual tool output. References are bound to the exact execution and request. Supported PNGs are bounded to 10 MiB each, four per result and 64 MiB per request. Metadata remains within the ordinary tool-result budgets. A companion sends 64 KiB private chunks through the existing bounded local protocol; bytes never enter model-visible JSON output.

Before frame/media retention, each owner checks desktop/window/accessibility text and diagnostic fields. Suspected text is masked and its associated image is withheld; input that already occurred retains its dispatch receipt. Ordinary images remain available. Pixel-only content is not inspected: OCR and additional installation dependencies are deferred. Version 1 is best-effort known-indicator protection, not a guarantee that an admitted image or text is free of secrets.

The Runtime stores images in request-owned memory, projects them only to consumers of the original tool evidence, and excludes them from history/provider traces. Approval-wait continuation snapshots may persist request-owned image bytes; the owner's checks therefore precede media admission, not merely model projection. Buffers and registered resources are disposed at request end or abort. A non-vision model receives an explicit image-input limitation and can still use available text observations. Companion frames are erased after transfer, replacement or close; abandoned native sessions have a bounded idle expiry and close on disconnection.

Validation boundary

Automated checks use fake providers, helper processes, protocol fixtures and native source compilation where available. They prove transport, identity, cancellation, image lifetime and projection invariants. Interactive acceptance on each actual OS, permission configuration, compositor and provider remains a distinct live check; unit checks alone do not establish all native integrations work on a user's machine.