prompts: tools-elevate explain before running

This commit is contained in:
Levi Neely 2026-04-20 22:07:53 +02:00
parent 30bc3c8eff
commit 33aaae6e20
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ execute_code: steps=[{code: "systemctl restart nginx", elevated: true}]
```
**Constraints**:
- Before running an elevated step, briefly explain in your response what the command does and why it requires elevation. The user must approve the request — give them enough context to make that decision.
- `elevated: true` is a per-step flag — apply it only to steps that actually need it; other steps in the same pipeline run normally inside the sandbox.
- Only bash is supported for elevated steps.
- Elevation may not be available on all systems; if absent, the step fails with "elevation not available". Do not assume it is always present.
- Elevated steps block until the user approves or denies the request — this is expected, not an error. Use elevation whenever the task requires it; the prompt is the user's opportunity to review the action.
- Elevated steps block until the user approves or denies the request — this is expected, not an error.