Skip to content

Releases

Colab GPU v1.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:03
c91062a

Colab GPU (agy-colab) v1.3.0

English Summary

Added & Changed

  • Single-Session Multi-Card Sharding & Batch Claiming (#13):
    • Upgraded colab_claim_card to atomically claim 1..4 GPUs in a single call via endpoints, sessionNames, count, and accountId, using a lease-targeted fast-path that memoizes listAssignments per target account (skipping full dashboard polling and unrelated accounts) and syncs legacy sessions.json directories cleanly.
    • Updated colab_claim_card text summaries (content[0].text) to expose endpoint, region, accountId, tokenTTL, and COLAB_CLI_CONFIG_DIR (legacyConfigDir) directly (strictly omitting raw proxyToken), alongside structured { card, cards, claimedCount, requestedCount, failed? }.
    • Enriched colab_status and colab_race_status summaries with explicit endpoint=, [READY/待用], [预留给 <owner>], [owner=<owner>], remaining reservation TTL, COLAB_CLI_CONFIG_DIR, and immediate claim hints while a race is in cleaning.
  • Mandatory Race Ownership, maxAccounts Scoped Sweeps & Auto-Renewed Multi-Card Reservations (#13):
    • Enforced non-empty owner on colab_race_start (both Zod schema and runtime validation) for unambiguous multi-session reservation and stop isolation, and added optional maxAccounts (1..16, ranking clean non-412 accounts with fewer active leases ahead of busy/cooled accounts).
    • Added domain-locked PluginStore.renewReadyReservations and RaceManager.renewJobWonReservations to automatically renew the 120s owner reservation across all already-won READY cards whenever another card is won, during heartbeats, and before race completion/cleanup.
  • Native Multi-Card Task Pool, Watchdog Protection & Sidecar UI (#13, skills/colab-agent-workflow/SKILL.md):
    • Added assignedEndpoints on PoolTask and assignedEndpoint on PoolTaskStep (syncing canonical assignedEndpoint, supporting clean clearing via null / [], and protecting all endpoints returned by getActiveTaskBoundEndpoints from false IDLE_BURN / [GHOST] alerts while unprotecting released shards immediately).
    • Updated TaskPipeline.tsx and App.tsx to render multi-GPU runtime pills, multi-endpoint offline alerts, per-step shard tags, and multi-endpoint runtime stop confirmations, and updated SKILL.md with the Single-Session Multi-Card Sharding (2–4 GPUs) workflow.

Fixed

  • Race-to-READY Split-Brain, Optimistic Transitions & Concurrent MCP Stability (#12):
    • Resolved race-to-READY lease split-brain via pruneMissingLeases (eligibleUpdatedAt grace guard) + DashboardCache mutationEpoch, added optimistic UI READY transitions (app_update_lease state='ready' + colab_release_card adopting unleased active runtimes), distinguished UPSTREAM_TIMEOUT / quota 403 / HTML errors from NETWORK_ERROR, serialized upsertLegacySessionAsync & concurrent ensureInitialized, and hardened login redirect hostname validation.

中文更新摘要

新增与优化

  • 单会话多卡并行分片与 Fast-Path 批量认领(#13):
    • 升级 colab_claim_card 支持单次原子认领 1..4 张 GPU(endpoints、sessionNames、count、accountId),采用基于租约的 Fast-Path 按目标账号去重调用 listAssignments(跳过全池监控探测与无关账号),并在文本摘要中直接返回 endpoint、region、accountId、tokenTTL 与 COLAB_CLI_CONFIG_DIR(严格不暴露 proxyToken),同时返回 { card, cards, claimedCount, requestedCount, failed? }。
    • 丰富 colab_status 与 colab_race_status 输出(endpoint=、[READY/待用]、[预留给 <owner>]、[owner=<owner>]、预留剩余秒数、COLAB_CLI_CONFIG_DIR 以及 cleaning 清尾阶段即可先认领已到位卡的提示)。
  • 抢卡强制归属隔离、maxAccounts 范围控制与多卡预留自动续期(#13):
    • colab_race_start 现强制要求非空 owner(Schema 与运行时双校验),并新增可选 maxAccounts(1..16,优先选取未受 412 冷却且活跃租约更少的账号),防止单卡任务挤占并行会话配额。
    • 新增 PluginStore.renewReadyReservations 与 RaceManager.renewJobWonReservations,在多卡抢卡获胜后续卡、任务心跳及结束清尾前自动续期前面已胜出待用卡的 120s 预留,杜绝多卡凑齐期间前卡预留过期被截胡。
  • 原生多卡 Task Pool、防空烧保护与面板 UI(#13,skills/colab-agent-workflow/SKILL.md):
    • PoolTask 与 PoolTaskStep 原生支持 assignedEndpoints 与步骤级 assignedEndpoint(自动与 assignedEndpoint 对齐并支持 null/[] 清空),buildLiveDashboard 通过 getActiveTaskBoundEndpoints 保护单任务名下全部在跑卡与活跃步骤卡免受 IDLE_BURN/[GHOST] 误报,提前解绑分片后即刻停止保护。
    • TaskPipeline.tsx 与 App.tsx 支持多卡算力胶囊、多卡离线计数告警、步骤级分片标记与停卡多关联校验,并同步更新 SKILL.md 单会话多卡分片协议。

问题修复

  • 并发稳健性、抢卡转待用分脑与分类加固(#12):
    • 修复抢卡转待用分脑问题(pruneMissingLeases 的 eligibleUpdatedAt 宽限校验与 DashboardCache mutationEpoch),完善面板 app_update_lease(state='ready') 与 colab_release_card 纳管在跑卡能力,精准区分 UPSTREAM_TIMEOUT/配额/HTML 异常与 NETWORK_ERROR,并发序列化 upsertLegacySessionAsync 与 ensureInitialized,并加强登录回调域名校验。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.3.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.3.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.3.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.3.0)

Colab GPU v1.2.2

Choose a tag to compare

@github-actions github-actions released this 02 Dec 03:23
9829fc6

Colab GPU (agy-colab) v1.2.2

English Summary

Added

  • Credential Freeze / Unfreeze & Safe Account Deletion (#9):
    • Added AccountMeta.frozen / frozenAt and domain-locked setAccountFrozen(accountId, frozen) in PluginStore, while enhancing removeAccount to prune associated leases alongside account credentials and FIFO balance ledger entries.
    • Guarded AuthManager.getAccessToken / refreshAccessToken against frozen accounts (clearing cached tokens and rejecting refreshes) and automatically clearing frozen state upon fresh OAuth login or legacy ADC re-import.
    • Added UI-only app_account_set_frozen (visibility: ['app']) and hardened app_account_remove with fail-closed active-GPU & running-race guards (force: true override only when live GPU verification fails, plus direct deletion of already-frozen credentials).
    • Short-circuited buildLiveDashboard for frozen accounts with zero Google/Colab API calls, added KeepAliveManager.untrackAccount + hydrateFromStore active-account filtering + app_set_keepalive frozen guard, excluded frozen accounts from RaceManager.start() (while clearing persisted 412 rate limits via clearRateLimitedAccount), surfaced [FROZEN/已冻结] status in agent tools, and added inline/modal freeze & delete controls in AccountStrip, AuthProxyModal, and RaceArena (13 model-visible colab_* vs. 23 app-only app_* tools).
  • Cross-Process File Locking & Disjoint-Account Multi-Session Concurrency (src/server/state/file-lock.ts, src/server/colab/racer.ts, #8):
    • Upgraded PluginStore.withDomainLock with OS-level cross-process file locks (locksDir, dead-PID / expired-TTL recovery) so parallel MCP host processes safely mutate leases, tasks, config, accounts, and ledger without losing updates.
    • Added persisted race-state.json coordination for concurrent multi-session GPU racing across disjoint accounts with owner / raceId stop isolation, 120s READY card owner reservations in colab_claim_card, anti-friendly-fire double-pass cleanup, and multi-race RaceArena cards.
  • Default-On 60s Backend Keep-Alive & Single Global Panel (src/server/colab/keepalive.ts, #7):
    • Added KeepAliveManager and ColabApiClient.sendKeepAlive sending 60s Colab TFE heartbeats independently of panel state (enabled by default for non-ghost GPUs, exempt for pure-OAuth [GHOST] GPUs), backed by persisted defaultKeepAlive config, per-endpoint keepAliveEnabled overrides, and UI-only app_set_keepalive.
    • Consolidated colab_open_panel onto a single global panel entrypoint (removing aux_pane).
  • Compact Secondary RAM & Disk Progress Bars (src/ui/components/RuntimeCard.tsx, src/ui/theme.css, #10):
    • Rendered System RAM and Disk telemetry as compact secondary progress bars on GPU runtime cards alongside primary GPU/VRAM meters.

中文更新摘要

新增功能

  • 凭据冻结 / 解冻与安全删除闭环(#9):
    • 在 PluginStore 新增 AccountMeta.frozen / frozenAt 与分域加锁的 setAccountFrozen,并强化 removeAccount 在删除凭据目录与算力账本时同步清理关联卡位租约。
    • 在 AuthManager 中拦截冻结账号的 Token 刷新与访问(清理缓存并拒发请求),并在重新 OAuth 登录或重导 ADC 凭据时自动解除冻结。
    • 新增仅面板可见的 app_account_set_frozen(visibility: ['app'])并强化 app_account_remove:冻结/删除前均执行 Fail-Closed 在跑 GPU 与抢卡状态核验(仅远端核验异常时支持 force: true 二次确认强制覆盖;已冻结账号支持免鉴权直接安全删除)。
    • 在 buildLiveDashboard、KeepAliveManager(untrackAccount + hydrateFromStore 过滤 + app_set_keepalive 拦截)、RaceManager(过滤冻结账号 + clearRateLimitedAccount 同步清理持久化 412 冷却)与 Agent 工具([FROZEN/已冻结] 状态汇报及卡位操作拦截)全面接入冻结边界,并在 AccountStrip、AuthProxyModal 与 RaceArena 补全行内/弹窗操作与禁用提示(共 13 个 colab_* 工具 vs. 23 个 app_* 面板工具)。
  • 跨进程文件锁与多会话隔离并发抢卡(src/server/state/file-lock.ts、src/server/colab/racer.ts,#8):
    • 为 PluginStore.withDomainLock 引入跨进程文件锁(支持死进程 PID / TTL 超时锁回收),确保多个并行 Agent/插件进程安全并发读写本地状态与历史会话文件。
    • 新增 race-state.json 跨进程状态协同,支持互不重叠账号(Disjoint Accounts)的多路会话并发抢卡、按 owner / raceId 隔离停抢、READY 卡位 120 秒 reservedFor 预留认领、防误杀清尾校验与面板多任务并发展示。
  • 默认开启 60s 后台保活与单一全局面板入口(src/server/colab/keepalive.ts,#7):
    • 新增 KeepAliveManager 与 ColabApiClient.sendKeepAlive,在面板关闭时仍由服务端按 60 秒周期发送 Colab TFE 心跳(非幽灵卡默认开启、幽灵卡自动豁免),支持全局 defaultKeepAlive 开关、单卡 app_set_keepalive 覆盖及界面实时心跳状态展示。
    • 将 colab_open_panel 统一收敛为单一 global 全局面板入口(移除 aux_pane)。
  • 运行卡片紧凑型 RAM / 磁盘双进度条(src/ui/components/RuntimeCard.tsx、src/ui/theme.css,#10):
    • 在 GPU 运行卡片中以紧凑型次级进度条直观展示 System RAM 与 Disk 占用情况,提升多卡同屏可读性。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.2.2.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.2.2.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.2 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.2)

Colab GPU v1.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:59
56c4fe7

Colab GPU (agy-colab) v1.2.1

English Summary

Fixed

  • Windows .zip Extraction of Linux-Built Release Archives (src/server/updater/updater.ts, scripts/update-plugin.mjs):
    • Fixed a PowerShell InvalidCastIConvertible failure when casting negative signed Int32 Unix ExternalAttributes values (such as 0100644 / 0x81A40000 / -2119958528 in ubuntu-latest-packaged release .zip archives) directly to [uint32].
    • Both the Sidecar updater and standalone CLI updater now convert via [System.BitConverter]::ToUInt32([System.BitConverter]::GetBytes([int32]$entry.ExternalAttributes), 0) before masking (mode -shr 16) -band 0xF000, preserving strict 0xA000 symbolic-link rejection.
    • Added cross-platform regression tests in tests/updater.test.mjs covering high-bit Unix regular files/directories (0x81a40000 / 0x41ed0000) and Unix symlinks (0xa1ff0000) across both extractors.

中文更新摘要

问题修复

  • 修复 Windows 下解压 Linux 构建 Release .zip 安装包报错问题(src/server/updater/updater.ts、scripts/update-plugin.mjs):
    • GitHub Actions 在 ubuntu-latest 上打包的 .zip 带有 Unix 权限位(例如常规文件 0100644 对应 0x81A40000),.NET 将其暴露为负数有符号 Int32(-2119958528),导致旧版 PowerShell [uint32]$entry.ExternalAttributes 强转抛出 InvalidCastIConvertible。
    • Sidecar 面板更新器与独立 CLI 更新器现统一通过 [System.BitConverter]::ToUInt32([System.BitConverter]::GetBytes([int32]$entry.ExternalAttributes), 0) 进行无损位转换,完整保留 0xA000 符号链接拦截防线,并在 tests/updater.test.mjs 补充了高比特位 Unix 常规文件与符号链接的跨平台回归测试。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.2.1.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.2.1.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.1 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.1)

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)

Colab GPU v1.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:32
916c037

Colab GPU (agy-colab) v1.1.1

English Summary

Fixed

  • Zero-Rate-Limit GitHub Release Fallback (src/server/updater/updater.ts, scripts/update-plugin.mjs):
    • When unauthenticated api.github.com requests hit HTTP 403 / 429 rate limits (common on shared proxy/VPN egress IPs), both the Sidecar updater and standalone CLI now automatically fall back to https://github.com/<repo>/releases/latest (302 tag resolution) + direct SHA256SUMS.txt manifest fetch, preserving full SHA-256 fail-closed verification and HTTPS GitHub allowlist invariants.
    • Added optional AGY_COLAB_GITHUB_TOKEN / GITHUB_TOKEN / GH_TOKEN bearer auth strictly scoped to https://api.github.com.
  • Clean Windows ProxyAgent Shutdown (scripts/update-plugin.mjs):
    • Always cancels unread error response bodies and exits via process.exitCode instead of hard process.exit(1), eliminating Node 22 / libuv UV_HANDLE_CLOSING assertion noise on Windows when a proxied request fails.

中文更新摘要

问题修复

  • 插件更新器支持 GitHub API 403 / 429 自动降级(src/server/updater/updater.ts、scripts/update-plugin.mjs):
    • 共享代理 / VPN 出口访问未鉴权 api.github.com 遇到 HTTP 403 / 429 限流时,Sidecar 面板与独立 CLI 更新器现自动降级通过无 API 限流的 github.com/<repo>/releases/latest 302 跳转 + SHA256SUMS.txt 直连清单解析最新版本,同时完整保留 SHA-256 强制校验与 HTTPS 白名单防线;亦支持通过 AGY_COLAB_GITHUB_TOKEN / GITHUB_TOKEN / GH_TOKEN 提升 API 额度。
  • 修复 Windows 下 CLI 更新器代理报错退出时的 libuv 句柄断言(scripts/update-plugin.mjs):
    • 出错路径统一释放响应体并改用 process.exitCode = 1 优雅退出,避免 Node 22 + undici ProxyAgent 触发 UV_HANDLE_CLOSING 断言。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.1.1.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.1.1.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.1.1 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.1.1)

Colab GPU v1.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 19:21
8c2d38a

Colab GPU (agy-colab) v1.1.0

English Summary

Added

  • Built-In Verified Plugin Self-Updater (Sidecar UI + Standalone CLI):
    • Added app-only MCP tools app_check_update and app_apply_update (visibility: ['app'], keeping LLM tool context untouched) backed by src/server/updater/updater.ts.
    • Added an Updates (⬆ 插件更新 / ⬆ Updates) tab in Settings plus a clickable header update pill (StatusBeacon) that quietly checks GitHub Releases on panel connect (30-minute TTL cache), displays release notes in plain text (zero innerHTML), and applies verified upgrades with a post-update reload indicator.
    • Added standalone zero-extra-dependency CLI updater scripts/update-plugin.mjs (npm run update:plugin, and bundled as update-plugin.mjs inside every portable release archive) supporting --check, --target, --version, --force, --proxy, and --json.
    • Security & safety invariants: strict HTTPS GitHub allowlist + 50 MiB download cap, mandatory fail-closed SHA256SUMS.txt verification (plus GitHub asset digest cross-check), Zip-Slip & symlink rejection for .zip and .tar.gz, source-checkout guard (.git/src/), active-race guard, junction/symlink-safe node_modules replacement with automatic rollback, and zero touch on ${PLUGIN_DATA}.
  • Bilingual EN / 中文 Sidecar Console (shipped on main since v1.0.0): automatic host/system locale detection with live header EN / 中文 toggle.

Fixed

  • Colab GPU Utilization Calculation Bug (src/server/colab/runtime.ts, RuntimeCard.tsx):
    • Google Colab's /api/colab/resources endpoint reports gpuUtilization as a [0.0, 1.0] fraction (int(row[4]) / 100). Previously, raw < 1 caused gpuUtilization = 1.0 (100% load) to be interpreted as 1%, displaying inaccurate telemetry and triggering false idle_burn alerts on fully saturated GPUs.
    • Introduced normalizeGpuUtilPct(raw, { unit }) treating [0, 1] (inclusive of 1.0) as fractional 0%–100%, explicit *Percent keys as percentages, values > 1 as clamped [0, 100], invalid/negative values as null, and multi-GPU readings via total VRAM + max utilization.

中文更新摘要

新增功能

  • 内置可校验插件自更新功能(Sidecar 面板一键更新 + 独立 CLI):
    • 新增仅前端可见的 MCP 工具 app_check_update 与 app_apply_update(visibility: ['app'],不占用 LLM 工具上下文),由 src/server/updater/updater.ts 驱动。
    • 在设置弹窗新增 ⬆ 插件更新 标签页,并在顶栏新增可点击更新提示胶囊(面板连接后静默检查 GitHub Releases、30 分钟缓存、纯文本展示 Release Notes 零 innerHTML、升级完成后自动提示重载插件)。
    • 新增独立零额外依赖 CLI 更新脚本 scripts/update-plugin.mjs(支持 npm run update:plugin 且随便携发布包打包为 update-plugin.mjs),支持 --check、--target、--version、--force、--proxy、--json 等参数。
    • 完备安全与防损保障:强制 HTTPS GitHub 下载域名白名单与 50 MiB 体积上限、强制 SHA256SUMS.txt 校验(缺校验或哈希不匹配一律失败中止)、.zip / .tar.gz 解压前 Zip-Slip 路径穿越与符号链接拦截、源码工作区保护(含 .git/src/ 禁止原地覆盖)、抢卡运行中保护、Windows Junction / Unix Symlink 安全的原子替换与失败自动回滚,且全程零触碰 ${PLUGIN_DATA} 数据目录。
  • 中英双语 Sidecar 控制台(合入自 v1.0.0 之后):自动识别宿主/系统语言,顶栏支持 EN / 中文 实时无重启切换。

问题修复

  • 修复 Google Colab GPU 利用率计算 Bug(src/server/colab/runtime.ts、RuntimeCard.tsx):
    • Google Colab /api/colab/resources 接口返回的 gpuUtilization 为 [0.0, 1.0] 小数(1.0 表示 100% 满载)。旧逻辑使用 raw < 1 导致满载卡 1.0 被错算为 1%,不仅界面显示错误,还会误触发防空烧雷达 idle_burn 告警。
    • 新增 normalizeGpuUtilPct(raw, { unit }):将 [0, 1](含 1.0)按小数换算为 0%–100%,显式 *Percent 字段按百分比处理,超界值截断至 [0, 100]、负数/非法值返回 null,并完善多卡显存求和与最高利用率聚合。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.1.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.1.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.1.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.1.0)

Colab GPU v1.0.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:00

Colab GPU (agy-colab) v1.0.0

English Summary

Initial public open-source stable release of Colab GPU (agy-colab) — turning Google Colab GPU quotas across multiple accounts into an agent-ready compute pool directly inside Google Antigravity, with zero Python/browser automation bloat and strict safety guardrails.

Host Harness Support Notice: v1.0.0 currently supports Google Antigravity as its first target harness. Need support for another coding harness or MCP host (such as Claude Code, Cursor, Codex, Windsurf, Cline, Zed, etc.)? Open a Harness Request Issue and support for your requested harness will be added promptly.

Core Capabilities

  • Multi-Spec Concurrent GPU Racer & AIMD Guard: Select one or multiple GPU tiers (G4 96G, A100 80G, A100 40G, V100 16G, L4 24G, T4 16G, Pro+ Priority) and race up to exact target counts in parallel (per-account baseline diff before grabbing + single-spec 2-worker fan-out + adaptive AIMD concurrency halving on HTTP 429 with Retry-After respect). Rejects silent A100 80G -> 40G downgrades unless explicitly selected, verifies excess-GPU cleanup (stopAndVerify) with cleanupWarnings, and surfaces preflight diagnostics (NOT_ENTITLED / HTTP 412 / zero-balance skips).
  • Multi-Exit Proxy Pool & Circuit Breaker (src/server/net/proxy-pool.ts, http.ts): Configure direct, single, or multi-node pool routing with per_account deterministic affinity + automatic failover, fastest EMA-latency routing, or round_robin balancing. Features per-node persistent ProxyAgent reuse, exponential cooldown (5s -> 15s -> 30s -> 60s) + immediate cooldown on 429, half-open probe recovery, single transparent failover even when retries === 0, isolated non-polluting probe sweeps (app_test_proxy_pool), and strict credential masking across logs/errors/API responses.
  • Isolated Multi-Account OAuth & 90-Day FIFO CU Ledger (src/server/colab/auth.ts, balance-ledger.ts): PKCE OAuth flow using Google's installed-app flow (plus optional AGY_COLAB_OAUTH_CLIENT_ID / AGY_COLAB_OAUTH_CLIENT_SECRET env overrides and legacy ~/.colab-accounts / CLI ADC discovery/sync), paired with batch credit top-up tracking (app_add_balance_batch), FIFO 90-day expiry accounting, burn-rate telemetry, and single-glitch zero-balance protection.
  • Atomic Ready-Card Lease Pool & Token Auto-Renew (src/server/state/store.ts, agent-tools.ts): Domain-locked concurrent persistence (leases, tasks, config, accounts, ledger) preventing lost updates under Promise.all bursts, atomic ready -> in_use claiming (colab_claim_card), zero-downtime proxyToken renewal (colab_refresh_card_token) for jobs exceeding 60 minutes, and clean ready / stop release verification (colab_release_card).
  • Multi-Signal Idle-Burn Watchdog, Ghost Radar & Persistent Snooze (dashboard-cache.ts, runtime.ts): Multi-signal telemetry analyzing GPU util, VRAM motion, host RAM/disk growth, cold-start grace, ready_timeout, keepalive Python sleep loops (vram_resident fallback when GPU probe telemetry is unavailable), and recent Task Pool heartbeats (< 10m). Includes persisted per-endpoint Snooze (app_snooze_idle), 2-sample transient error shielding, and pure-OAuth [GHOST] runtime detection.
  • Read-Only Agent Task Pool (Phase 1) & Collaboration Skill (skills/colab-agent-workflow/SKILL.md): Enforces mandatory positive ETA (estimatedMinutes / ISO estimatedFinishAt) on colab_task_create, fine-grained step progress & ETA revisions via colab_task_update, automatic task sorting & > 50 finished pruning, and full protocol instructions for AI agents in colab-agent-workflow.
  • Dual-Visibility MCP App Architecture & Clean Packaging: Exposes 10 model-visible colab_* agent tools and 19 app-only app_* Sidecar console tools with built-in protocol handshake (PROTOCOL_VERSION = 3 + serverBuildId staleness banner), zero Demo mode residuals, zero innerHTML sinks, cross-platform scripts/install-plugin.mjs, portable release bundles (zip / tar.gz + SHA256SUMS.txt), and automated architecture/security/budget gates.

中文更新摘要

Colab GPU (agy-colab) v1.0.0 正式开源发布 —— 将多账号 Google Colab GPU 配额直接聚合为 Antigravity 内可调度的算力池与 Agent 协同驾驶舱,纯 TypeScript/React + 官方 MCP App 架构,零浏览器的轻量化实现,兼顾极速抢卡与安全风控防误烧。

关于宿主 Harness 支持范围的承诺:本插件当前暂时优先支持 Google Antigravity。只要有用户在仓库 提出 Issue 说明你使用的其他 Harness / MCP Host(如 Claude Code、Cursor、Codex、Windsurf、Cline、Zed 等),我们会立刻增加对目标 Harness 的兼容支持!

核心能力亮点

  • 多规格并发抢卡引擎 + AIMD 429 自适应退避:支持多卡并行勾选与优先级调度、单卡双路并发抢占、基于并发前存量快照差的增量保留与自动清退校验(stopAndVerify)、A100 80G 隐式降级 40G 拦截保护,以及 HTTP 429 AIMD 退避恢复。
  • 多出口代理池与熔断器(Multi-Exit Proxy Pool):支持 direct / single / 多节点 pool,内置 per_account 确定性亲和、延迟最优 fastest 与轮询 round_robin 策略;配备每节点独立 ProxyAgent、指数冷却熔断与半开试探、retries === 0 自动单次故障切换、隔离式节点测速,以及全链路凭据脱敏保护。
  • 多账号隔离登录与 90 天 FIFO 算力账本:原生 PKCE OAuth 多账号隔离管理(支持环境变量覆盖自定义 OAuth Client 及历史 ADC 凭证扫描导入),支持算力充值批次登记、90 天 FIFO 过期推演与单次接口偶发归零保护。
  • 原子卡位租约池 & 长任务 Token 无损续期:基于域锁(Domain Locks)保障高并发读写零丢更新,colab_claim_card 原子认领防并发撞车,长训练超 50 分钟可通过 colab_refresh_card_token 热续期不断内核、colab_release_card 支持放回待用或彻底关停校验。
  • 多信号防空烧雷达、幽灵卡探测与持久化静音(Snooze):综合 GPU 利用率、显存/内存/磁盘增量、死循环保活识别、冷启动宽限及任务心跳等多重信号精准告警,误报探测盲区零假阳性,支持持久化静音与纯网页幽灵卡感知。
  • Phase 1 只读 Agent 任务池(强制 ETA + 心跳):强制 Agent 通过 colab_task_create 上报预期耗时 estimatedMinutes / 完成时间,并在任务期间每 5–8 分钟通过 colab_task_update 上报步骤进展与实时修正 ETA。
  • 严格开源工程门禁与跨平台便携包:内置 10 个模型可见 Agent 工具与 19 个仅前端可见 UI 工具的严格权限隔离、前后端 serverBuildId 热更新握手、演示代码彻底归零、41+ 项回归测试 + 5 项架构/安全门禁与 GitHub Actions 自动多平台 CI/Release 流水线。

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

  • Windows / Cross-Platform (.zip): agy-colab-v1.0.0.zip
  • macOS / Linux (.tar.gz): agy-colab-v1.0.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.0.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.0.0)