dsh-omniloop
在终端中运行以下命令:
dsh plugin install vidgewong/dsh-omniloop
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中执行 dsh plugin install vidgewong/dsh-omniloop 完成安装,插件源码地址:https://github.com/vidgewong/dsh-omniloop
插件介绍
dsh admits exactly one AgentFactory per process, which meant running Claude Code required disabling the built-in loop and dragging every session along with you. dsh-omniloop seizes that single slot and turns it into a router: the in-process loop, Claude Code, Codex, and Pi each hold their own factory, and every createAgent or resume call is dispatched to the engine that session belongs to. No global switch, no restart, no interrupted work.
Choosing an engine feels as natural as choosing a model — a click in the composer when you start a session. The binding is durable: a session's engine is recorded at creation and restored on resume, so replaying Codex history will never accidentally land on the built-in loop. Forked sessions and subagents inherit the parent's engine. Each engine's native output is translated into dsh's unified Message, ContentBlock, and StreamChunk types, so storage, streaming, resumption, and tracing behave identically regardless of origin.
If you routinely work across Claude Code, Codex, Pi, and dsh's built-in loop and would rather pick an engine per task than pay a restart and a context switch every time, this plugin is built for you. Once installed, engine selection is pure runtime state — switching never requires a restart, and the session you are in keeps running on the engine it was born with, undisturbed.
使用场景
- 按会话切换 Claude Code、Codex、Pi 与内置循环,无需重启 dsh
- 在同一 dsh 实例中并行运行不同引擎的会话,共享统一存储与追踪
- 恢复会话时自动还原其原始引擎,避免跨引擎回放错乱历史
适合人员
- 频繁在多个 AI 编码引擎间切换、不想每次重启的开发者
- 希望统一会话管理、消息格式与追踪链路的多引擎用户
- 使用 dsh 并需要按任务粒度选择 Agent 引擎的团队