dsh-node-repl
Per-session Node REPL terminal in the DSH web UI: a session-local floating terminal (ghostty-web) bridged over WebSocket to an in-process node:repl that has the live agent Cordis Context (agent.ctx) in scope.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:idkidknow/dsh-node-repl说明文档
阅读完整 README ↗Usage
Open a session, click REPL, and type JavaScript. Top-level await works:
> 1 + 1
2
> await Promise.resolve(42)
42
> ctx.get("webServer") // any service the agent can reach
> agent.id // the session id
Window controls
| Control | Effect |
|---|---|
Header REPL button | open / restore / collapse |
Title bar – | collapse (keep the REPL alive) |
Title bar ✕ | close (kill the REPL) |
| Drag the title bar | move the window |
| Drag the bottom-right corner | resize |
The REPL belongs to its session: refreshing the page, dropping the WebSocket, or disposing the agent kills it (reopen to start fresh).