plan: built-in save reminder conflicts with custom Plan agent prompts in V2
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 52/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 230k
- Forks
- 31.3k
- Merge moyen
- 5 h 32 min
- PR mergées (30 j)
- 453
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de anomalyco/opencode
-
area/desktop platform/macos status/repro-plausible type/bug version/v2
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
anomalyco/opencode#67064 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 82/100
anomalyco/opencode#67009 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
area/web type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
anomalyco/opencode#67001 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
skills: a Claude-compatible SKILL.md that fails to parse is dropped without any logPeut-être pris @liwenjie200543 l’a pris il y a 2 jours. Ouvertearea/plugins platform/linux reproduced type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
anomalyco/opencode#66970 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPeut-être pris @argszero l’a pris il y a 2 jours. Ouvertearea/tui platform/wsl status/repro-simulated type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
anomalyco/opencode#66773 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de anomalyco/opencode
Issues similaires
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
ci
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
ClickHouse/clickhouse-js#1248 ·
Les mainteneurs répondent en général sous 1 jour
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechseltOuvertetechnik
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
AhmedNAgy25/analysor#25 ·
Les mainteneurs répondent en général sous 1 jour