opencode-amplifierOpenCode plugin for the native Amplifier runtime: thin client, fail-closed bootstrap, and authoritative Amplifier-mode execution
GitHub 星标
0
月装机量
63
近 7 天 1
综合评分SCORE
22.9
生态多维模型
最近提交
5 个月前
2026-03-19
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-amplifier@0.5.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-amplifier@0.5.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-amplifieropencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→OpenCode plugin that brings Amplifier into any OpenCode session — bundles, modes, agents, provider switching, and diagnostics.
Install
uv tool install amplifier # 1. install amplifier
npm install -g opencode # 2. install opencode
echo '{ "plugin": ["opencode-amplifier"] }' > opencode.json # 3. add the plugin
opencode # 4. run it
The plugin registers 19 tools and 4 hooks automatically. Try:
modes # list available modes
bundle list # list available bundles
use foundation # switch active bundle
bundle add git+https://... # install a new bundle
brainstorm # activate brainstorm mode
mode off # clear active mode
What you get
| Category | Tools |
|---|---|
| Status | amplifier_status, amplifier_capability, amplifier_emit |
| Bundles | amplifier_bundle_list, amplifier_bundle_show, amplifier_bundle_resolve, amplifier_bundle_use, amplifier_bundle_current |
| Agents | amplifier_agents_list, amplifier_agents_show |
| Providers | amplifier_provider_list, amplifier_provider_use |
| Modes | amplifier_modes_list, amplifier_mode |
| Settings | amplifier_settings_get, amplifier_settings_set |
| Diagnostics | amplifier_init, amplifier_doctor, amplifier_cli |
Development
git clone https://github.com/michaeljabbour/opencode-amplifier.git
cd opencode-amplifier
bun install
bun test # 80 tests, clean output
bun run typecheck # should exit silently
Local plugin development
To test local changes without publishing:
{
"plugin": ["file:///absolute/path/to/opencode-amplifier"]
}
Requirements
License
MIT