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.
AI Analysis
核心用途是在 Web 界面中提供一个悬浮的 Node.js 交互式终端,允许直接编写 JS 代码并访问当前 Agent 运行上下文。适合需要实时调试、检查服务或会话状态的开发者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:idkidknow/dsh-node-replREADME
Read the full 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).