microsoft/vscode ships both files, and they share 2 of the 20 section tags.
The first runs 2,221 words and the second runs 2,175. Every list below is set membership over what the nightly stored for each file, never a re-reading of the text.
Everything indexed in microsoft/vscodeCounted 13 September 2026
Headings
0 in both, 35 only in the first, 30 only in the second
extensions/copilot/src/extension/chatSessions/copilotcli/AGENTS.md
Copilot CLI Integration
Architecture
Folder Structure
Layering Rules
Key Components
`node/copilotCli.ts`
`node/copilotcliSession.ts`
`node/copilotcliSessionService.ts`
`common/copilotCLITools.ts`
`common/copilotCLIPrompt.ts`
`node/copilotcliPromptResolver.ts`
`node/permissionHelpers.ts`
`node/mcpHandler.ts`
`node/copilotCLIImageSupport.ts`
`node/exitPlanModeHandler.ts`
`node/cliHelpers.ts`
Message Flow
Permission System
Session Persistence
`IWorkspaceInfo` (`../common/workspaceInfo.ts`)
`IChatSessionMetadataStore` (`../common/chatSessionMetadataStore.ts`)
`IChatSessionWorktreeService` (`../common/chatSessionWorktreeService.ts`)
`IChatSessionWorktreeCheckpointService` (`../common/chatSessionWorktreeCheckpointService.ts`)
`IChatSessionWorkspaceFolderService` (`../common/chatSessionWorkspaceFolderService.ts`)
`IFolderRepositoryManager` (`../common/folderRepositoryManager.ts`)
`ISessionRequestLifecycle` (`../vscode-node/sessionRequestLifecycle.ts`)
Architecture Diagram: Shared Services
How to Add New Features
Adding a new permission handler
Handling a new SDK event
Critical Pitfalls
Commands & Slash Commands
Configuration
Dependencies
Deprecated Code
extensions/copilot/.github/copilot-instructions.md
GitHub Copilot Chat Extension - Copilot Instructions
Project Overview
Key Features
Tech Stack
Validating changes
Project Architecture
Top-Level Directory Structure
Key Source Directories
Extension Activation Flow
Chat System Architecture
Inline Chat System
Coding Standards
TypeScript/JavaScript Guidelines
React/JSX Conventions
Architecture Patterns
Dependency Boundaries
Testing Standards
File Organization
Key Development Guidelines
Arrow Functions and Parameters
Code Structure
Type Management
Key APIs and Integrations
VS Code Proposed APIs (Enabled)
External Integrations
Development Workflow
Setup and Build
Testing
Key Entry Points for Edits
Best Practices
Commands
0 in both, 10 only in the first, 7 only in the second
extensions/copilot/src/extension/chatSessions/copilotcli/AGENTS.md
node/
node/copilotCli.ts
node/copilotcliSession.ts
node/copilotcliSessionService.ts
node/copilotcliPromptResolver.ts
node/permissionHelpers.ts
node/mcpHandler.ts
node/copilotCLIImageSupport.ts
node/exitPlanModeHandler.ts
node/cliHelpers.ts
extensions/copilot/.github/copilot-instructions.md
git/
npm install
npm run compile
npm run watch:*
npm run test:unit
npm run test:extension
npm run simulate
Section tags
2 in both, 3 only in the first, 6 only in the second
extensions/copilot/src/extension/chatSessions/copilotcli/AGENTS.md
git-pr
dependencies
do-not
extensions/copilot/.github/copilot-instructions.md
setup
build
test
code-style
types
docs
In both files
architecture
agent-behaviour