sem is a semantic version control utility designed to help developers and AI coding agents understand source code changes beyond traditional line-based comparisons. It uses Tree-sitter to analyze code structures across 28 programming languages. Semantic comparisons identify added, modified, deleted, renamed, and relocated programming entities. Developers can inspect individual functions and classes, trace dependencies, and evaluate the potential impact of modifications. Entity-level history and blame functionality provide insights into how specific code structures evolve over time. Integrated verification tools execute project-specific compilers, linters, and tests. Review certificates summarize changes and affected dependencies for human reviewers. Its command-line tools are also accessible through an integrated MCP server.
Features
- Entity-level semantic source code comparisons supporting 28 programming languages through Tree-sitter
- Structural change detection covering added, modified, deleted, renamed, and relocated programming entities
- Integrated dependency graph analysis for identifying callers, references, and affected code structures
- Entity-level version history and blame functionality for tracking individual source code components
- Project-specific verification through automated compiler, type checker, linter, and test execution
- MCP server integration with structured review certificates for AI coding agents and human reviewers