DeepSeek Harness leans on familiar plugin architecture
A Juejin author’s source-code analysis finds that DeepSeek Harness relies on Cordis, whose hooks, onion-model middleware, dependency injection, and hot reload resemble patterns used by Webpack, Koa, Express, React, and Vite. Cordis instead determines plugin readiness through declared dependencies rather than configuration-file order, while DeepSeek Harness extends these patterns around an LLM loop for tool execution and agent orchestration.
The analysis gives developers familiar engineering concepts for understanding how DeepSeek Harness organizes plugins, dependencies, middleware, and tool execution, though the cross-framework comparisons are the author’s explanatory analogies.
一个前端工程师读完 Cordis 源码后的技术分享 目标读者:有 React / Node 经验,但对 Agent 框架完全陌生的前端同学 阅读时间:约 25 分钟 环境:DeepSeek Harness v0.2.2-rc.2 / Cordis 4.1.0
我以为要重新学一套东西
第一次打开 DeepSeek Harness(下称 DSH)的源码,我做好了心理准备——Agent 框架嘛,应该是一堆模型调用、提示词工程、向量检索,跟我写 React 的日常八竿子打不着。
结果读了 Cordis(DSH 底层的插件框架)的源码之后,我发现:
这东西的内核,我全都认识。