Skip to content

Colab GPU v1.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:50
6d2624f

Colab GPU (agy-colab) v1.2.0

English Summary

Added

  • Guarded Pure-Async Agent GPU Racing MCP Tools (src/server/tools/agent-tools.ts, #3):
    • Exposed 3 model-visible MCP tools sharing the existing RaceManager singleton with the Sidecar UI (13 model-visible colab_* vs. 21 app-only app_* tools):
      • colab_race_start: Pure-async start returning immediately with the live RaceJobSnapshot; enforces mandatory userConfirmed: true, explicit specs or minVramGb selection (preventing accidental default high-VRAM grabs), a hard count cap of 1..4 cards per race (default 1), and a bounded wall-clock timeout maxDurationSec of 30..900s (default 300s).
      • colab_race_status: Non-blocking poll for race status, attempt count, won READY cards (without leaking raw proxyToken), and scrubbed cleanupWarnings.
      • colab_race_stop: Immediate abort with double-pass orphan cleanup while preserving any already-won READY cards (idempotent when idle).
    • Applies scrubProxyCredentialsFromText defense-in-depth to race snapshots and error messages.
  • Per-Job Wall-Clock Duration Override (src/server/colab/racer.ts, #3):
    • Added optional maxDurationMs to RaceManager.start() bounded by the manager's 15m ceiling, preserving existing app_race_start behavior while enforcing tighter default timeouts for Agent-initiated races.

Changed

  • Status & Discovery Integration (src/server/tools/agent-tools.ts, #3):
    • Surfaced live activeRace status in colab_status and updated colab_discover_ready_cards empty-pool guidance.
  • Agent Skill, Architecture Docs & Tests (skills/colab-agent-workflow/SKILL.md, docs/, tests/, #3):
    • Updated SKILL.md with confirmation-first async racing workflow (discover -> confirm -> race_start -> poll -> claim_card) and Safety Rule #6.
    • Synced ADR-001, docs/adr/README.md, .github/ARCHITECTURE.md, README.md, and docs/README.zh-CN.md, and added unit + MCP stdio integration tests in tests/racer.test.mjs and tests/smoke.test.mjs.

中文更新摘要

新增功能

  • 面向 Agent 的带护栏纯异步 GPU 抢卡 MCP 工具(src/server/tools/agent-tools.ts,#3):
    • 新增 3 个模型可见 MCP 工具并与 Sidecar UI 共享同一 RaceManager 单例(共 13 个模型可见 colab_* 工具 vs. 21 个仅前端可见 app_* 工具):
      • colab_race_start:纯异步启动并立即返回 RaceJobSnapshot;强制校验 userConfirmed: true、必须显式传入 specs 或 minVramGb(防止误抢高显存默认规格)、单次硬上限 1..4 张卡(默认 1),以及 30..900 秒超时上限(默认 300 秒)。
      • colab_race_status:非阻塞轮询抢卡进度、尝试次数、已抢到 READY 卡列表(不泄露原始 proxyToken)以及脱敏后的 cleanupWarnings。
      • colab_race_stop:立即中止抢卡并执行双阶段残留卡清理,同时保留已抢到的 READY 卡(空闲时幂等)。
    • 对抢卡快照与报错信息统一应用 scrubProxyCredentialsFromText 凭据脱敏防线。
  • 单任务墙钟超时覆盖(src/server/colab/racer.ts,#3):
    • 为 RaceManager.start() 增加受 15 分钟 顶帽约束的可选 maxDurationMs 参数,保持 app_race_start 原有行为的同时为 Agent 发起的抢卡任务提供更紧凑的默认超时。

文档与测试

  • 状态与发现接口联动(src/server/tools/agent-tools.ts,#3):在 colab_status 中输出实时 activeRace 状态,并完善 colab_discover_ready_cards 空池引导提示。
  • 协议规范、架构文档与测试覆盖(skills/colab-agent-workflow/SKILL.md、docs/、tests/,#3):更新 SKILL.md 的先确认后异步抢卡工作流与安全红线 #6;同步更新 ADR-001、docs/adr/README.md、.github/ARCHITECTURE.md、README.md 与 docs/README.zh-CN.md;并在 tests/racer.test.mjs 与 tests/smoke.test.mjs 补充单元测试与 MCP stdio 集成测试。

Portable Plugin Bundles / 免 npm install 便携安装包

  • Windows / Cross-Platform (.zip): agy-colab-v1.2.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.2.0.tar.gz
  • SHA-256 Checksums: SHA256SUMS.txt

Extract the archive and run node install-portable.mjs inside the extracted agy-colab/ directory, then toggle Colab GPU (agy-colab) on in Antigravity Plugins Manager.

Harness Support: Currently v1.2.0 targets Google Antigravity first. Need another harness (Claude Code, Cursor, Codex, Windsurf, Cline, etc.)? Open a Harness Request Issue and support will be added promptly!

Full Changelog: CHANGELOG.md · Commits (v1.2.0)