GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — plan: bash writes and commits bypass plan mode (proposal: sandboxed writable paths) · Issue #65442 · anomalyco/opencode Closed as duplicate Closed as duplicate Copy link Labels area/coreAgent loop, tools and configplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x DescriptionSummaryPlan mode's read-only guarantee only covers the edit/write tools. Shell runs with full filesystem access by default, so in plan mode the agent can write files, rewrite source, and make git commits while the UI shows the session as read-only. I'd like shell writes in plan mode to be sandboxed to a configurable set of paths. Environment
Reproduction
Expected BehaviorPlan mode should make writes outside the plan directory impossible at the enforcement layer, not something that depends on the model choosing polite commands. Actual BehaviorOnly edit/write/patch are gated. The docs describe the plan agent as one that "explores and plans without editing normal project files" but note that "shell commands remain permission-controlled" — i.e. allowed unless you've configured otherwise. The ProposalPer-agent write sandboxing at the OS level with a writable-path allowlist, the way Codex CLI does workspace-write with landlock/seccomp on Linux: {
"agents": {
"plan": {
"sandbox": { "writable": ["~/.opencode/plan", "$TMPDIR"] }
}
}
}The agent could still run Additional ContextThe trigger for this report: a multi-day session where I kept the agent in plan mode while reviewing its plan, and found afterward that it had edited source and committed locally the whole time. Nothing was pushed and I could revert everything, but the UI state and the enforcement disagreed the entire time, which is worse than having no plan mode at all. A Activity
MetadataMetadataAssigneesLabelsarea/coreAgent loop, tools and configplatform/linuxLinuxtype/bugSomething is brokenversion/v2OpenCode 2.x TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |