plan: built-in save reminder conflicts with custom Plan agent prompts in V2
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start at packages/core/src/plugin/plan.ts, where the V2 Plan plugin injects the save reminder separately from the agent's system prompt, and compare with the additive instructions field introduced by #63669. Then look at how a custom plan agent definition (e.g. .opencode/agents/plan.md) is loaded and merged with the built-in plan agent config. Done means a custom plan definition can replace the whole built-in reminder while the default reminder still applies when there is no override, and existing tool write permissions are unchanged.
索引モデルが issue の本文から書いたものです。
説明
Description
My custom plan agent is configured to save each completed plan automatically to docs/superpowers/plans/. In OpenCode v2.4.2, the built-in Plan instructions still tell the model to save only when explicitly asked and only under ~/.opencode/plan. In my session, the assistant returned the plan in chat and saved it to the global directory only after I asked again.
The V2 Plan plugin supplies this reminder separately from the agent’s system prompt. #63669 moved it into an additive instructions field that is plugin-only.
Proposed Solution: Let a custom plan definition replace the entire built-in reminder, while preserving the current default for users without an override. Existing tool permissions should still govern where the agent can write.
Why #55683 alone isn’t enough: A configurable directory would resolve where the plan goes. The reminder would still say “Do not create or update plan files unless the user explicitly asks you to,” so it would still conflict with automatic saving even if both prompts named the same directory.
Related: #14882 reports the underlying reminder conflict in V1; #55683 tracks the hardcoded directory in V2.
Plugins
Superpowers v7.0.2; OpenCode Traffic Light terminal plugin.
OpenCode version
2.4.2
Steps to reproduce
-
Override the built-in
planagent with.opencode/agents/plan.md. To isolate the reminder conflict from the directory restriction, use the default allowed directory:--- mode: primary --- When an implementation plan is complete, save it automatically to ~/.opencode/plan/example.md without waiting for a separate request. -
Select Plan and ask it to draft a small implementation plan without asking it to save.
-
Inspect the model context: the custom prompt calls for automatic saving, while the built-in Plan instructions require a separate request.
Operating System
Linux x86_64 (CachyOS, kernel 7.3.6).
Terminal
WezTerm.
- 主要言語
- TypeScript
- スター
- 230k
- フォーク
- 31.3k
- 平均マージ
- 5時間 32分
- マージ済み PR(30日)
- 453
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
anomalyco/opencode#67064 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 82/100
anomalyco/opencode#67009 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/web type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anomalyco/opencode#67001 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log対応中かも @liwenjie200543 が 2 日前に担当しました。 オープンarea/plugins platform/linux reproduced type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anomalyco/opencode#66970 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaks対応中かも @argszero が 2 日前に担当しました。 オープンarea/tui platform/wsl status/repro-simulated type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
anomalyco/opencode#66773 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EPPIcenter/sampledb3#162 ·
-
Particle-1 modelオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
tashfeenahmed/freellmapi#2169 ·
メンテナーはふだん 1 日以内に返信
-
via-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
🎙️ task - feat(mechanic): pave git.pull.close, a close of a superseded pull with its why on recordオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ehmpathy/rhachet-roles-ehmpathy#1576 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vercel-labs/ui#1563 ·
メンテナーはふだん 1 日以内に返信