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

Package
dsh-antigravity-acp
Compatibility
Unverified
Harness peer range
>=0.2.2-rc.1 <0.3.0-0
Cordis peer range
>=4.0.4 <5
Version
0.3.0
License
MIT
Last updated
Nov 22, 2026

Other repositories with this package name

Install

$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'鉴权方式
apiKeystringundefined显式 API Key(gemini-api-key / agent-platform)
apiKeyEnvstringundefined读取 API Key 的环境变量名
gcpProjectstringundefinedGoogle Cloud Project ID(企业 / Vertex AI)
gcpLocationstringundefinedGoogle Cloud Location / Region
binaryPathstringundefined显式指定 agy / antigravity 路径
autoDownloadbooleantrue缺失本地可执行文件时是否自动下载并校验 SHA-512
cacheDirstringundefined托管运行时缓存目录
profileDirstringundefined隔离 profile 目录(不污染用户默认 ~/.gemini)
proxyUrlstringundefined出站代理(支持 http:、https:、socks4:、socks4a:、socks5:、socks5h:)
proxyBypassstringundefined逗号分隔的代理绕过域名列表
extraArgsstring[][]启动 agy acp 附加的额外参数
maxConcurrentSessionsnumber (1–4)2AcpWorkerPool 最大并发租约数
queueTimeoutMsnumber120000等待空闲 Worker 租约超时(毫秒)
handshakeTimeoutMsnumber120000进程冷启动与 initialize 握手超时(毫秒)
requestTimeoutMsnumber30000短控制请求超时(毫秒)
authTimeoutMsnumber300000交互式登录超时(毫秒)
promptTimeoutMsnumber1800000单轮 ACP session/prompt 最大时长(毫秒)
idleRecycleMsnumber300000空闲 Worker 回收延迟(毫秒,0 表示不自动回收)
autoWarmupbooleanfalse服务启动后是否在后台非阻塞预热二进制与模型目录

2. subagent-antigravity-acp (SubagentPluginConfigSchema)

配置项类型默认值说明
providerNamestring'antigravity'注册到 ctx.subagents 的名称
toolNamestring'antigravity_agent'注册到 ctx.tools 供主模型直接调用的工具名
permissionMode'default' | 'auto_edit' | 'auto' | 'yolo''default'权限策略:yolo 全部允许;auto_edit 自动允许读/搜/改;auto / default 交由回退策略
permissionFallback'reject' | 'cancel''reject'非自动放行请求的处理方式(拒绝单次或取消)
defaultModelstringundefined子 Agent 默认模型 ID(可在设置 UI 中实时覆写)
defaultThoughtLevelstringundefined子 Agent 默认推理档位(可在设置 UI 中实时覆写)
systemPromptAppendstringundefined通过 _meta.antigravity.systemPrompt.append 追加的系统提示词
disposeEofGraceMsnumber6000取消或结束后等待子进程 EOF 退出的宽限(毫秒)
disposeGraceMsnumber3000终止信号升级强杀宽限(毫秒)