yahtoo/opencode-deep-dive
A source-driven deep dive into OpenCode, covering the architecture and implementation of a modern AI coding agent.
Platform-specific configuration:
{
"mcpServers": {
"opencode-deep-dive": {
"command": "npx",
"args": [
"-y",
"opencode-deep-dive"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
> 一本基于真实源码展开的 OpenCode 深度解构手册。
以 OpenCode 为分析对象,系统拆解一个现代 AI Coding Agent 从配置、会话、工具、权限到 UI 与扩展生态的完整工程实现。
它不试图重复官方文档,而是把散落在源码中的关键机制重新组织成一条可阅读、可验证、可复用的工程主线:AI Coding Agent 到底如何组织上下文?Tool 为什么能安全执行?Session、Agent、Provider、MCP、Plugin 在工程上如何协作?
---
code/opencode/ 子模块code/opencode/packages/opencode/ 表示,如 src/session/prompt.ts---
Loading reviews...