GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature: Allow plan mode to save plans to configurable paths · Issue #7092 · anomalyco/opencode

Feature: Allow plan mode to save plans to configurable paths #7092

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
Feature: Allow plan mode to save plans to configurable paths#7092
Copy link
Assignees
thdxr

Description

@b3nw
b3nw
opened on Jan 6, 2026
Issue body actions

Summary

Plan mode's strict read-only enforcement prevents saving the plan itself, making it difficult to persist planning work for later reference or handoff to Build mode.

Problem

Currently, Plan mode has a hardcoded system-reminder that enforces:

"STRICTLY FORBIDDEN: ANY file edits, modifications, or system changes... This ABSOLUTE CONSTRAINT overrides ALL other instructions"

This is injected at runtime and cannot be overridden by user configuration (tools, permission blocks in opencode.json or agent markdown files). While the read-only philosophy is valuable, it creates friction when users want to save the plan document itself.

Proposed Solution

Add a plan_save_paths configuration option that allows Plan mode to write to specific paths:

{
  "agent": {
    "plan": {
      "plan_save_paths": [
        "PLAN.md",
        "~/projects/plans/plan-*.md",
        ".opencode/plan/*.md"
      ]
    }
  }
}

The system-reminder injection would then include an exception clause:

"Exception: You MAY write plan documents to the following paths: PLAN.md, ~/projects/plans/plan-*.md"

Current Workaround

Users must create a custom agent (e.g., planner) that doesn't trigger the built-in Plan mode system-reminder. This works but loses the benefits of the built-in mode switching (Tab key) and requires duplicating the plan mode behavior.

Benefits

  1. Plans can be saved for future reference
  2. Enables handoff workflows (save plan → switch to Build → implement plan)
  3. Maintains read-only philosophy for actual codebase files
  4. Single approval flow for plan saves (vs switching modes)

Environment

  • OpenCode version: latest
  • Config location: ~/.config/opencode/opencode.json

Activity

  1. github-actions
    assigned
    thdxr
    on Jan 6, 2026
  2. github-actions commented on Jan 6, 2026

    @github-actions
    github-actionsBot
    on Jan 6, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue might be a duplicate of existing issues. Please check:

    • [FEATURE]: EDIT PLAN mode or allow editing of only certain (.md) files in PLAN mode #3858: [FEATURE]: EDIT PLAN mode or allow editing of only certain (.md) files in PLAN mode - requests the ability to allow Plan mode to edit specific files (like .md files)
    • Feature: Seamless Plan-to-Build handoff with context retention #6781: Feature: Seamless Plan-to-Build handoff with context retention - related to saving and passing plan context between modes
    • [FEATURE]: edit/write permission with deny,allow,ask using glob #4287: [FEATURE]: edit/write permission with deny,allow,ask using glob - proposes a broader permission system for edit/write access based on path patterns
    • [FEATURE]: Add per-agent filesystem boundaries (allow/deny paths) + optional run-as user for bash #5529: [FEATURE]: Add per-agent filesystem boundaries (allow/deny paths) - comprehensive proposal for per-agent filesystem access control

    Feel free to ignore if none of these address your specific case.

  3. b3nw
    closed this as a duplicateof [FEATURE]: EDIT PLAN mode or allow editing of only certain (.md) files in PLAN mode #3858 on Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @thdxr
    thdxr

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue 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.