正在打开每日关注
正在打开每日关注
OpenWiki 以 Agent 生成并持续维护代码 Wiki,借 CI 定时更新并自动提 PR。
OpenWiki is designed to run in the background, without you needing to think about it It'll generate docs, update your AGENTS.md so your agent automatically knows how to read the docs, and update itself automatically. All of this allows you to set it up once, then forget about it! To let it update itself automatically, we've included a GitHub workflow you can copy into your repo which will run OpenWiki nightly to update its docs! Check it out today and start using OpenWiki locally: https://t.co/SepILQO0GD
是什么 OpenWiki 是 langchain-ai/openwiki 仓库中的 TypeScript CLI,目标不是一次性生成 README,而是把代码库或个人知识整理成可持续维护、供 Agent 读取的 Markdown Wiki。仓库元数据显示其拥有 15,806 个 Stars。
核心设计
代码模式围绕可恢复的页面任务队列展开:begin → submit_plan → next_page → submit_page → finish,通过运行状态、页面清单和源码基线保存进度;每页完成后持久化 Markdown、Claims 与验证结果。Grounded Claims 将关键事实绑定到带版本的仓库证据,证据变化时重新处理相关页面。项目还提供 Codex、Claude Code、OpenCode、Cursor 集成、九类连接器、交互式节点图和 OKF v0.2 输出。
关键洞察
它把“文档生成”升级为有证据、有生命周期的 Agent 记忆层。图中的 GitHub Actions 通过 cron 定时执行 openwiki --update --print 并自动创建 PR,既降低维护成本,也保留代码审阅入口;页面级持久化让中断恢复和增量更新更可控。
边界与风险 Host-driven 集成当前只支持仓库代码 Wiki,不支持 connector-sourced context;自动生成仍需审查事实、权限与 PR 内容。个人模式、模型供应商、连接器和本地状态目录也需要明确凭据与数据边界。