sem
Skill3.4k starsChanged 57 days agoApache-2.0View on GitHub
Use sem for entity-level (function/class/method) code questions in any Git repo. Four questions, four verbs - where is it (sem find, sem grep), what does my change touch (sem impact), is it correct (sem check), what should a human review (sem certify). Trigger whenever the user asks where something is defined or called, what a change breaks or which tests to run, whether a change is correct, what changed in a commit or PR, or what to review; also use it proactively before refactors and in code review, where line-level git output is noisy.
Trending
More talk lately.about the whole repository
Who's talking about Ataraxy-Labs/sem
- A Hacker News story“Sem – Semantic version control. Entity-level diffs on top of Git”Hacker News · Mar 8, 2026 · 95 points
- A Hacker News story“Sem – Semantic Diff behind the new viral merge algo Weave”Hacker News · Mar 5, 2026 · 10 points
- @u11g.com“Exactly the kind of diff abstraction AI-era code review needs when line changes are noisy but semantic …”Bluesky · Jun 19, 2026 · 2 likes
- chenrui333/homebrew-tap“sem-cli 0.26.0”GitHub · Oct 2, 2026 · 1 reactions
- chenrui333/homebrew-tap“sem-cli 0.18.0”GitHub · Jul 3, 2026 · 1 reactions
The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 24
Talked about on GitHub, Bluesky and Hacker News (24 times).
On GitHub · 17
- Oct 2, 2026sem-cli 0.26.0 — chenrui333/homebrew-tap1 reaction · 2 comments
- Jul 3, 2026sem-cli 0.18.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Jun 13, 2026feat: add sem MCP server to all AI tool configs — jellydn/my-ai-tools1 reaction · 3 comments
- Apr 16, 2026add support for delegating to sem — benstroud/lazygaze1 reaction
- Mar 10, 2026Support more file types — Ataraxy-Labs/weave1 reaction · 1 comment
12 more on GitHub
- Oct 5, 2026https://github.com/Ataraxy-Labs/sem — Morrison-Lab/wai0 reactions
- Oct 4, 2026agent-skills.github.ataraxy-labs.sem: 0.26.0 → 0.27.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.ataraxy-labs.sem: 0.25.0 → 0.26.0 — sudosubin/agents.nix0 reactions
- Oct 2, 2026sem-cli 0.26.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 25, 2026Proposal: contrib/sem.tigrc with entity-level diff and blame bindings — jonas/tig0 reactions
- Sep 25, 2026agent-skills.github.ataraxy-labs.sem: init at 0.25.0 — sudosubin/agents.nix0 reactions
- Sep 21, 2026docs(examples): add optional Sem MCP context integration — alibaba/open-code-review0 reactions · 2 comments
- Sep 5, 2026build(deps): bump sem-core from 0.23.0 to 0.23.1 — Ataraxy-Labs/weave0 reactions
- Jul 17, 2026🚀 consider to integrate `sem` — dandavison/delta0 reactions
- Jul 13, 2026https://github.com/Ataraxy-Labs/sem 응용? — Bogyie/codebase-memory-mcp0 reactions
- Jul 6, 2026Clew: P1 semantic spine, engine hardening, redesigned playground, and sem CI — naylorb/BASS0 reactions · 1 comment
- Apr 13, 2026ME-P1-D: Ataraxy-Labs sem as a code-fact supersession backend — dutiona/memory-engine0 reactions
On Bluesky · 5
- Jun 19, 2026Exactly the kind of diff abstraction AI-era code review needs when line changes are noisy but semantic intent matters.… — @u11g.com2 likes and reposts
- Jun 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 Ataraxy-Labs / sem ⭐ 2,523 (+149) 🗒 Rust Semantic version control => entity-level diffs, blame, and… — @github-trending-rs.bsky.social1 likes and repost
- Apr 23, 2026I've had the opportunity to only briefly use this tool, but what I've seen so far is really useful. github.com/Ataraxy-Labs... — @scottslowe.bsky.social1 likes and repost
- Apr 12, 2026Ataraxy-Labs / sem: Semantic version control CLI. Entity-level diff, blame, graph, and impact analysis for code. 23 languages via… — @rusttrending.bsky.social1 likes and repost
- Apr 8, 2026📦 Ataraxy-Labs / sem ⭐ 1,471 (+61) 🗒 Rust Semantic version control CLI. Entity-level diff, blame, graph, and impact analysis for code. 21… — @github-trending-rs.bsky.social1 likes and repost
On Hacker News · 2
- Mar 8, 2026Sem – Semantic version control. Entity-level diffs on top of Git95 points · 24 comments
- Mar 5, 2026Sem – Semantic Diff behind the new viral merge algo Weave10 points · 1 comment
In this repository3 other files it gives its agents.
- docs/llms.txtllms.txt
- SKILL.mdSkill
- semSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Every verb takes --json.
- Very specific: line 34
If the agent has the sem MCP server (tools named mcp__sem__*), call those instead of running sem in a shell.
- Very specific: line 54
When you know or can guess the name, one sem_find call with mode context replaces a grep followed by a file read.
- Distinctive: line 99
When an impact result drives your answer (a refactor decision, a "what breaks" question), render it as a small ASCII tree in the response:
- Very specific: line 129
If there's a conflict with GNU Parallel, add alias sem="$HOME/.cargo/bin/sem" to the shell profile, or use npx sem / bunx sem if installed …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
sem
sem parses 30+ languages with tree-sitter and answers questions about entities
(functions, classes, methods) and the calls between them. Instead of "lines
43-51 changed" it says "function validateToken in src/auth.ts was
modified, and these 3 callers and 2 tests reach it". It works in any Git repo
with no setup. Answers are deterministic; when a caller set may be incomplete,
sem says so.
Four questions, four verbs
| Question | CLI | MCP tool |
| Where is it? | sem find NAME, sem grep TEXT | sem_find, sem_grep |
| What does my change touch? | sem impact NAME, sem impact --diff HEAD --tests | sem_impact |
| Is it correct? | sem check | sem_check |
| What should a human review? | sem certify main..HEAD | sem_certify |
Also: sem diff (which entities changed), sem graph (how the code is
connected), sem history (how an entity changed; --blame for a file).
Every verb takes --json.
Use the MCP tools first
If the agent has the sem MCP server (tools named mcp__sem__*), call those
instead of running sem in a shell. They return compact results and carry
elapsed_ms. If they are deferred, load them first rather than falling back
to Bash.
| Task | MCP call |
where is X defined | sem_find with query: "X" |
read and understand X | sem_find with query: "X", mode: "context": body plus callers and callees, one call, no file needed |
who calls X | sem_find with mode: "callers" |
what X calls | sem_find with mode: "refs" |
| what is in this file or directory | sem_find with in: "src/auth.ts" |
| find code by intent, name unknown | sem_find with intent: "where retries are scheduled" |
| a string, error message, config key | sem_grep, or sem_find with text (hits named by entity) |
| what breaks / which tests to run | sem_impact (mode: "tests" for tests only) |
| is the change correct | sem_check |
| what to review in a range | sem_certify with range: "main..HEAD" |
| what changed | sem_diff |
how X evolved / who changed it | sem_history (blame: true with file_path for a file) |
When you know or can guess the name, one sem_find call with mode
context replaces a grep followed by a file read. Ambiguous names return a
short candidate list; pass in only then.
CLI
# where is it?
sem find validateToken # definition: type name file:line
sem find validateToken --callers # who calls it
sem find validateToken --refs # what it calls
sem find validateToken --context # its code plus callers and callees, token-budgeted
sem find validateToken --context --budget 4000 --hops 1
sem find --in src/auth.ts # every entity in a file or directory
sem grep "token expired" # text, rg-style file:line:text
# what does my change touch?
sem impact validateToken # dependents, deps, transitive impact, tests
sem impact validateToken --tests # only the tests to run
sem impact --diff HEAD --tests # tests for the uncommitted change
sem impact --diff main..HEAD --json # one report per changed entity
# is it correct?
sem check # the project's compiler, type checker, linter, tests: exit 0 pass, 1 fail, 2 could not decide
sem check --checkers ts,tests # only these checkers
# what should a human review?
sem certify main..HEAD # review certificate (markdown)
sem certify main..HEAD --arch # the architecture view
sem certify main..HEAD --json
# more
sem diff # working tree changes, by entity
sem diff --from HEAD~5 --to HEAD --format json
sem graph --json # entity graph; --modules, --dataflow, --system for other layers
sem history validateToken # how it evolved
sem history --blame src/auth.ts # who last changed each entityOlder names (sem callers, sem context, sem entities, sem log,
sem blame, sem arch-diff, sem topology, ...) still work with the same
output.
Draw the blast radius in your reply
When an impact result drives your answer (a refactor decision, a "what breaks" question), render it as a small ASCII tree in the response:
◉ validateToken · src/auth.ts
│ 8 direct → 23 transitive
├─▶ refreshToken src/auth.ts
├─▶ loginHandler src/routes/login.ts
├─▶ SessionMiddleware src/middleware/session.ts
╰─▶ … +5 more (12 tests)Real callers first, tests collapsed into a count, no invented entries: draw only what the tool returned. Skip the drawing when impact was incidental.
Make the leverage felt
sem_find (context mode) and sem_impact return elapsed_ms. When one sem
call replaces several grep/read steps, or catches something text search
cannot (a transitive caller in another file), say so in one terse clause,
e.g. (sem_impact: 9ms, 2 transitive callers grep would miss). Once per
non-obvious win, never a sales pitch. If you fall back to grep or a file read
on a structural question, say why.
Install check
sem --version # confirm sem (not GNU Parallel's sem) is on PATHIf there's a conflict with GNU Parallel, add alias sem="$HOME/.cargo/bin/sem"
to the shell profile, or use npx sem / bunx sem if installed via npm/bun.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

