dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
在 Web 输入框中切换原生 DSH Agent 与 Grok Build,并通过 ACP 代理 Grok Build 会话及斜杠命令。
dsh-grok-acp is an adapter in DSH Agent Bridge. It connects Grok Build as a root agent through Agent Client Protocol (ACP), while preserving the native DSH Web session, composer, tool rendering, permission, and Markdown diff interfaces.
Grok Build is the only adapter today. The broader DSH Agent Bridge project name leaves room for future Codex and Claude Code adapters without tying the repository to one vendor or protocol.
dsh web composer.Full access also governs Grok ACP file access and approval behavior, including local Grok skills outside the workspace./usage, /context, /session-info, /btw, /model, /models, and /effort, including the /uasge compatibility spelling. /model and /models show only the active Harness's models.| DSH | Grok Build |
|---|---|
DSH Web composer
│
├── DSH ───────────► official AgentLoop, models, tools, and plugins
│
└── Grok Build ────► dsh-grok-acp ── ACP/stdio ──► grok agent
│
└── DSH session log / tool UI / approval UI
The plugin changes the agent preset while a session is blank and routes agent creation to either the official DSH AgentLoop or the Grok ACP agent. Model-visible output is still recorded in the DSH session log, so replay, titles, tool results, and diffs continue to use native DSH Web rendering.
^22.19 or >=24.0.1.1-rc.2 installed globally, with a working dsh web command.grok --version must succeed.Run:
dsh plugin --profile web add dsh-grok-acp@latest
dsh web
Open http://127.0.0.1:3080 and create a new session. Use Cmd/Ctrl + Shift + R if the browser still has an older client bundle cached.
Use this method when you want the latest GitHub source. Clone and build the project first, then give its directory directly to DSH:
git clone https://github.com/zmh2000829/DSH-agent-bridge.git
cd DSH-agent-bridge
npm install --legacy-peer-deps
npm run check
dsh plugin --profile web add "$(pwd)"
dsh web
$(pwd) means the full path of the current cloned project. If the project already exists locally, you can provide its absolute path directly:
dsh plugin --profile web add /Users/your-name/Projects/DSH-agent-bridge
Choose either installation method; do not run both. The Grok preset loads directly from the package and does not copy or overwrite ~/.dsh/harness-presets.
dsh plugin --profile web exec dsh-grok doctor
The report should show that DSH, Grok, the Bundle, the preset, and the client build are ready.
dsh web and open port 3080.| Command | Purpose |
|---|---|
/usage, /cost, /uasge | Show plan and usage information |
/context | Show context usage |
/session-info | Show Grok session information |
/btw <question> | Ask a side question without interrupting the main task |
/model, /models | Select a model from the active Harness; Grok mode does not show DSH models |
/model <model> | Change the Grok model |
/effort <level> | Change reasoning effort |
/compact, /goal, /workflow, /deep-research | Forward the corresponding capability to Grok Build |
The default command is grok agent --no-leader stdio.
| Variable | Purpose |
|---|---|
GROK_COMMAND | Grok executable; defaults to ~/.grok/bin/grok, then grok from PATH |
DSH_HOME | DSH home, defaulting to ~/.dsh |
XAI_API_KEY | Optional value forwarded to the Grok process |
Advanced deployments can override command, args, env, stateFile, disposeGraceMs, idleDisposeMs, yoloMode, and allowOutsideWorkspace in the Web profile's cordis.patch.yml entry. Sensitive actions require approval by default, and ACP file operations stay inside the session workspace. Enable both yoloMode and allowOutsideWorkspace only when you explicitly accept host-wide access.
initialize, authenticate.session/new, session/resume, session/load, session/close.session/prompt, session/cancel, session/set_config_option.fs/read_text_file, fs/write_text_file.Update an npm installation with dsh plugin --profile web add dsh-grok-acp@latest. For a source installation, run git pull, npm install --legacy-peer-deps, npm run check, and dsh plugin --profile web add "$(pwd)" from the cloned project directory.
Uninstall through the profile command, then restart DSH:
dsh plugin --profile web remove dsh-grok-acp
dsh web
Do not edit ~/.dsh/profiles/web/package.json by hand. Removing the plugin does not remove Grok authentication or Grok session files.
npm install --legacy-peer-deps
npm test
npm run build
npm pack --dry-run
lib/*.js contains the Node plugin and publication entry points.src/client/index.tsx is the Web client source; npm run build emits lib/client.js.presets/grok-build contains the packaged agent preset..github/workflows/ci.yml tests, builds, and checks npm package contents on Node 24.The project homepage, issue tracker, and source are available at zmh2000829/DSH-agent-bridge.
.., or symbolic links. yoloMode and allowOutsideWorkspace are explicit high-privilege options.0.1.1-rc.2. DSH prereleases may change internal AgentFactory or client Slot APIs; rerun tests and a real blank-session flow after upgrading DSH.ExternalAgentAdapter interface.Issues and pull requests are welcome. Licensed under the MIT License.