Title: Skill guidance: agents should use git notes to preserve debugging context on fix commits · Issue #3939 · github/github-mcp-server · GitHub
Open Graph Title: Skill guidance: agents should use git notes to preserve debugging context on fix commits · Issue #3939 · github/github-mcp-server
X Title: Skill guidance: agents should use git notes to preserve debugging context on fix commits · Issue #3939 · github/github-mcp-server
Description: Scenario When an agent lands a fix through this server (push_files, create_or_update_file), the durable record is the commit message — what changed. The debugging story behind the fix — root cause, the evidence (CI/workflow run ids, fail...
Open Graph Description: Scenario When an agent lands a fix through this server (push_files, create_or_update_file), the durable record is the commit message — what changed. The debugging story behind the fix — root cause,...
X Description: Scenario When an agent lands a fix through this server (push_files, create_or_update_file), the durable record is the commit message — what changed. The debugging story behind the fix — root cause,...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3939
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Skill guidance: agents should use git notes to preserve debugging context on fix commits","articleBody":"## Scenario\n\nWhen an agent lands a fix through this server (`push_files`, `create_or_update_file`), the durable record is the commit message — what changed. The debugging story behind the fix — root cause, the evidence (CI/workflow run ids, failing test output), and why this fix was chosen over alternatives — has nowhere to go. It lives in the chat that produced it and is lost. The next person (or agent) bisecting or reviewing that commit sees the *what* but not the *why*.\n\nGit notes solve exactly this: `git notes add` attaches context to a commit without rewriting its message, and `git log --notes` tells the whole story. But agents systematically mishandle notes:\n\n1. **Notes live on `refs/notes/commits`, which is not pushed or fetched by default** — an agent that adds a note and runs a plain `git push` has silently kept the context local.\n2. **No MCP tool in this server can write notes at all** — the API commits these tools make never touch `refs/notes/*`, so an agent operating purely through this server must hand the user the local commands rather than attempting it or dropping the context.\n3. **Notes are a shared ref** — force-pushing `refs/notes/commits` rewrites shared history and should be treated like force-pushing the default branch.\n\n## Proposal\n\nAdd a short \"Recording the why with git notes\" section to the bundled `repository-content-changes` skill (`pkg/skills/catalog/skills/repository-content-changes/SKILL.md`) teaching agents:\n\n- attach root cause + evidence (run ids) to fix commits as notes\n- the exact add / push / fetch commands, including the one-time `remote.origin.fetch` refspec config so plain fetches pull notes\n- the limitation that these tools can't write notes, so the agent surfaces the commands to the user\n- the no-casual-force-push rule for the notes ref\n\n## Impact\n\nEvery agent client of this server that lands fix commits gets the guidance via the bundled skills — no new tools, no API surface, one documentation file. Debugging context survives the chat session and travels with the repository to anyone who fetches the notes ref.\n\nI have a PR ready implementing this as a docs-only change to the one SKILL.md.","author":{"url":"https://github.com/RandyMcMillan","@type":"Person","name":"RandyMcMillan"},"datePublished":"2026-11-24T16:18:26Z","url":"https://github.com/github/github-mcp-server/issues/3939"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a2843b2-39fa-b4d6-de63-17612f1fd5de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDF2:223718:6BAFA5:8F1D4D:6B062B49 |
| html-safe-nonce | 9b78325dfddb0fff5ff864e3a94a982705788255c39f6fbb881d3a066c21f39e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREYyOjIyMzcxODo2QkFGQTU6OEYxRDREOjZCMDYyQjQ5IiwidmlzaXRvcl9pZCI6IjIwNTk2OTc2ODM2NTYyMjM1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f2aadc1616d345f2fe3fc024ddfebb07d002cfab10d4465b9991f2e376415d4e |
| hovercard-subject-tag | issue:6586321146 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3939/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7d681adbe2544e02e1c8a7112430e499f4ed208cda308ddf03dc40a9f639c6d/github/github-mcp-server/issues/3939 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7d681adbe2544e02e1c8a7112430e499f4ed208cda308ddf03dc40a9f639c6d/github/github-mcp-server/issues/3939 |
| og:image:alt | Scenario When an agent lands a fix through this server (push_files, create_or_update_file), the durable record is the commit message — what changed. The debugging story behind the fix — root cause,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RandyMcMillan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width