dsh-subagent-grok
Agent 与会话 活跃维护

dsh-subagent-grok

KarthusLorin/dsh-subagent-grok

提供Grok单次CLI子代理接入能力,无需复杂配置即可将Grok作为子代理嵌入CLI工作流,执行单次专项任务,开箱即用,适配轻量自动化脚本场景。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
7 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:KarthusLorin/dsh-subagent-grok
git clone https://github.com/KarthusLorin/dsh-subagent-grok.git
git clone git@github.com:KarthusLorin/dsh-subagent-grok.git
README.md main

dsh-subagent-grok

Install:

export DSH_HOME=/tmp/dsh-subagent-grok-home
dsh plugin --profile headless add dsh-subagent-grok

中文

Uses the locally authenticated Grok CLI as the default one-shot DSH subagent provider. Each delegation runs one grok -p <prompt> --output-format json process in the parent session's working directory.

Requirements

  • Node.js 20 or newer
  • @deepseek-ai/dsh 0.1.1 release-candidate line
  • Grok CLI on PATH, already authenticated through its own local configuration

The plugin never logs in and never accepts or writes an API key. Missing CLI, missing authentication, invalid JSON, non-text input, and empty prompts produce an explicit failed delegation.

Safety

The default command combines --always-approve with Grok's built-in workspace sandbox. The sandbox limits writes to the parent working directory, Grok's state directory, and temporary directories.

To use another restricted profile, patch the provider config:

- id: subagent-grok
  name: dsh-subagent-grok
  config:
    providerName: grok
    sandbox: strict

Disabling the sandbox requires both sandbox: off and allowUnconfined: true. This explicit opt-in is intentionally unavailable in the bundled defaults.

Verify

npm test
dsh --profile headless --dump-config

An ACP initialize handshake succeeds with Grok CLI 1.0.13 on macOS. ACP remains a possible v2 transport; v1 uses the documented one-shot JSON command.