chore: reduce token usage in agent-context markdown files#13
Merged
Conversation
Trim redundancy across instruction, prompt, agent, and skill markdown without removing any behavioral rules or API facts. - Remove duplicate mermaid diagrams from the 4 pattern coordinator agents; the numbered routing list already states the same flow - Consolidate orchestrator's thrice-stated delegation policy and compress selection heuristics into a single table - Condense the repeated AGENTS.md footer in all 7 agents to one line - Deduplicate builder/skeleton patterns in copilot-instructions and the add-agent prompt by deferring detail to the agent-framework-codegen skill - Tighten python.instructions and drop 3 SKILL.md troubleshooting rows that duplicate inline section notes Net -138 lines (~10% smaller) with all rules preserved. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
junwoojeong100
marked this pull request as ready for review
June 11, 2026 23:50
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.
Summary
Reduces per-turn token usage by trimming redundancy from the markdown files that Copilot loads into context, without removing any behavioral rule or API fact.
Changes
.github/config (commit 1)mermaiddiagrams from the 4 pattern coordinators (numbered routing list already states the flow); consolidated the orchestrator's thrice-stated delegation policy and compressed selection heuristics into one table; condensed the repeatedAGENTS.mdfooter in all 7 agents to a single line.copilot-instructions.md(deferred detail to the skill); tightenedpython.instructions.md.add-agent.prompt.mdreferences theagent-framework-codegenskill for the common skeleton instead of inlining it.SKILL.mdtroubleshooting rows that duplicate inline notes; all code blocks and unique error rows retained.AGENTS.mdharness (commit 2)Impact
.github/net -138 lines (~10%),AGENTS.md-27 lines (~18%).Inspected but unchanged
README.md(already tight, human-facing),docs/github-multi-account-setup.md(auxiliary how-to), and the already-minimalkorean/azure/git-commitinstructions +review-codeprompt.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com