[PR #10977] feat: add configurable plan path for plan mode #13623

Closed
opened 2026-02-16 18:18:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10977

State: closed
Merged: No


Summary

This PR adds a plan.path configuration option to customize where PLAN.md files are saved when in plan mode. This enables workflows where different LLMs can collaborate on planning, with one making the plan, another iterating on it, and another executing it.

Changes

  • Add plan.path config option to Config.Info schema
  • Modify Session.plan() to use configured path (now async)
  • Update agent permissions to allow editing at configured plan path
  • Update documentation with new configuration option

Usage

Configure in opencode.json:

{
  "plan": {
    "path": "plans"  // Relative to project root
  }
}

Or with an absolute path:

{
  "plan": {
    "path": "/path/to/shared/plans"
  }
}

Default Behavior (unchanged)

  • With VCS (git): .opencode/plans/{timestamp}-{slug}.md
  • Without VCS: ~/.local/share/opencode/plans/{timestamp}-{slug}.md

Related Issue

Fixes #10870

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10977 **State:** closed **Merged:** No --- ## Summary This PR adds a `plan.path` configuration option to customize where PLAN.md files are saved when in plan mode. This enables workflows where different LLMs can collaborate on planning, with one making the plan, another iterating on it, and another executing it. ## Changes - Add `plan.path` config option to `Config.Info` schema - Modify `Session.plan()` to use configured path (now async) - Update agent permissions to allow editing at configured plan path - Update documentation with new configuration option ## Usage Configure in `opencode.json`: ```json { "plan": { "path": "plans" // Relative to project root } } ``` Or with an absolute path: ```json { "plan": { "path": "/path/to/shared/plans" } } ``` ## Default Behavior (unchanged) - **With VCS (git)**: `.opencode/plans/{timestamp}-{slug}.md` - **Without VCS**: `~/.local/share/opencode/plans/{timestamp}-{slug}.md` ## Related Issue Fixes #10870 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:27 -05:00
yindo closed this issue 2026-02-16 18:18:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13623