plan: built-in save reminder conflicts with custom Plan agent prompts in V2
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 453
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
ci
难度 2/5 1-3 小时 新手友好度 78/100
ClickHouse/clickhouse-js#1248 ·
维护者通常 1 天内回复
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechselt未关闭technik
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
AhmedNAgy25/analysor#25 ·
维护者通常 1 天内回复