Skip to content

fix: add resilience & transparency instruction to all plugin prompts#21

Merged
ajitgunturi merged 1 commit into
mainfrom
bug/pr-architect
Mar 20, 2026
Merged

fix: add resilience & transparency instruction to all plugin prompts#21
ajitgunturi merged 1 commit into
mainfrom
bug/pr-architect

Conversation

@ajitgunturi
Copy link
Copy Markdown
Collaborator

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

  • Code builds without errors (npm run build)
  • Tests pass (npm test)
  • Changes are documented if applicable

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>
@ajitgunturi ajitgunturi merged commit a3cd05f into main Mar 20, 2026
2 checks passed
@ajitgunturi ajitgunturi deleted the bug/pr-architect branch March 20, 2026 14:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines +124 to +127
const raw = getAnalyzerExecutionGuidanceRaw(domain);
return {
...raw,
workflowRules: [...raw.workflowRules, SHARED_RESILIENCE_RULE],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant