AI Briefing
KO

Sem: A New Primitive for Code Understanding – An Entity-Centric Approach Based on Git, Not LSP

·2026.06.07 05:03

Key point

Sem has launched, improving AI agent accuracy by providing context based on code entities instead of Git's line-based diffs.

Details

Sem is a tool that grasps changes at the level of code entities such as functions, classes, and methods, going beyond Git's line-based diffs.

Its key features are as follows:

  • sem diff: Entity-level diff analysis and rename detection
  • sem blame: Provides commit information for the last modification of a specific function or method
  • sem impact: Identifies the dependency graph and test coverage affected by a changed entity
  • sem context: Provides optimized context—including entities, dependencies, and dependents—for AI agents

In particular, when used with AI agents, benchmark results showed that providing Sem's output instead of standard line diffs improved accuracy by 2.3x.

It supports 26 languages without any separate configuration or plugins, and is provided as a single binary that can be used immediately in any Git repository.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.