READMESource: main@0fe9f6d6
dsh-loop-engine
Switch the agent loop engine of dsh web the same way you switch a model: a "Loop engine" dropdown in Settings chooses which driver runs your agents — the built-in in-process loop, the Claude Code CLI, the Codex CLI, or the Pi CLI — without changing anything in the main repository.
Install
dsh plugin --profile web add dsh-loop-engine
Restart dsh web, then open Settings → Loop engine.
Switching engines rewrites a small managed block in
cordis.patch.yml. Everything else you wrote in that file is preserved; only the plugin's own span changes.
Requirements
- For the Claude Code engine: the Claude Code CLI installed and logged in on the host.
- For the Codex engine: authenticated either via
codex loginon the host or aCODEX_API_KEYenvironment entry. - For the Pi engine: authenticated the way
piexpects (its own~/.pi/agent/auth.jsonor the provider's API-key environment variable such asANTHROPIC_API_KEY).
Usage
- Pick an engine in Settings → Loop engine —
in-process(default),claude-code,codex, orpi— then restartdsh web. - To return to the default, pick In-process and restart again.
- To remove the plugin:
dsh plugin --profile web remove dsh-loop-engine, then restartdsh web.
Engine notes
- The Claude Code driver runs one SDK query per step; its slash commands are
bridged into the web menu (built-ins plus user-level
~/.claude/commands/) and forwarded to the engine, which expands them natively. Project-level.claude/commands/files stay engine-side and also work typed directly. - The Codex driver runs
codex app-serverand has no interactive tool approval — permissions come from the session'ssandboxMode+approvalPolicy. ItsAGENTS.mdinstruction files are surfaced through the dsh skill-injection seam across every directory from the session cwd up to the git root, plus~/.codex/AGENTS.md. - The Pi driver runs
pi --mode rpc; Pi has no permission system, so the whole child is sandboxed through the dsh subprocess service (defaultread-only). Its context files (AGENTS.md/CLAUDE.mdwithAGENTS.override.mdpreferred, plus the user-level file under the pi config dir) and itsskills/catalogs (~/.pi/agent/skills/and.pi/skills/) are surfaced through the dsh skill-injection seam.
License
MIT
No comments yet. Be the first to write one.