Skip to content

Updated copilot instructions for better AI grounding - #7573

Merged
kartheekp-ms merged 6 commits into
devfrom
dev-kmps-update-agentsmd
Aug 6, 2026
Merged

kartheekp-ms merged 6 commits into
devfrom
dev-kmps-update-agentsmd

Conversation

@kartheekp-ms

@kartheekp-ms kartheekp-ms commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: Engineering

Description

Refined .github/copilot-instructions.md to improve instruction quality for AI coding agents by making the guidance more concise, better organized, and focused on high-value, repository-specific development practices. No functional code changes.

This change was inspired by the guidance from this blog post.

Evaluation Scenario

The measurements below compare two identical Copilot sessions before and after updating .github/copilot-instructions.md. Each session consisted of the following prompts:

  1. How do I build this repo?
  2. What are the C# coding conventions followed in this repo?

Impact

  • Input tokens: 204.3K → 193.4K (↓10.9K, 5.3%).
  • Cached tokens: 164.9K → 156.5K (↓8.4K, 5.1%).
  • Fresh input tokens (Input − Cached): 39.4K → 36.9K (↓2.5K, 6.3%).

Context usage (before)
image

Context usage (after)
image

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • [ ] Added tests
  • [ ] Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@kartheekp-ms
kartheekp-ms requested a review from a team as a code owner July 18, 2026 00:52
@kartheekp-ms kartheekp-ms added the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Jul 18, 2026
Comment thread .github/copilot-instructions.md Resolved
Comment thread .github/copilot-instructions.md Resolved
@kartheekp-ms
kartheekp-ms force-pushed the dev-kmps-update-agentsmd branch from 5f784be to cd01d80 Compare July 20, 2026 20:10
Comment thread .github/copilot-instructions.md Resolved
nkolev92
nkolev92 previously approved these changes Jul 21, 2026
Comment thread .github/copilot-instructions.md Resolved
jebriede
jebriede previously approved these changes Jul 22, 2026
@kartheekp-ms
kartheekp-ms marked this pull request as draft July 27, 2026 17:19
@kartheekp-ms
kartheekp-ms dismissed stale reviews from jebriede and nkolev92 via 313ff0c July 30, 2026 03:10
@kartheekp-ms
kartheekp-ms marked this pull request as ready for review July 30, 2026 03:10
nkolev92
nkolev92 previously approved these changes Jul 30, 2026
@kartheekp-ms
kartheekp-ms enabled auto-merge (squash) August 4, 2026 21:44
@kartheekp-ms
kartheekp-ms merged commit 0e9f7d2 into dev Aug 6, 2026
17 of 18 checks passed
@kartheekp-ms
kartheekp-ms deleted the dev-kmps-update-agentsmd branch August 6, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Engineering Changes related to the build infrastructure of the repo and that do not change product code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants