Title: Add AGENTS.md and .github/copilot-instructions.md for AI agent onboarding · Issue #132 · github/gh-stack · GitHub
Open Graph Title: Add AGENTS.md and .github/copilot-instructions.md for AI agent onboarding · Issue #132 · github/gh-stack
X Title: Add AGENTS.md and .github/copilot-instructions.md for AI agent onboarding · Issue #132 · github/gh-stack
Description: Summary This repository has no agent instruction files, which means every AI coding agent (Copilot, Codex, Cursor, etc.) starts from scratch each time — re-discovering build commands, testing patterns, project structure, and conventions....
Open Graph Description: Summary This repository has no agent instruction files, which means every AI coding agent (Copilot, Codex, Cursor, etc.) starts from scratch each time — re-discovering build commands, testing patte...
X Description: Summary This repository has no agent instruction files, which means every AI coding agent (Copilot, Codex, Cursor, etc.) starts from scratch each time — re-discovering build commands, testing patte...
Opengraph URL: https://github.com/github/gh-stack/issues/132
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add AGENTS.md and .github/copilot-instructions.md for AI agent onboarding","articleBody":"## Summary\n\nThis repository has no agent instruction files, which means every AI coding agent (Copilot, Codex, Cursor, etc.) starts from scratch each time — re-discovering build commands, testing patterns, project structure, and conventions.\n\n## Proposal\n\nAdd two complementary files:\n\n| File | Purpose | Read by |\n|---|---|---|\n| `AGENTS.md` | Agent-agnostic open standard ([agents.md spec](https://agents.md/)) | Copilot cloud agent, OpenAI Codex, Cursor, Amp, Jules, Gemini, and others |\n| `.github/copilot-instructions.md` | GitHub Copilot-specific instructions ([docs](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions)) | Copilot Chat, code review, completions, cloud agent |\n\n## What to include\n\n- **Project overview**: Go CLI extension for managing stacked PRs\n- **Build / test / vet commands**: `go mod download`, `go build ./...`, `go test -race -count=1 ./...`, `go vet ./...`\n- **Project structure**: key packages (`cmd/`, `internal/git`, `internal/stack`, `internal/github`, etc.)\n- **Testing patterns**: `config.NewTestConfig()`, `git.SetOps(mock)`, `MockClient`, table-driven tests, `testify` assertions\n- **Error handling**: typed `ExitError` codes, `errors.As()` pattern\n- **Key interfaces**: `git.Ops`, `github.ClientOps`\n- **Coding conventions**: Cobra commands, bubbletea TUI, config injection hooks\n\n## Design considerations\n\n- `copilot-instructions.md` should stay under ~4,000 chars (Copilot code review limit)\n- `AGENTS.md` can be more detailed\n- Both should use natural language Markdown — no proprietary format\n- Content should be broadly applicable (not task-specific)\n\n## References\n\n- [GitHub docs: Repository custom instructions](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions)\n- [AGENTS.md open standard](https://agents.md/)\n- [github/awesome-copilot instruction templates](https://github.com/github/awesome-copilot/tree/main/instructions)\n","author":{"url":"https://github.com/francisfuzz","@type":"Person","name":"francisfuzz"},"datePublished":"2026-06-17T02:31:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/132/gh-stack/issues/132"}
| 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:b3937618-6a75-e3b1-1290-ebd1605eb62a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A008:12AF6:A22749:DA6A80:6A505D48 |
| html-safe-nonce | 4789890dfe243f00b5abc42c6414c073b10886dcedcaee663a995c697ddb3b4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDA4OjEyQUY2OkEyMjc0OTpEQTZBODA6NkE1MDVENDgiLCJ2aXNpdG9yX2lkIjoiMzgzNjc4OTQ3MjM2NTY2NTYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5cb825a8acd0688a0a611ddd1bbb2639d770d9f0e94b9406ba31180d142585d7 |
| hovercard-subject-tag | issue:4679501209 |
| 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/gh-stack/132/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1ab7adea3f37b0cc5b9dcc95c2d63beabd5fcde8a243d773c36b4579cf5b3122/github/gh-stack/issues/132 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1ab7adea3f37b0cc5b9dcc95c2d63beabd5fcde8a243d773c36b4579cf5b3122/github/gh-stack/issues/132 |
| og:image:alt | Summary This repository has no agent instruction files, which means every AI coding agent (Copilot, Codex, Cursor, etc.) starts from scratch each time — re-discovering build commands, testing patte... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | francisfuzz |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/github/gh-stack git https://github.com/github/gh-stack.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 1151630728 |
| octolytics-dimension-repository_nwo | github/gh-stack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1151630728 |
| octolytics-dimension-repository_network_root_nwo | github/gh-stack |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width