Repository navigation
feat(agent-config): wire GitHub Copilot (.github/copilot-instructions.md) - #195
Merged
Merged
Conversation
….md)
kit agent-config now writes the managed "use kit" block into Copilot's
canonical custom-instructions file, .github/copilot-instructions.md — the
fifth rules-file target alongside CLAUDE.md / AGENTS.md / .cursorrules /
.clinerules. Copilot was the one common agent kit didn't reach for the rules
block; VS Code Copilot reads this file (and Antigravity is already covered via
its AGENTS.md support).
- AGENT_TARGETS gains { agent: "Copilot", file: ".github/copilot-instructions.md" }.
- detectAgentTargets wires it when a .vscode/ dir is present or the file exists.
- writeAgentConfig now mkdir's the parent dir before writing, so a nested
target (.github/) is created (no-op for root-level files).
- COMMAND_HELP, README agent table (+ footnote 8), CHANGELOG updated.
Scope: advisory rules block only. Memory indexing and a blocking install-gate
for Copilot are deliberately NOT included — they need Copilot's transcript
format and pre-tool hook surface verified against primary sources first (kit's
"never guessed" rule). The git-hook floor and the MCP server (kit mcp) already
apply to Copilot today.
Tests: new detectAgentTargets + writeAgentConfig cases; full suite green
(1989 tests, 0 fail); public-surface snapshot unchanged; eslint clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbF4MFePXWNCd4dxBQvqH2
|
✅ Docker image built successfully
|
sandstream
added a commit
that referenced
this pull request
Jul 1, 2026
#196) Cut 3.1.0 from [Unreleased]: - gzip-compress memory sync blobs before encryption (~3x smaller, #193) - public-key sync mode — ephemeral sessions push with no secret (#192) - kit agent-config wires GitHub Copilot (#195) - external timestamp anchor via command transport (#186) - plus device-identity hardening + transport fixes Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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.
Description
kit agent-confignow writes the managed "use kit" rules block into GitHub Copilot's canonical custom-instructions file,.github/copilot-instructions.md— the fifth rules-file target alongsideCLAUDE.md/AGENTS.md/.cursorrules/.clinerules. Copilot (VS Code / Visual Studio) was the one common agent kit didn't reach for the advisory rules block. (Google Antigravity is already covered via itsAGENTS.mdsupport, so no separate target is needed for it.)Type of Change
Related Issues
Changes Made
AGENT_TARGETSgains{ agent: "Copilot", file: ".github/copilot-instructions.md" }.detectAgentTargetswires Copilot when a.vscode/dir is present or the file already exists.writeAgentConfignowmkdirs the parent dir before writing, so a nested target (.github/) is created — a no-op for the existing root-level files.COMMAND_HELP, the README agent-support table (+ footnote 8), andCHANGELOG.mdupdated.Scope / deliberately out
Advisory rules block only. Memory indexing (a Copilot transcript parser → new harness) and a blocking install-gate for Copilot are intentionally not included: they require Copilot's transcript serialization format and a verified pre-tool-hook surface, and kit's rule is to build adapters only after verifying against primary sources (never guessed). The agent-agnostic git-hook floor and the MCP server (
kit mcp, added to.vscode/mcp.json) already apply to Copilot today.Testing
Test Coverage
.vscode/and existing-file detection; writeAgentConfig: nested-dir creation)npm test) — 1989 tests, 0 failManual Testing
.vscode/dir,kit agent-confignow creates.github/copilot-instructions.mdcontaining the marker-delimited kit block.unchanged); editing outside the markers is preserved.public-surfacesnapshot unchanged;eslint srcreports 0 errors.Breaking Changes
None / N/A
Checklist
npm test)Performance Impact
Migration Guide
N/A — additive. Existing rules files are untouched; the Copilot file is only written when the project looks like a VS Code/Copilot project (or already has the file).
Reviewer Notes
The
.vscode/heuristic is intentionally permissive (a VS Code project is the best available "Copilot likely" signal); an extra marker-guarded, idempotent instructions file is harmless if Copilot isn't actually used. Open to gating it differently (e.g. only on an existing file) if you'd prefer a narrower trigger.🤖 Generated with Claude Code
Generated by Claude Code