本地语义代码索引和 Claude 代码、Codex 和开放代码的 MCP 服务器。包括语义搜索、重用检查、影响分析,以及支持 本地 CLI 和 API 的 VS Code 聊天和代理......
概览
一个AI编码代理覆盖整个代码库。 Sema是 .它只在本地索引一次你的仓库,然后把索引放在你指向的模型前面——所以每个提供者一开始就已经知道你的代码,你可以在不丢失线程的情况下使用。 它在三个地点运行,共享一个索引和一个会话: · ·要求 ·你的机器没有任何东西流出。免责声明 …或者安装(在扩展视图中搜索)。它的面板能完成CLI的所有操作——索引、注册、更新——只需点击即可。 只想要扩展,还是只想要索引?两者都可以独立使用。 五个本地CLI会重复使用你已经付费的订阅——。五个API提供商各自需要一个密钥。 提供者、型号和推理工作量都可以切换——历史、索引以及你的遮蔽和保护设置都会沿用。从你付费的订阅开始,最后选择廉价(或免费)的型号。
概述(AI 翻译)
一个AI编码代理覆盖整个代码库。
Sema 是一个代理代码引擎。它会索引你的仓库一次,然后在本地 它会把这个指数放在你指向的模型前面——所以每个提供者 一开始你已经知道你的代码,你可以更换供应商和型号 对话中途,不要断线。
它在三个地点运行,共享一个索引和一个会话:
| 表面 | 它是什么 |
|---|---|
| VS 代码扩展 | 一个光标风格聊天面板,包含十个引擎、代理权限和可选的遮蔽切换 |
sema chat |
与终端应用相同的代理——模式、工具、斜杠命令、可恢复会话 |
| MCP 服务器 | 用 Claude Code、Codex、opencode、Grok Build 或 Cursor 注册 sema,它们在自己的 CLI 中获得语义搜索——无需扩展 |
用其中一种,或者全部用三种。
实验性 ·macOS和Linux ·需要 Python 3.11+ ·任何东西都不会离开你的机器。免责声明
快速开始
1.安装CLI(如需要,引导 uv + Python 辅助):
2.索引你的项目并注册你的 AI CLI:
3.选一个表面:
…或者安装VS Code扩展
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Sema
One AI coding agent for your whole codebase.
Sema is an agentic code engine. It indexes your repository once, locally, then puts that index in front of whichever model you point it at — so every provider starts out already knowing your code, and you can switch provider and model mid-conversation without losing the thread.
It runs in three places, and they share one index and one session:
| Surface | What it is |
|---|---|
| VS Code extension | A Cursor-style chat panel with eleven engines, agent permissions, and an opt-in redaction toggle |
sema chat |
The same agent as a terminal app — modes, tools, slash commands, resumable sessions |
| MCP server | Register sema with Claude Code, Codex, opencode, Grok Build, or Cursor and they get semantic search in their own CLI — no extension needed |
Use one, or all three.
Experimental · macOS and Linux · Requires Python 3.11+ · Nothing leaves your machine. Disclaimer
Quick start
1. Install the CLI (bootstraps uv + Python if needed):
curl -fsSL https://raw.githubusercontent.com/get-sema/sema/main/install.sh | sh
2. Index your project and register your AI CLIs:
cd your-project
sema index . # build the local semantic index
sema setup # register with every detected client: Claude Code, Codex, opencode, Grok Build, Cursor
3. Pick a surface:
sema chat # the terminal agent (needs the chat extra — see below)
…or install the VS Code extension (search “sema” in the Extensions view). Its Manage panel does everything the CLI does — index, register, update — in a click.
Want just the extension, or just the index? Both work standalone. Installation guide →
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →