Optional sandbox for bash, LSP servers and lens/test runners (bwrap, seatbelt)

This commit is contained in:
hermes committed 2026-10-12 16:09:40 +00:00
1 parent d3390a823d
commit 8e7c0bb89a
11 files changed
+586 -17

No files matched your search

+11
View File
@@ -14,6 +14,17 @@
# codemode = false # `codemode` tool: JS scripts that call other tools in a sandbox
# system_prompt = "..." # replaces the built-in prompt; AGENTS.md is still appended
## Sandbox: bash, LSP servers, lens and test runners run under bwrap (Linux) / sandbox-exec (macOS).
## Project dir + /tmp writable, $HOME hidden except `ro`/`rw`, filtered env (no API keys/tokens), no network.
## File tools (read/write/edit) obey the same paths. mode = "on" without a working backend refuses to start.
# [sandbox]
# mode = "off" # off | on (CLI: --sandbox / --no-sandbox)
# backend = "auto" # auto | bwrap | seatbelt
# network = false
# rw = ["~/.cargo/registry", "~/.cargo/git"] # extra writable paths
# ro = ["~/.cargo", "~/.rustup", "~/.local", "~/.nvm", "~/.npm"] # readable parts of $HOME
# env_allow = ["PATH", "HOME", "TERM", "LC_*", "CARGO_*"] # trailing * = prefix
## OpenAI-compatible endpoint (Ollama, vLLM, LM Studio, OpenRouter), used with provider = "custom".
# [openai_compat]
# base_url = "http://localhost:11434/v1"