optimize: reduce AI credit usage in nightly .NET porting workflows#412
Closed
michelle-clayton-work with Copilot wants to merge 3 commits into
Closed
optimize: reduce AI credit usage in nightly .NET porting workflows#412michelle-clayton-work with Copilot wants to merge 3 commits into
michelle-clayton-work with Copilot wants to merge 3 commits into
Conversation
- Add DataOps pre-steps to pre-fetch upstream commits (compact JSONL) and recent porting issues (JSON) before the agent runs, replacing expensive on-demand tool calls with zero-token shell work - Change port-candidate-selector sub-agent model from auto (resolved to gpt-5.5) to large (sonnet/gpt-5-pro), significantly cheaper for the candidate selection task - Switch github tools to gh-proxy mode, eliminating Docker MCP server startup overhead and extra tool definitions from context - Update main and sub-agent prompts to use pre-fetched data files - Add gh:* to bash allow-list for gh-proxy mode - Apply identical optimizations to dotnet-port-api-nightly.md - Recompile both lock files with gh aw compile Co-authored-by: michelle-clayton-work <262183035+michelle-clayton-work@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update max AI credits limit to 4000
optimize: reduce AI credit usage in nightly .NET porting workflows
Jul 1, 2026
Contributor
Co-authored-by: michelle-clayton-work <262183035+michelle-clayton-work@users.noreply.github.com>
Contributor
Author
Done in |
Contributor
|
Too much work for the issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
dotnet-port-fixes-nightlyworkflow exceeded its 2K AIC budget (used 2002 AIC) because theport-candidate-selectorsub-agent ran at fullgpt-5.5cost while fetching upstream git history and querying porting issues inline — the most expensive phases.Changes
DataOps pre-steps (
dotnet-port-fixes-nightly.md,dotnet-port-api-nightly.md)steps:block that runs before the agent, fetching upstream commits and recent porting issues as compact files under/tmp/gh-aw/data/at zero AI-token cost/tmp/gh-aw/data/upstream-commits.jsonl(60 compact commit entries) and/tmp/gh-aw/data/porting-issues.jsoninstead of callinggit logor issue-list tools inlineSub-agent model downgrade
port-candidate-selector:model: auto→model: large(resolves to sonnet/gpt-5-pro)autowas resolving to gpt-5.5 (same as parent); candidate selection doesn't need frontier costGitHub tools: gh-proxy mode
github: toolsets: [context, repos, issues, pull_requests]→github: mode: gh-proxygh:*to bash allow-list for any remaining inline queriesPrompt updates
dotnet-port-api-nightly.md(same structure, same risk)Both
.lock.ymlfiles recompiled withgh aw compile.