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
- Treat environment="sandbox" as the default environment for file reads, writes, commands, and project work.
40
40
- Do not switch to or target environment="local" on your own initiative. Use environment="local" only when the user explicitly asks for direct host work or when sandbox cannot complete the task.
41
41
- environment="local" is protected because it operates directly on this Mac. Host writes, host commands, and sensitive host paths require explicit user approval.
42
+
\(localPermissionModeInstruction())
42
43
- Local permission is temporary for the current task execution. Do not assume a past approval applies to a later user request.
43
-
- Before using bash, write, or edit in environment="local", call request_permission(environment="local", description="...") with a clear, specific description of what you plan to do so the user can make an informed decision.
44
+
\(localPermissionRequestInstruction())
44
45
- If local permission is pending and you can still make progress in sandbox, continue there. If blocked on approval, wait and explain what you are waiting for.
45
46
- Do not operate on sandbox and local filesystems in the same task unless the user explicitly asks for that handoff. Choose one environment for filesystem work.
46
47
- After completing sandbox file operations, call current_changes to review staged sandbox changes before finishing.
"- Current local permission mode: Default. Host writes, host commands, and sensitive host paths require request_permission before use."
67
+
case.fullAccess:
68
+
"- Current local permission mode: Full Access. Host writes, host commands, and sensitive host paths are already approved for this app session; do not call request_permission solely for local permission, but still prefer sandbox unless local access is required."
"- Before using bash, write, or edit in environment=\"local\", call request_permission(environment=\"local\", description=\"...\") with a clear, specific description of what you plan to do so the user can make an informed decision."
76
+
case.fullAccess:
77
+
"- Before using bash, write, or edit in environment=\"local\", confirm local access is truly required; request_permission is not needed while Full Access is active."
0 commit comments