GitHub 星标
0
月装机量
301
近 7 天 38
综合评分SCORE
32.8
生态多维模型
最近提交
1 个月前
2026-07-01
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gitnexus@0.1.18"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-gitnexus@0.1.18"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-gitnexusopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→OpenCode plugin for GitNexus integration.
What it does
- Auto-registers the GitNexus MCP server
- Injects a GitNexus usage protocol into the system prompt
- Runs a fire-and-forget auto-update check on init
- Auto-analyzes source code repos on first open
Install
{
"plugin": ["opencode-gitnexus"]
}
Default MCP command
npx -y gitnexus serve
Plugin options
| Option | Type | Default | Description |
|---|---|---|---|
mcpCommand |
string[] |
npx -y gitnexus serve |
Override the MCP launch command |
disableMcp |
boolean |
false |
Skip auto-registering GitNexus |
disableProtocol |
boolean |
false |
Skip system prompt injection |
disableAutoUpdate |
boolean |
false |
Skip update checks on init |
disableAutoAnalyze |
boolean |
false |
Skip auto-analyzing repos on open |
autoAnalyzeMaxSizeMB |
number |
100 |
Max repo size (MB) for auto-analysis |
Notes
- The plugin uses
configto inject the MCP server. - The plugin uses
experimental.chat.system.transformto add GitNexus guidance. - Auto-update runs in the background and will ask for a restart if it upgrades itself.