fix: add resilience & transparency instruction to all plugin prompts#21
Conversation
Agents were silently retrying failed CLI commands without telling the user what broke or what they would try next. Inject a shared resilience rule into agent prompts, workflow files, command/skill templates, and Gemini commands so all 7 plugins across all 4 assistants communicate clearly on errors and stop after 3 failed attempts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d82ecd768
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const raw = getAnalyzerExecutionGuidanceRaw(domain); | ||
| return { | ||
| ...raw, | ||
| workflowRules: [...raw.workflowRules, SHARED_RESILIENCE_RULE], |
There was a problem hiding this comment.
Propagate the retry guidance to Copilot-rendered assets
This only injects the new rule into the Claude/Codex/Gemini rendering path. Copilot does not consume runtime-rendering.ts at all: src/services/assistants/copilot.ts:49-58 renders agents/skills through entryRenderer.renderToMarkdown() / renderSkillMarkdown(), which in turn just emit the static instructions from src/services/assistants/summonables.ts (src/services/assistants/render-entry.ts:17-31,74-87). So every installed ~/.copilot/agents/*.agent.md and ~/.copilot/skills/*/SKILL.md still lacks the new “explain the failure / stop after 3 attempts” behavior, leaving one of the four supported assistant surfaces without the advertised change.
Useful? React with 👍 / 👎.
Agents were silently retrying failed CLI commands without telling the user what broke or what they would try next. Inject a shared resilience rule into agent prompts, workflow files, command/skill templates, and Gemini commands so all 7 plugins across all 4 assistants communicate clearly on errors and stop after 3 failed attempts.
Summary
Brief description of what this PR does.
Changes
Testing
Describe how you tested these changes.
Checklist
npm run build)npm test)