Prompt-based execution mode classifier with safe permission boundaries #925
PierrunoYT
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Zero exposes several useful but separate controls:
smart,deep, andfast;plan,auto,ask, andunsafe.Users currently need to understand these distinctions and select them manually before every task. It would be useful to offer an explicit automatic-routing option that inspects the prompt and recommends or selects an appropriate execution mode—for example, read-only planning, autonomous coding inside the sandbox, or approval-gated work.
Proposed behavior
Add an opt-in prompt classifier used only when the user selects an Automatic routing mode. Its result should contain two independent decisions:
planfor explanation, investigation, and planning requests that should remain read-only;autofor coding tasks that may edit the workspace and run sandboxed commands autonomously while retaining existing risk gates;askfor ambiguous or sensitive tasks where mutating tool calls should require approval.Explicit user selections must always override classifier output. The selected mode should be visible in the TUI/run metadata, and classification failure should fall back conservatively (for example,
askwith medium posture).Security boundary
Prompt classification must never grant authority:
unsafeor activate--skip-permissions-unsafe.This keeps “autonomous coding” bounded to existing workspace/sandbox protections while destructive, networked, elevated, and out-of-workspace operations continue through the normal approval path.
Fit with the current architecture
Zero already centralizes permission modes, tool visibility, runtime permission prompts, and sandbox evaluation. The classifier can remain a small routing layer before the agent loop rather than introducing a second permission system. Model presets should remain separate because they answer which model runs, while the classifier answers how the run should proceed.
Alternatives considered
Open questions
All reactions