Skip to content

Make AI credit budget increases a last resort - #47328

Merged
pelikhan merged 1 commit into
mainfrom
copilot/update-token-and-cost-optimization-prompts
Jul 22, 2026
Merged

Make AI credit budget increases a last resort#47328
pelikhan merged 1 commit into
mainfrom
copilot/update-token-and-cost-optimization-prompts

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Token and cost optimization guidance should prioritize reducing consumption before increasing per-run AI credit limits.

  • Optimization guidance

    • Require all applicable optimizations to be measured and exhausted first.
    • Add budget escalation as the final checklist step.
  • Optimizer prompt

    • Add an explicit current-budget completion check.
    • Recommend raising max-ai-credits only when acceptable quality remains unattainable after optimization.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review July 22, 2026 13:50
Copilot AI review requested due to automatic review settings July 22, 2026 13:50
@pelikhan
pelikhan merged commit d5997c8 into main Jul 22, 2026
@pelikhan
pelikhan deleted the copilot/update-token-and-cost-optimization-prompts branch July 22, 2026 13:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Prioritizes measured AI-credit optimization before increasing per-run budgets.

Changes:

  • Adds budget escalation as the final optimization step.
  • Requires acceptable-quality completion checks against the current budget.
Show a summary per file
File Description
.github/aw/token-optimization.md Documents budget increases as a last resort.
.github/aw/optimize-agentic-workflow.md Updates optimizer guidance and checklist ordering.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.0

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.

3 participants