Trim ambient prompt surface for smoke workflows and failure investigator#36788
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Optimize daily ambient context for workflows
Trim ambient prompt surface for smoke workflows and failure investigator
Jun 4, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reduces prompt bloat across the smoke workflows and the failure investigator by removing unused imports, switching some GitHub querying guidance to gh via cli-proxy, and de-duplicating/report-formatting instructions via shared guidance.
Changes:
- Enabled
tools.cli-proxy: truefor Smoke Codex and Smoke Claude to support compact, proxy-basedghusage. - Removed the unused
shared/github-queries-mcp-script.mdimport and trimmed repeated “verify tool call succeeds” guidance in Smoke Claude. - Replaced verbose inline formatting boilerplate in Failure Investigator with references to
shared/reporting.md, and regenerated the compiled lock workflows.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/smoke-codex.md | Enables cli-proxy for the Codex smoke workflow. |
| .github/workflows/smoke-codex.lock.yml | Regenerated compiled artifact reflecting cli-proxy and CLI-mounted server list changes. |
| .github/workflows/smoke-claude.md | Moves to top-level max-turns, enables cli-proxy, removes unused heavy import, and updates GH query/discussion guidance. |
| .github/workflows/smoke-claude.lock.yml | Regenerated compiled artifact reflecting the Smoke Claude prompt/tooling changes and removed mcp-script GitHub query tools. |
| .github/workflows/aw-failure-investigator.md | De-inlines verbose report formatting boilerplate in favor of shared/reporting.md. |
| .github/workflows/aw-failure-investigator.lock.yml | Regenerated compiled artifact for Failure Investigator content changes. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 1
| 9. **Discussion Interaction Testing**: | ||
| - Use the `github-discussion-query` mcp-script tool with params: `limit=1, jq=".[0]"` to get the latest discussion from ${{ github.repository }} | ||
| - Use `gh api repos/${{ github.repository }}/discussions?per_page=1` to get the latest discussion from ${{ github.repository }} | ||
| - Extract the discussion number from the result (e.g., if the result is `{"number": 123, "title": "...", ...}`, extract 123) |
This was referenced Jun 4, 2026
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.
Daily ambient-context sampling showed large avoidable prompt bloat in smoke workflows (notably unused shared GitHub query skill content) and redundant inline guidance in Failure Investigator. This PR reduces prompt size and repetition while preserving workflow intent and existing report structure conventions.
Smoke Claude: remove unused heavy skill + tighten execution path
shared/github-queries-mcp-script.mdfrom imports.tools.cli-proxy: trueand switched smoke GH query/discussion retrieval instructions to compactghCLI usage through gh-proxy.Smoke Codex: align tool transport with compact proxy path
tools.cli-proxy: trueto match proxy-based usage patterns and reduce MCP-style prompt overhead.Failure Investigator: de-inline verbose formatting boilerplate
shared/reporting.md.Compiled artifacts updated
.github/workflows/smoke-claude.lock.yml.github/workflows/smoke-codex.lock.yml.github/workflows/aw-failure-investigator.lock.yml