sem

語意版本控制 => 基於 Git 的實體層級差異比較、責任歸屬及影響分析。透過 tree-sitter 支援 28 種語言。專為編碼代理打造。

sem 是什麼?

語意版本控制 => 基於 Git 的實體層級差異比較、責任歸屬及影響分析。透過 tree-sitter 支援 28 種語言。專為編碼代理打造。

sem 概覽

這是什麼

sem 是一個基於 Git 的語意版本控制工具。它使用 tree-sitter 解析程式碼,將每個函式、類別和方法提取為實體,並在實體層級(而非行層級)進行差異比對。透過 tree-sitter 支援 28 種語言,專為程式碼代理(coding agents)設計。無需設定即可在任何 Git 儲存庫中使用。雲端查詢功能為每個儲存庫選擇性啟用。

主要功能

  • 基於 Git 的實體層級差異比對、責任歸屬(blame)與影響分析
  • 透過 tree-sitter 支援 28 種語言
  • 指令包括 find、grep、impact、check、certify、diff、graph、history、cloud、config 和 mcp
  • 無需設定即可在任何 Git 儲存庫中使用
  • 為 AI 代理提供 MCP 工具
  • 將 SQLite 實體快取儲存在儲存庫外部

使用情境

  • 尋找函式、類別或方法的定義位置及其呼叫者
  • 確定變更影響的範圍,包括依賴項目和測試
  • 透過僅執行受影響的編譯器、型別檢查器、linter 和測試來檢查正確性
  • 為提交範圍產生審查憑證
  • 對原始碼檔案進行文字搜尋,輸出格式與 rg 相容

快速開始

bashcurl -fsSL https://raw.githubusercontent.com/Ataraxy-Labs/sem/main/install.sh | sh或透過 Homebrew:bashbrew install sem-cli或透過 Windows 的 winget:powershellwinget install AtaraxyLabs.sem或透過 Windows 的 Scoop:powershellscoop install sem或安裝 npm wrapper:bashnpm install --save-dev @ataraxy-labs/sem安裝後,更新至最新版本:bashsem config update

授權與價格

採用 Apache-2.0 授權。開源軟體。

內容整理自該專案公開的 README 與儲存庫資訊。

將此徽章加入你的 README

Featured on YunoDB 徽章樣式與說明

你是這個專案的維護者嗎?展示它已收錄於 YunoDB。

Markdown[![Featured on YunoDB](https://yunodb.com/badge/ataraxy-labssem.svg)](https://yunodb.com/tools/ataraxy-labssem?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/ataraxy-labssem?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/ataraxy-labssem.svg" alt="Featured on YunoDB" height="20"></a>