Skip to main content

Module runtime

Module runtime 

Source
Expand description

Top-level orchestration: choose a shell backend, build the agent, run a task. Shared by the CLI (bin/aacode) and the FFI layer (ffi.rs).

Backend selection (config.shell_backend):

  • Auto (default) โ€” native OS shell on desktop, fastshell sandbox on mobile.
  • Native โ€” force the real OS shell (sh -c / cmd /C).
  • Fastshell โ€” force the sandbox engine (VFS jail + embedded CPython).

Structsยง

AgentRuntime
A prepared agent runtime bound to a project directory + shell backend.