Skip to main content
Project settings support two reusable script types after a workspace has been created:

Setup scripts

Install dependencies and arrange the browser whenever Radius creates a worktree.

Named run commands

Named run commands appear in the terminal’s Run… menu:
The table name after scripts.run is the stable script ID. name is the label shown in Radius. If you omit the name, Radius derives one from the ID. To hide a shared run command on one machine, add this to .radius/settings.local.toml:

Archive command

Use archive for cleanup or validation that must finish before a worktree is removed:
The command runs from the worktree directory with the effective project environment. A non-zero exit status blocks deletion.

Script environment

All project scripts receive variables from project settings plus:
  • RADIUS_PROJECT_ROOT
  • RADIUS_WORKSPACE_PATH
  • RADIUS_WORKSPACE_NAME
  • RADIUS_DEFAULT_BRANCH