VS Code Copilot integration
Capture prompts from GitHub Copilot in VS Code
PCR captures GitHub Copilot Chat prompts by watching the Copilot session files VS Code writes under its workspace storage directory. No VS Code or Copilot settings change is required.
File watcher (recommended)
Run pcr init in your project and pcr start. The watcher discovers Copilot session files automatically — there's no separate --vscode flag.
What's captured
| Field | Value |
|---|---|
| source | vscode |
| session_id | Copilot session identifier |
| prompt_text | Your Copilot Chat message |
| response_text | Copilot's response |
| model | Whatever Copilot reports for that turn |
| tool_calls | Tool invocations Copilot ran (when reported) |
| copilot_version | Captured into file_context for diagnostic purposes |
| response_duration_ms | How long Copilot took on that response |
ℹ
Copilot's session schema evolves quickly. If a Copilot release breaks capture, please file an issue with a sample session file (with anything sensitive redacted).