Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>BlamePromptNew to Visual Studio Code? Get it now.
BlamePrompt

BlamePrompt

Blameprompt

| (1) | Free
Track AI-generated code provenance in your editor. See which lines were AI-written, the prompts behind them, cost, and chain of thought.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

BlamePrompt for VS Code

See which lines of your code were written by AI — directly in your editor.

BlamePrompt tracks every AI-generated line back to its prompt, model, cost, and full chain of thought. This extension surfaces that data inside VS Code so you never lose context on how your code was written.

Features

Source Control-style Commit History

Browse ALL commits in your git history — not just AI ones. AI-assisted commits stand out with a sparkle icon and are expandable to show the prompts behind them. Plain commits appear with a standard git icon, giving you full project context like VS Code's built-in Source Control view.

Rich Commit Tooltips

Hover over any commit to see a detailed tooltip: author, email, date, full commit message, files changed with per-file insertion/deletion counts, and whether the commit was AI-assisted. Tooltips load lazily so the tree stays fast.

Prompt History Graph

A visual timeline of your entire commit history with AI prompts overlaid. AI commits are prominent with amber dots and expandable prompt entries showing model, cost, files, and tool/MCP/agent chips. Plain commits appear subdued in the timeline. The stats bar shows total commits (with AI count), prompts, cost, and files at a glance.

File History

Open any file to see every commit that touched it — across its full git history, including renames. Commits with matching AI receipts are expandable to show which prompts modified the file and the specific line ranges. Plain commits show author, sha, and time.

Multi-repo Workspace Support

Works seamlessly with multi-root workspaces. Each workspace folder's git history is discovered independently. The Prompt History tree groups commits by repository, the File History automatically detects which repo a file belongs to, and the Prompt Graph merges commits from all repos into a unified timeline sorted by date.

Line-by-line AI Attribution

AI-generated lines are highlighted with yellow gutter markers and background tinting. Human-written lines stay clean.

CodeLens Annotations

See the model, cost, and prompt summary above every AI-generated block — right in the editor.

Chain of Thought

Click any receipt to open the full conversation: every user prompt, AI response, and tool call that produced the code. Displayed as a timeline with collapsible messages and syntax-highlighted code blocks.

Sidebar Receipt Tree

Browse all AI receipts grouped by commit and session. Expand any receipt to see provider, model, cost, files, lines changed, tools used, MCP servers called, and sub-agents spawned.

Auto-refresh on New Commits

Views automatically refresh when HEAD changes, branches switch, or new commits land. No manual refresh needed — just commit and the history updates.

Status Bar

The bottom-right status bar shows the AI percentage for the current file (e.g. "45% AI").

Hover Tooltips

Hover over any AI-generated line to see a quick summary: model, provider, cost, and a link to the full receipt.

Search Prompts

Search across all stored prompts from the command palette. Results show model, file, cost, and prompt summary.

Requirements

  • BlamePrompt CLI must be installed
  • A git repository with BlamePrompt hooks active

Install the CLI

curl -sSL https://blameprompt.com/install.sh | bash

Or build from source:

git clone https://github.com/Ekaanth/blameprompt
cd blameprompt
cargo install --path .
blameprompt init --global

How it Works

  1. BlamePrompt hooks into Claude Code (and other AI agents) to capture receipts — the prompt, model, cost, files changed, and conversation turns
  2. Receipts are stored as Git Notes under refs/notes/blameprompt, attached to each commit
  3. This extension calls the blameprompt CLI with --format json and renders the data in VS Code
  4. The extension also reads raw git history (git log, git diff-tree) to show ALL commits alongside AI receipts

No external services. No telemetry. Everything stays local in your git repo.

Commands

Open the command palette (Cmd+Shift+P / Ctrl+Shift+P) and type "BlamePrompt":

Command Description
BlamePrompt: Blame Current File Show AI attribution for the active file
BlamePrompt: Toggle AI Line Decorations Show/hide yellow line highlights
BlamePrompt: Show Receipt Details Open the receipt detail panel
BlamePrompt: Search Prompts Search across all stored prompts
BlamePrompt: Refresh Clear cache and refresh all views
BlamePrompt: Refresh Prompt History Refresh the Prompt Graph webview
BlamePrompt: Refresh File History Refresh the File History tree

Settings

Setting Default Description
blameprompt.binaryPath blameprompt Path to the blameprompt binary
blameprompt.cacheTTLSeconds 30 Cache time-to-live in seconds
blameprompt.commitHistoryLimit 100 Maximum number of recent commits to show in history views (10-1000)

License

MIT

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