hive开放代码
它做什么
- 桥 --在vterm缓冲区中生成OpenCode进程,管理生命周期(生成/杀死/发送/状态)
- 配置 --按会话生成
.opencode.json带有有线连接的hive mcp和自定义mcp服务器 - 工具 --暴露于OpenCode的Emacs原生工具(缓冲区检查、elisp eval、窗口布局、项目文件、git状态)
- Swarm集成 -API入口点与艾滋病病毒群繁殖约定兼容
建筑
写于 ClojureElisp(cljel) --Clojure语法编译为Emacs Lisp。
src/cljel/opencode_emacs/
bridge.cljel — Core spawn/kill/send/status + swarm API
config.cljel — .opencode.json generation with hive-mcp wiring
tools.cljel — Buffer, eval, window, project, git tools编译后的输出为 out/.
构建
make compile # Compile cljel -> elisp
make watch # Watch mode
make clean # Remove compiled output需要 clel CLI来自 clojure elisp.
为什么“hive opencode”不是“opencode emacs”?
OpenCode支持 opencode serve + opencode attach 它可以在任何终端(tmux、kitty等)上工作。cljel文件是Emacs特定的实现,但项目范围比Emacs更广。
许可证
版权所有(c)2024-2026 hive agi贡献者
EPL-2.0或GPL-2.0或更高版本,具有Classpath-eception-2.0。看 许可证.
