Optional sandbox for bash, LSP servers and lens/test runners (bwrap, seatbelt)
This commit is contained in:
1 parent
d3390a823d
commit
8e7c0bb89a
11 files changed
+586
-17
No files matched your search
@@ -55,6 +55,17 @@ max_tokens = 16384
|
||||
# explore_model = "claude-haiku-4-5" # model for read-only `task` subagents; default: cheapest tier of the provider
|
||||
# system_prompt = "..." # replaces built-in prompt; AGENTS.md 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
|
||||
|
||||
[lsp]
|
||||
mode = "turn_end" # turn_end | agent_end | off
|
||||
disable = ["clangd"]
|
||||
|
||||
Reference in new issue
Block a user