CodeTrace_Extension is a VS Code extension for exploring repository history, blame, status, references, and worktrees directly inside VS Code.
It uses your local Git CLI, stays lightweight, and focuses on practical repo insight without depending on GitLens.
- Inspect file history without leaving the editor
- View line blame inline or on hover while reading code
- Open commit details, patch views, and previous file revisions quickly
- Track branches, tags, stashes, remotes, and worktrees from a dedicated sidebar
- Explore repository history in a visual commit graph webview
- Generate commit messages or staged diff explanations with an optional local or custom AI endpoint
- Inline blame annotations for the current line or all visible lines
- Hover blame with commit hash, author, date, and summary
- File History sidebar for the active file
- Commit Graph webview with branch filters and working tree awareness
- Branch list sidebar
- Status sidebar with stage, unstage, diff, and discard actions
- References sidebar for tags, stashes, and remotes
- Worktree sidebar with open, copy path, add, and remove actions
- Commit details viewer
- Compare the current file with the previous revision
- Compare a selected file-history entry with its parent revision
- Open a file at any previous revision
- Show history for the current selection or line range
- AI commit message generation and staged diff explanation
- VS Code 1.90 or newer
- Git installed and available on your PATH
File History: commit history for the active fileCommit Graph: visual repository history with branch contextBranches: local and remote branchesStatus: working tree changes with quick actionsReferences: tags, stashes, and remotesWorktrees: Git worktree management
Use inline blame, hover blame, file history, and commit details together to understand why a line changed and what the related patch looked like.
Use the Status, Branches, References, and Worktrees views to inspect what is currently changed, what refs exist, and which parallel worktrees are active.
Open the Commit Graph webview to browse commit relationships, filter by branch, and inspect working tree state alongside repository history.
npm install
npm run compileRun the extension in VS Code with F5.
See CONTRIBUTING.md for contribution guidelines and submission expectations.
npm install
npm run compile
npm run packageThis creates a .vsix file in the project root.
- In VS Code open the Extensions view.
- Select the
...menu in the top-right corner. - Choose
Install from VSIX.... - Pick the generated
.vsixfile.
Or install from the command line:
code --install-extension ./codetrace-extension-<version>.vsixopenGitInsight.inlineBlame.enabledopenGitInsight.inlineBlame.modeopenGitInsight.history.maxCommitsopenGitInsight.codeLens.enabledopenGitInsight.ai.provideropenGitInsight.ai.endpointopenGitInsight.ai.modelcodeTraceGit.commitGraph.maxCommitscodeTraceGit.commitGraph.showRemoteBranchescodeTraceGit.commitGraph.defaultBranchFilter
- Files outside Git repositories are handled gracefully.
- Git command failures are surfaced with user-friendly error messages.
- The extension does not use GitLens code, branding, or assets.