Back to Agent Zero

Code Execution

plugins/_code_execution/webui/config.html

1.131.8 KB
Original Source

Code Execution

Configuration for the code execution tool. Controls the shell interface, SSH credentials, execution timeouts, and prompt/dialog detection patterns.

Shell Interface

Auto : SSH when running outside Docker, local TTY when dockerized. SSH : always connect via SSH. Local : always use local PTY.

AutoSSHLocal TTY

SSH Address

Hostname or IP of the SSH target. Leave empty to use the RFC URL from settings.

SSH Port

SSH port on the target host (default: 55022 for Docker RFC).

SSH User

Username for SSH login.

SSH Password

Password for SSH login. Leave empty to use the dev root password (via RFC).

Execution Timeouts

Timeouts (in seconds) for python, nodejs, and terminal runtimes.

First output timeout

Seconds to wait for the first output before returning control to the agent.

Between output timeout

Seconds to wait between output chunks before returning control.

Max execution timeout

Hard cap on total execution time in seconds.

Dialog detection timeout

Seconds of idle output before checking for dialog prompts.

Output Runtime Timeouts

Timeouts (in seconds) for the "output" runtime (waiting for long-running processes).

First output timeout

Seconds to wait for the first output.

Between output timeout

Seconds to wait between output chunks.

Max execution timeout

Hard cap on total wait time in seconds.

Dialog detection timeout

Seconds of idle output before checking for dialog prompts.

Detection Patterns

Regular expressions used to detect shell prompts and interactive dialogs. One pattern per line.

Prompt patterns

When any pattern matches the last output lines, execution is considered complete and output is returned immediately.

Dialog patterns

When any pattern matches after the dialog timeout, control is returned to the agent to handle the interactive prompt.