Repository navigation
Colab GPU v1.0.0
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.0currently 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 diffbefore grabbing + single-spec 2-worker fan-out + adaptive AIMD concurrency halving on HTTP429withRetry-Afterrespect). Rejects silentA100 80G -> 40Gdowngrades unless explicitly selected, verifies excess-GPU cleanup (stopAndVerify) withcleanupWarnings, and surfaces preflight diagnostics (NOT_ENTITLED/ HTTP412/ zero-balance skips). - Multi-Exit Proxy Pool & Circuit Breaker (
src/server/net/proxy-pool.ts,http.ts): Configuredirect,single, or multi-nodepoolrouting withper_accountdeterministic affinity + automatic failover,fastestEMA-latency routing, orround_robinbalancing. Features per-node persistentProxyAgentreuse, exponential cooldown (5s -> 15s -> 30s -> 60s) + immediate cooldown on429, half-open probe recovery, single transparent failover even whenretries === 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 optionalAGY_COLAB_OAUTH_CLIENT_ID/AGY_COLAB_OAUTH_CLIENT_SECRETenv 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 underPromise.allbursts, atomicready -> in_useclaiming (colab_claim_card), zero-downtimeproxyTokenrenewal (colab_refresh_card_token) for jobs exceeding 60 minutes, and cleanready/stoprelease 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_residentfallback 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/ ISOestimatedFinishAt) oncolab_task_create, fine-grained step progress & ETA revisions viacolab_task_update, automatic task sorting &> 50finished pruning, and full protocol instructions for AI agents incolab-agent-workflow. - Dual-Visibility MCP App Architecture & Clean Packaging: Exposes
10model-visiblecolab_*agent tools and19app-onlyapp_*Sidecar console tools with built-in protocol handshake (PROTOCOL_VERSION = 3+serverBuildIdstaleness banner), zero Demo mode residuals, zeroinnerHTMLsinks, cross-platformscripts/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.0targets 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)