RuneAgentAtoryn Studio

DocumentationConfigure

Terminal & background work

Run shell commands via terminal_use, manage background processes with process_control, track exit codes, and receive self-contained completion alerts.

Foreground and background

The agent chooses launch intent from task dependencies. If the next step needs a command's result, a normal foreground call can return it directly. If independent work can proceed, an explicit background launch returns a task ID immediately. A command's name alone does not determine which choice is correct.

A foreground command still running after the configured wait moves to background as the same process; it is not restarted. The factory wait is 120 seconds. A system-detected typed-input wait can cause an earlier handoff. Silence alone is not proof of an input prompt.

Shell and directory

Each call starts a new shell; cd does not carry over. The command's directory must be supplied for that call. The automatic shell uses an available supported shell appropriate to the operating system; advanced configuration can select an absolute installed shell path.

The command box names the shell that actually ran: $ for bash and zsh, PS> for PowerShell and > for Command Prompt. Changing shells changes command syntax. Shell commands run with the current permission mode and approved scope; terminal settings do not themselves authorize execution or access to a local service.

Read the actual report

Running
The process is still active, not a completed success.
Waiting for input
The system detected an input wait. Read the prompt before answering.
Completed / Failed
The process ended. Read its exit code and output; a successful exit only proves the command's own check.
Killed
The process was stopped. Do not assume partially completed work was rolled back.
Lost
Rune cannot confirm a normal final result, for example after losing the tracked runtime. It is not success.

When a task ends or a wait is detected, Rune notifies the agent with the report itself: which task, how it ended, its PID, how long it ran, the path of its log, and the output the agent has not been given yet. Nothing has to be asked for, so the same command is never launched again to recover its output; a shortened or incomplete capture says so in that line.

The saved log

Each background command writes one log file on your computer. It holds the finished output and, at its end, the current screen, so a question that has not printed a final newline is already in it. The log is plain text after the terminal's cursor moves are applied: a progress bar that redraws one line stays one line, and an answer typed onto a question's line replaces that line instead of repeating it.

The first report the agent reads from a background command starts at the beginning of the log, even when part of it was shown before; later reports return only new or changed output. A report that names only the process and its log had nothing new. Before Rune announces that a command waits for input, it writes the log to disk, so a restarted Rune can read it without the old conversation. That is not a guarantee against disk failure or a crash in the middle of a write.

Typed input

process_control types into a known background task, or stops it with every process it started. It does not wait for completion or return the next output. The submit choice can append Enter automatically, force Enter, or type text only. An empty text with Enter presses Enter alone.

Input-wait detection differs by platform: Linux detects typed-input waits, macOS detects hidden entries such as password prompts, and Windows does not detect these waits. A quiet task on the latter systems can still be waiting. Never guess a password or confirm a destructive prompt merely because the process is quiet.

Output bounds and lifetime

The factory returned-text cap is 30,000 characters. Separate capture limits are 8 MiB for foreground output and 100 MiB per background log; exceeding a capture/log bound can stop the command. The four-line transcript preview is only a display fold.

Closing the last Rune window stops active AI work. Background tasks can remain during the detached-session retention period, 60 seconds by default, then end. Use a deliberate operating-system service arrangement if you need an independent long-running service; do not assume a background Rune task survives forever.