Skip to content

CLI Execution

The shell tool lets agents run shell commands on the server. Commands execute in /bin/bash within a sandboxed environment with configurable restrictions on filesystem access, network, and execution time.

Agents use the shell tool when they need to:

  • Run code (compile, execute scripts, run tests)
  • Process data with command-line utilities
  • Install packages or manage files
  • Interact with APIs via curl or similar tools
ParameterTypeRequiredDescription
commandstringyesThe shell command to execute

On Linux, shell commands run inside a Landlock sandbox that restricts:

  • Filesystem access: limited to the agent’s workspace directory
  • Network access: controlled per agent
  • Execution time: limited by timeout (default: 30 seconds)

Each agent can have its own sandbox configuration:

SettingDefaultDescription
network_accesstrueAllow outbound network connections
allowed_network_destinations[]Specific hosts to allow
timeout_secs30Max execution time
  • Linux: full Landlock-based sandboxing
  • macOS: limited sandboxing (no Landlock support)
  • Other: no-op sandbox (commands run unrestricted)

Set FRONA_SERVER_SANDBOX_DISABLED=true to turn off sandboxing entirely. This is not recommended for production deployments.

Shell commands run in the context of the agent’s workspace. The working directory is set to the workspace path, so agents can read and write files relative to the workspace root.

Command output (stdout and stderr) is captured and returned to the agent as a tool result. The agent can then use this output in its response.

Large outputs may be truncated to stay within context limits.