dvarapala द्वारपाल

Accepted ADR 0008 · 2026-10-28

#8. Commands that run as you, in the same window, marked apart from root

#Context

Agents get stuck on more than root. A sandboxed agent can't reach the network or write outside its project; an agent the user set to "ask first" waits on commands it can't run alone. The fix was the same as for sudo before dvarapala: copy the command into a terminal, run it, paste the output back. Users asked for dvarapala to take these too, as long as root commands and the others can never be mistaken for each other.

#Decision

Each command in a request says how it runs: "as": "root" (the default, so every 1.x request means what it did) or "as": "user", with an optional absolute cwd (default: the user's home). They share one window, one approval and one result format.

#Consequences

← All decisions · source