主题
编码智能体集成
使用宿主的模型和工具,在 Codex、Claude Code、OpenCode 或 Cursor 中运行 OpenWiki
OpenWiki 可以运行在现有的编码智能体内部,而不是启动自己的模型。该编码智能体会调查仓库、规划 wiki,并使用其原生的仓库工具编写每个分配的页面。OpenWiki 负责持久化的页面任务生命周期、Claims 校验与持久化、来源漂移处理以及确定性最终化。
宿主驱动的运行仅支持仓库代码模式 wiki,不支持个人模式。它们使用编码智能体已认证的模型会话,因此不需要 OpenWiki 服务商凭据。此路径上尚不支持来自连接器的上下文(包括 LangSmith)。
安装集成
受支持的宿主包括 Codex、Claude Code、OpenCode 和 Cursor。安装默认在用户级别进行,因此一次安装即可在任何 Git 仓库中生效:
bash
openwiki integrations install codex
openwiki integrations install claude
openwiki integrations install opencode
openwiki integrations install cursor安装后重启该编码智能体。然后打开仓库并询问:
txt
Initialize this repository's OpenWiki from the current source and tests.对于现有的 wiki,请询问:
txt
Update this repository's OpenWiki for changes since its last successful run.检查或卸载
bash
openwiki integrations list
openwiki integrations uninstall <codex|claude|opencode|cursor>为 list、install 或 uninstall 添加 --project [path],以获得仓库范围的状态。项目路径会解析为 Git 仓库根目录。用户级别的 OpenCode 集成位于 ~/.config/opencode 下。
宿主驱动的运行如何工作
宿主驱动的运行遵循与原生 openwiki --init 和 openwiki --update 相同的可续传页面任务生命周期。编码智能体负责仓库研究和页面编写;OpenWiki 校验每次完成、持久化有据可依的 Claim,并通过 MCP 最终化元数据。