qq1299235059/dsh-antigravity-acp ↗★ 0
dsh-antigravity-acp
Antigravity ACP (agy CLI 1.5.x) plugin for DeepSeek Harness (DSH): autonomous SubagentProvider, model-facing antigravity_agent tool & skill, and Settings management UI
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qq1299235059/dsh-antigravity-acp独立 CLI 使用
插件自带可执行命令 dsh-antigravity-acp:
dsh-antigravity-acp [options]
| 子命令 | 说明 |
|---|---|
status | 查看可执行文件来源与版本、隔离 profileDir、登录态与连接池状态 |
install | 解析或自动下载并验证受支持的官方 agy CLI(>= 1.5.0) |
login [--code|--loopback] | 完成隔离 profile 认证(--code 走 stdin 粘贴授权码;--loopback 走本机回调;--no-open 不自动拉起浏览器) |
logout | 清除本地保存的 OAuth 凭证并回收连接池 Worker |
models [--refresh] | 探测并列出可用模型、上下文容量与 thought_level 推理档位 |
quota | 通过 Cloud Code Assist 探测当前账号配额窗口与重置时间 |
check-update | 检查 GitHub 最新插件版本 / Commit 与官方 agy CLI 版本更新 |
doctor [--strict] | 执行 Node 版本、二进制、鉴权、代理 URL、ACP initialize 握手全链路自检 |
help, --help, -h | 显示帮助文本 |
常用选项
--profile-dir:覆写隔离 profile 目录--cache-dir:覆写托管 CLI 缓存目录--binary-path:显式指定agy/antigravity可执行文件--auth-method:oauth-personal|oauth-business|gemini-api-key|agent-platform--api-key:显式传入 API Key--gcp-project/--gcp-location:Google Cloud Project 与 Location--proxy-url/--proxy-bypass:出站代理与NO_PROXY列表--cwd:指定models/doctor握手使用的工作目录--no-auto-download:禁止自动下载托管二进制--strict:doctor遇到可选警告时也返回非零退出码--json:输出结构化 JSON
配置项参考
1. antigravity-runtime (RuntimeConfigSchema)
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
authMethod | 'oauth-personal' | 'oauth-business' | 'gemini-api-key' | 'agent-platform' | 'oauth-personal' | 鉴权方式 |
apiKey | string | undefined | 显式 API Key(gemini-api-key / agent-platform) |
apiKeyEnv | string | undefined | 读取 API Key 的环境变量名 |
gcpProject | string | undefined | Google Cloud Project ID(企业 / Vertex AI) |
gcpLocation | string | undefined | Google Cloud Location / Region |
binaryPath | string | undefined | 显式指定 agy / antigravity 路径 |
autoDownload | boolean | true | 缺失本地可执行文件时是否自动下载并校验 SHA-512 |
cacheDir | string | undefined | 托管运行时缓存目录 |
profileDir | string | undefined | 隔离 profile 目录(不污染用户默认 ~/.gemini) |
proxyUrl | string | undefined | 出站代理(支持 http:、https:、socks4:、socks4a:、socks5:、socks5h:) |
proxyBypass | string | undefined | 逗号分隔的代理绕过域名列表 |
extraArgs | string[] | [] | 启动 agy acp 附加的额外参数 |
maxConcurrentSessions | number (1–4) | 2 | AcpWorkerPool 最大并发租约数 |
queueTimeoutMs | number | 120000 | 等待空闲 Worker 租约超时(毫秒) |
handshakeTimeoutMs | number | 120000 | 进程冷启动与 initialize 握手超时(毫秒) |
requestTimeoutMs | number | 30000 | 短控制请求超时(毫秒) |
authTimeoutMs | number | 300000 | 交互式登录超时(毫秒) |
promptTimeoutMs | number | 1800000 | 单轮 ACP session/prompt 最大时长(毫秒) |
idleRecycleMs | number | 300000 | 空闲 Worker 回收延迟(毫秒,0 表示不自动回收) |
autoWarmup | boolean | false | 服务启动后是否在后台非阻塞预热二进制与模型目录 |
2. subagent-antigravity-acp (SubagentPluginConfigSchema)
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
providerName | string | 'antigravity' | 注册到 ctx.subagents 的名称 |
toolName | string | 'antigravity_agent' | 注册到 ctx.tools 供主模型直接调用的工具名 |
permissionMode | 'default' | 'auto_edit' | 'auto' | 'yolo' | 'default' | 权限策略:yolo 全部允许;auto_edit 自动允许读/搜/改;auto / default 交由回退策略 |
permissionFallback | 'reject' | 'cancel' | 'reject' | 非自动放行请求的处理方式(拒绝单次或取消) |
defaultModel | string | undefined | 子 Agent 默认模型 ID(可在设置 UI 中实时覆写) |
defaultThoughtLevel | string | undefined | 子 Agent 默认推理档位(可在设置 UI 中实时覆写) |
systemPromptAppend | string | undefined | 通过 _meta.antigravity.systemPrompt.append 追加的系统提示词 |
disposeEofGraceMs | number | 6000 | 取消或结束后等待子进程 EOF 退出的宽限(毫秒) |
disposeGraceMs | number | 3000 | 终止信号升级强杀宽限(毫秒) |