Skip to content

feat(core): allow plan mode to write/edit PLAN files exclusively - #43710

Merged
rekram1-node merged 4 commits into
v2from
plan-directory
Aug 21, 2026
Merged

rekram1-node merged 4 commits into
v2from
plan-directory

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • create ~/.opencode/plan when the Plan plugin starts
  • enforce the Plan directory whitelist through final agent permission rules
  • keep edit, write, and patch visible while denying mutation resources outside the Plan directory
  • include the absolute directory in Plan reminders and blocked-mutation messages

Testing

  • bun test test/plugin/plan.test.ts
  • bun typecheck
  • bunx oxlint packages/core/src/plugin/plan.ts packages/core/src/plugin/internal.ts packages/core/test/plugin/plan.test.ts
  • git diff --check

@rekram1-node rekram1-node changed the title feat(core): add plan workspace directory feat(core): allow plan mode to write/edit PLAN files exclusively Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant