Skip to content

v1.2.0

Latest

Choose a tag to compare

@aangelinsf aangelinsf released this 15 Nov 17:29
675105b

Runs every CLI tool in its own empty, private working directory.

What's new

  • Each POST /execute request gets a new temporary directory (mode 700). The tool runs there instead of in your home directory, and the directory is removed when the tool exits, including after a timeout or an error. Before, a tool with file tools (such as Claude Code's Read) started in ~ and could be prompted into reading your files.
  • Attachments are written into that same directory, so {{files_dir}} is now the tool's working directory.
  • GET /health reports isolated_cwd in features (["files", "isolated_cwd"]), so clients can check that the relay no longer runs tools in ~.
  • Refused requests (400 and 500) remove the directory before replying.

Requests are otherwise unchanged from v1.1.0.

Upgrade

ddev add-on get Performant-Labs/ddev-cli-relay && ddev restart

The Drupal ai_provider_cli module's status report warns when the relay is older than this version.