sem
Lets your AI agent see which functions and classes changed, who calls them and which tests to run, on top of Git.
3.4k stars on GitHubby Ataraxy LabsLicense Apache-2.0Updated 19 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add sem -- npx -y @ataraxy-labs/sem mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Who calls parse_config and which tests cover it?
What does my uncommitted change affect, and which tests should I run?
What it is
sem is a semantic version control tool that works on top of Git. It reads code with tree-sitter and finds functions, classes and methods as entities. Instead of changed lines, your agent learns which entities changed, what depends on them and what to review. sem mcp serves the same commands as MCP tools.
What it can do
sem find: find where a function, class or method is defined, plus callers and referencessem grep: search text in source filessem impact: show what a change touches and the tests to runsem check: run the project's compiler, type checker, linter and testssem certify: build a review certificate for a commit rangesem diff: show which entities changedsem history: see how an entity changed over time and who last changed it
When to use
- βΊWhen you change a function and want to know what else could break.
- βΊWhen you want your agent to run only the tests your change can affect.
- βΊWhen you need a summary of what a human should review in a branch.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
graph-queryLets your agent query a code dependency graph to find callers, related components and the impact of a change before the code is edited.differential-reviewHelps your agent review a pull request, commit or code diff for security problems, checking blast radius, git history and test coverage, then write a report.calldiffHelps your agent compare the chains of function calls in a codebase between two git versions, so a code review can see what behavior changed.Frequently asked questions
Is it free and open source?
Yes. The readme shows MIT license files and installs from GitHub releases, crates.io and package managers.
Which languages does it support?
The repo description says 28 languages via tree-sitter.
Does it need setup?
No. It works in any Git repo with no setup, and also for comparing files outside Git.
Does it upload my code?
Cloud queries are opt-in per repo. Logging in does not upload a repo or send a query.
Why does sem not run on my machine?
GNU Parallel also ships a sem binary. Run sem --version and put the right one first in your PATH.
Where does it keep its cache?
Outside the repo, under the OS cache directory. Set SEM_CACHE_DIR to change it.
If it does not work
- βΊIf sem behaves like GNU Parallel, check which sem runs with sem --version and fix your PATH.
- βΊWith Bun, run bun pm trust @ataraxy-labs/sem so the binary can download.
- βΊUpdate with sem config update.
5 new skills a week. 1 minute to read.