<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agent | Danny's IT Shared Blog</title><link>https://danny5487401.github.io/tag/agent/</link><atom:link href="https://danny5487401.github.io/tag/agent/index.xml" rel="self" type="application/rss+xml"/><description>Agent</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 24 Oct 2026 00:00:00 +0800</lastBuildDate><image><url>https://danny5487401.github.io/media/icon_hu17982190414667672571.png</url><title>Agent</title><link>https://danny5487401.github.io/tag/agent/</link></image><item><title>DeepSeek Harness (dsh)</title><link>https://danny5487401.github.io/ai/dsh/</link><pubDate>Sat, 24 Oct 2026 00:00:00 +0800</pubDate><guid>https://danny5487401.github.io/ai/dsh/</guid><description>&lt;p>DeepSeek Harness（简称 &lt;code>dsh&lt;/code>）是 DeepSeek 开源的 AI Agent 运行框架。它基于 &lt;a href="https://github.com/cordiverse/cordis" target="_blank" rel="noopener">Cordis&lt;/a>，将模型适配器、工具注册、会话日志和 Agent 循环等能力组织为插件。运行时通过 profile 组合插件，而不是把这些能力固定在单一核心中。&lt;/p>
&lt;h2 id="架构">架构&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>插件&lt;/strong>：向共享上下文注册服务、事件和可撤销的扩展能力。&lt;/li>
&lt;li>&lt;strong>Bundle&lt;/strong>：提供一组插件及其配置。&lt;/li>
&lt;li>&lt;strong>Profile&lt;/strong>：按顺序组合 Bundle 和配置补丁，决定一个 &lt;code>dsh&lt;/code> 进程启动哪些能力。官方提供 &lt;code>web&lt;/code>、&lt;code>headless&lt;/code>、&lt;code>sdk&lt;/code>、&lt;code>sdk-minimal&lt;/code> 和 &lt;code>acp&lt;/code> 等模板。&lt;/li>
&lt;/ul>
&lt;p>插件树和配置叠加方式见&lt;a href="https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/architecture.md" target="_blank" rel="noopener">官方架构文档&lt;/a>。项目仍处于预览阶段，插件和配置接口可能发生不兼容变更。&lt;/p>
&lt;h2 id="快速体验">快速体验&lt;/h2>
&lt;p>安装 Node.js 后，在需要访问的项目目录运行：&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-shell" data-lang="shell">&lt;span class="line">&lt;span class="cl">npx @deepseek-ai/dsh web
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>默认会在 &lt;code>http://127.0.0.1:3080&lt;/code> 启动 Web UI。首次使用时，在 &lt;strong>Settings → Models&lt;/strong> 配置模型，然后选择工作目录，才能开始会话。运行前应阅读项目的&lt;a href="https://github.com/deepseek-ai/deepseek-harness/blob/master/SAFETY.md" target="_blank" rel="noopener">安全说明&lt;/a>。&lt;/p>
&lt;h2 id="参考">参考&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://github.com/deepseek-ai/deepseek-harness" target="_blank" rel="noopener">DeepSeek Harness 官方仓库&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/index.md" target="_blank" rel="noopener">Web UI 使用指南&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>