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

FieldValue
sourcevscode
session_idCopilot session identifier
prompt_textYour Copilot Chat message
response_textCopilot's response
modelWhatever Copilot reports for that turn
tool_callsTool invocations Copilot ran (when reported)
copilot_versionCaptured into file_context for diagnostic purposes
response_duration_msHow 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).