Skip to main content

RESTRICTED_MODE_NOTICE

Constant RESTRICTED_MODE_NOTICE 

Source
pub const RESTRICTED_MODE_NOTICE: &str = "--restricted is incomplete: file access is limited to the working directory \
     and every tool call asks for approval, but answers cannot be saved yet, so \
     the same call asks again each time. Omit the flag to run without either.";
Expand description

The notice shown when --restricted is used.

Restricted mode predates the permission rules that would make it usable: the approval seam exists (ADR-0017) but there is no allow/deny store behind it, so an answer cannot be remembered and every call asks again. Saying so is the truthful-user-facing-text rule (AGENTS.md) — a half-built mode that looks finished is worse than one that announces itself.