Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copilot Attribution TrackerNew to Visual Studio Code? Get it now.
Copilot Attribution Tracker

Copilot Attribution Tracker

Signals AI

|
1 install
| (0) | Free
Detects, tracks, and reports Copilot-generated vs human-written code with line-level attribution
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copilot Attribution Tracker

A VS Code extension that detects, tracks, and reports Copilot-generated vs human-written code with line-level attribution, gutter icons, a live dashboard, and server-side reporting on commits.


Features

Feature Description
Line Attribution Every line in every open file is classified as AI-generated, human-written, or human-modified AI
Gutter Icons Blue = AI, Green = Human, Orange = Human-edited AI, Gray = Uncertain
Status Bar Live percentage breakdown (AI: 45% \| Human: 55%)
Dashboard Webview panel with file-by-file stats
Commit Reporting Sends attribution JSON to a configurable API endpoint on commit
Persistence Attribution survives editor restarts via .vscode/copilot-attribution.json
Export Export a full attribution report as JSON

Architecture

src/
├── extension.ts       Main entry point – wires all components together
├── types.ts           Shared TypeScript interfaces
├── classifier.ts      Multi-signal AI/human heuristic classifier
├── lineTracker.ts     Per-file line attribution state machine
├── visualizer.ts      Gutter decorations & status bar
├── dashboard.ts       Webview dashboard panel
├── gitIntegration.ts  Pre-commit hook & server reporting
├── persistence.ts     Load/save attribution to .vscode/copilot-attribution.json
└── test/
    ├── classifier.test.ts
    └── lineTracker.test.ts
icons/
├── ai.svg
├── human.svg
├── modified.svg
└── uncertain.svg

Getting Started

Prerequisites

  • Node.js 18+
  • VS Code 1.90+

Install & Run

npm install
npm run compile

Press F5 in VS Code to open the Extension Development Host.

Package as .vsix

npx vsce package
code --install-extension copilot-attribution-tracker-0.1.0.vsix

Configuration

Setting Default Description
copilotTracker.enabled true Enable / disable tracking
copilotTracker.showGutterIcons true Show gutter attribution icons
copilotTracker.confidenceThreshold 0.6 Minimum AI confidence score (0-1)
copilotTracker.apiEndpoint "" Server endpoint to POST commit reports
copilotTracker.apiToken "" Bearer token for the endpoint
copilotTracker.sendOnCommit true Auto-send report on git commit

Commands

Command Description
Copilot Tracker: Show Copilot Attribution Dashboard Open the dashboard
Copilot Tracker: Export Attribution Report Save a JSON report
Copilot Tracker: Clear Attribution Data Wipe all in-memory & stored data
Copilot Tracker: Toggle Attribution Tracking Enable/disable for the workspace

Classifier Signals

Signal Score Added Description
multi-line-insertion +0.4 3+ lines inserted with no prior selection
high-velocity +0.3 40+ chars inserted instantly
copilot-pattern +0.3 Matches function/import/type patterns
large-replacement +0.2 100+ chars replacing 3+ lines

A combined score ≥ 0.6 → AI. 0.3–0.6 → Uncertain. < 0.3 → Human.


Development

npm run watch     # Incremental TypeScript compilation
npm test          # Run unit tests
npm run lint      # ESLint

Server API

On commit the extension POSTs a CommitAttributionReport JSON payload to your configured endpoint:

{
  "commitHash": "abc1234",
  "timestamp": 1710000000000,
  "repository": "my-repo",
  "branch": "main",
  "author": "dev@example.com",
  "files": [...],
  "totals": {
    "aiLines": 120,
    "humanLines": 80,
    "modifiedAILines": 12,
    "totalLines": 200,
    "aiPercentage": 60.0
  }
}

See src/types.ts for the full schema.

vs-code-annotator

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft