You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Default Agent Arguments Should Not Be --dangerously-skip-permissions/--yolo default #5385
Also see this and similarly don't understand why this is the default and why there is no way to turn this off. At the very least this should be a configuration option.
I would treat this as an authority-baseline issue, not just a default-args preference.
If an agent is launched with permission-disabling flags by default, the user has effectively granted standing authority before the run starts. That is different from an explicit per-workspace or per-session opt-in where the UI can show what authority is being granted and why.
The shape I would aim for:
Default launch args should be empty or restrictive.
Permission-disabling args should require an explicit user-owned override.
The effective args should be visible before the run starts and in the run details afterward.
The override should record its source, such as global profile, workspace profile, session choice, or manual one-off edit.
A risky override should be bound to the agent type and workspace context that it was granted for.
If the agent provider, workspace, or saved profile changes, the override should be treated as stale and re-confirmed rather than silently inherited.
The UI toggle should change a named permission mode, not just mutate an opaque text field.
The regression I would want is: start from a clean profile and assert no permission-disabling args are present; enable the risky mode explicitly and assert the effective args and source are visible; then change workspace or agent provider and assert the risky mode does not silently carry over without a fresh confirmation.
That keeps the power-user escape hatch while making the unsafe state attributable instead of ambient.
Activity
BradleyGoulding commentedon Jun 15, 2026
From what i can see this was the intended design #5145 and I don't understand the rational behind this.
Spence1115 commentedon Jun 15, 2026
Also see this and similarly don't understand why this is the default and why there is no way to turn this off. At the very least this should be a configuration option.
BradleyGoulding commentedon Jun 15, 2026
You can turn it off by deleting the argument text, there is an icon to toggle that. Its not obvious
nwparker commentedon Jun 15, 2026
Looking into this today!
Thanks for raising it
rpelevin commentedon Jun 16, 2026
I would treat this as an authority-baseline issue, not just a default-args preference.
If an agent is launched with permission-disabling flags by default, the user has effectively granted standing authority before the run starts. That is different from an explicit per-workspace or per-session opt-in where the UI can show what authority is being granted and why.
The shape I would aim for:
The regression I would want is: start from a clean profile and assert no permission-disabling args are present; enable the risky mode explicitly and assert the effective args and source are visible; then change workspace or agent provider and assert the risky mode does not silently carry over without a fresh confirmation.
That keeps the power-user escape hatch while making the unsafe state attributable instead of ambient.