sem
Entity-level git diffs, blame and impact analysis for code
sem is a command-line tool for reading version history at the level of functions and other code entities rather than lines. It adds entity-level diffs, blame and impact analysis on top of git, so a developer can see which named parts of a codebase changed and what else they affect. It is aimed at developers and at coding agents that need to understand a change before editing code.
The tool uses tree-sitter to parse source files and supports 28 languages. It is released under the Apache-2.0 license and the source code is public on GitHub. The project also publishes a website with documentation.
Alternatives to sem
Products that do a similar job in Developer Tools.
lazygit
Terminal UI for running git commands with keyboard shortcuts
Git Credential Manager
Stores Git login credentials for multiple hosting providers
GitHub Desktop
Graphical Git client for committing, branching and reviewing pull requests
GitKraken
Desktop Git client with a visual commit graph and branch view
git-history
Browse the commit history of a single file in a git repository
tig
Text-mode interface for browsing and working with git repositories
GitLens
Git blame annotations and history views inside VS Code
gitoxide
Pure Rust implementation of Git with a command-line tool