A joke VS Code extension. It quietly "leaks" your local GitHub Copilot chat
history to a dramatic AI Human Resources investigator, who reads it and
decides whether you'd be FIRED or get to KEEP YOUR JOB.
It's powered by the VS Code Language Model API, so the verdict comes from your
own Copilot model — no third-party server, no data leaving your machine beyond
the prompt sent to Copilot.
How to run it
Install dependencies:
npm install
Press F5 (Run → "Run AI HR Extension"). A second VS Code window
opens with the extension loaded.
In that window, open the Command Palette (Ctrl/Cmd+Shift+P)
and run "AI HR: Would You Get Fired?".
The first time, VS Code asks you to allow the extension to use Copilot. Approve it.
A panel opens and streams your verdict.
What it actually does
Finds VS Code chat session files under your user directory
(workspaceStorage/<id>/chatSessions/*.json and a couple of sibling
locations), newest first.
Flattens the most recent sessions into a transcript (capped at ~24k chars).
Sends that transcript to your Copilot chat model with a satirical
"HR investigator" prompt.
Renders the streamed verdict in a themed webview (red = fired, green = safe).
Requirements
GitHub Copilot + Copilot Chat installed and signed in.
VS Code 1.90 or newer (for the stable Language Model API).
Privacy & safety
Runs entirely locally except for the model request, which goes to your
configured Copilot model like any other Copilot chat.
The prompt instructs the model to redact any secrets/API keys it spots
instead of echoing them.
This is entertainment only. It is not real HR advice and makes no real
employment judgments.
Project layout
src/
extension.ts Command wiring, model selection, streaming
chatHistory.ts Locating + parsing Copilot chat session files
webview.ts The verdict panel (HTML/CSS/JS with a tiny markdown renderer)