Repository navigation
Releases
Colab GPU v1.3.0
Colab GPU (agy-colab) v1.3.0
English Summary
Added & Changed
- Single-Session Multi-Card Sharding & Batch Claiming (
#13):- Upgraded
colab_claim_cardto atomically claim1..4GPUs in a single call viaendpoints,sessionNames,count, andaccountId, using a lease-targeted fast-path that memoizeslistAssignmentsper target account (skipping full dashboard polling and unrelated accounts) and syncs legacysessions.jsondirectories cleanly. - Updated
colab_claim_cardtext summaries (content[0].text) to exposeendpoint,region,accountId,tokenTTL, andCOLAB_CLI_CONFIG_DIR(legacyConfigDir) directly (strictly omitting rawproxyToken), alongside structured{ card, cards, claimedCount, requestedCount, failed? }. - Enriched
colab_statusandcolab_race_statussummaries with explicitendpoint=,[READY/待用],[预留给 <owner>],[owner=<owner>], remaining reservation TTL,COLAB_CLI_CONFIG_DIR, and immediate claim hints while a race is incleaning.
- Upgraded
- Mandatory Race Ownership,
maxAccountsScoped Sweeps & Auto-Renewed Multi-Card Reservations (#13):- Enforced non-empty
owneroncolab_race_start(both Zod schema and runtime validation) for unambiguous multi-session reservation and stop isolation, and added optionalmaxAccounts(1..16, ranking clean non-412 accounts with fewer active leases ahead of busy/cooled accounts). - Added domain-locked
PluginStore.renewReadyReservationsandRaceManager.renewJobWonReservationsto automatically renew the120sownerreservation across all already-wonREADYcards whenever another card is won, during heartbeats, and before race completion/cleanup.
- Enforced non-empty
- Native Multi-Card Task Pool, Watchdog Protection & Sidecar UI (
#13,skills/colab-agent-workflow/SKILL.md):- Added
assignedEndpointsonPoolTaskandassignedEndpointonPoolTaskStep(syncing canonicalassignedEndpoint, supporting clean clearing vianull/[], and protecting all endpoints returned bygetActiveTaskBoundEndpointsfrom falseIDLE_BURN/[GHOST]alerts while unprotecting released shards immediately). - Updated
TaskPipeline.tsxandApp.tsxto render multi-GPU runtime pills, multi-endpoint offline alerts, per-step shard tags, and multi-endpoint runtime stop confirmations, and updatedSKILL.mdwith the Single-Session Multi-Card Sharding (2–4GPUs) workflow.
- Added
Fixed
- Race-to-READY Split-Brain, Optimistic Transitions & Concurrent MCP Stability (
#12):- Resolved race-to-READY lease split-brain via
pruneMissingLeases(eligibleUpdatedAtgrace guard) +DashboardCachemutationEpoch, added optimistic UIREADYtransitions (app_update_leasestate='ready'+colab_release_cardadopting unleased active runtimes), distinguishedUPSTREAM_TIMEOUT/ quota403/ HTML errors fromNETWORK_ERROR, serializedupsertLegacySessionAsync& concurrentensureInitialized, and hardened login redirect hostname validation.
- Resolved race-to-READY lease split-brain via
中文更新摘要
新增与优化
- 单会话多卡并行分片与 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宽限校验与DashboardCachemutationEpoch),完善面板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.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.3.0)
Colab GPU v1.2.2
Colab GPU (agy-colab) v1.2.2
English Summary
Added
- Credential Freeze / Unfreeze & Safe Account Deletion (
#9):- Added
AccountMeta.frozen/frozenAtand domain-lockedsetAccountFrozen(accountId, frozen)inPluginStore, while enhancingremoveAccountto prune associated leases alongside account credentials and FIFO balance ledger entries. - Guarded
AuthManager.getAccessToken/refreshAccessTokenagainst 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 hardenedapp_account_removewith fail-closed active-GPU & running-race guards (force: trueoverride only when live GPU verification fails, plus direct deletion of already-frozen credentials). - Short-circuited
buildLiveDashboardfor frozen accounts with zero Google/Colab API calls, addedKeepAliveManager.untrackAccount+hydrateFromStoreactive-account filtering +app_set_keepalivefrozen guard, excluded frozen accounts fromRaceManager.start()(while clearing persisted 412 rate limits viaclearRateLimitedAccount), surfaced[FROZEN/已冻结]status in agent tools, and added inline/modal freeze & delete controls inAccountStrip,AuthProxyModal, andRaceArena(13model-visiblecolab_*vs.23app-onlyapp_*tools).
- Added
- Cross-Process File Locking & Disjoint-Account Multi-Session Concurrency (
src/server/state/file-lock.ts,src/server/colab/racer.ts,#8):- Upgraded
PluginStore.withDomainLockwith OS-level cross-process file locks (locksDir, dead-PID / expired-TTL recovery) so parallel MCP host processes safely mutateleases,tasks,config,accounts, andledgerwithout losing updates. - Added persisted
race-state.jsoncoordination for concurrent multi-session GPU racing across disjoint accounts withowner/raceIdstop isolation,120sREADYcard owner reservations incolab_claim_card, anti-friendly-fire double-pass cleanup, and multi-raceRaceArenacards.
- Upgraded
- Default-On 60s Backend Keep-Alive & Single Global Panel (
src/server/colab/keepalive.ts,#7):- Added
KeepAliveManagerandColabApiClient.sendKeepAlivesending 60s Colab TFE heartbeats independently of panel state (enabled by default for non-ghost GPUs, exempt for pure-OAuth[GHOST]GPUs), backed by persisteddefaultKeepAliveconfig, per-endpointkeepAliveEnabledoverrides, and UI-onlyapp_set_keepalive. - Consolidated
colab_open_panelonto a singleglobalpanel entrypoint (removingaux_pane).
- Added
- 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.2targets 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
Colab GPU (agy-colab) v1.2.1
English Summary
Fixed
- Windows
.zipExtraction of Linux-Built Release Archives (src/server/updater/updater.ts,scripts/update-plugin.mjs):- Fixed a PowerShell
InvalidCastIConvertiblefailure when casting negative signedInt32UnixExternalAttributesvalues (such as0100644/0x81A40000/-2119958528inubuntu-latest-packaged release.ziparchives) 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 strict0xA000symbolic-link rejection. - Added cross-platform regression tests in
tests/updater.test.mjscovering high-bit Unix regular files/directories (0x81a40000/0x41ed0000) and Unix symlinks (0xa1ff0000) across both extractors.
- Fixed a PowerShell
中文更新摘要
问题修复
- 修复 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 常规文件与符号链接的跨平台回归测试。
- GitHub Actions 在
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.1targets 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
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
RaceManagersingleton with the Sidecar UI (13model-visiblecolab_*vs.21app-onlyapp_*tools):colab_race_start: Pure-async start returning immediately with the liveRaceJobSnapshot; enforces mandatoryuserConfirmed: true, explicitspecsorminVramGbselection (preventing accidental default high-VRAM grabs), a hard count cap of1..4cards per race (default1), and a bounded wall-clock timeoutmaxDurationSecof30..900s(default300s).colab_race_status: Non-blocking poll for race status, attempt count, wonREADYcards (without leaking rawproxyToken), and scrubbedcleanupWarnings.colab_race_stop: Immediate abort with double-pass orphan cleanup while preserving any already-wonREADYcards (idempotent when idle).
- Applies
scrubProxyCredentialsFromTextdefense-in-depth to race snapshots and error messages.
- Exposed 3 model-visible MCP tools sharing the existing
- Per-Job Wall-Clock Duration Override (
src/server/colab/racer.ts, #3):- Added optional
maxDurationMstoRaceManager.start()bounded by the manager's15mceiling, preserving existingapp_race_startbehavior while enforcing tighter default timeouts for Agent-initiated races.
- Added optional
Changed
- Status & Discovery Integration (
src/server/tools/agent-tools.ts, #3):- Surfaced live
activeRacestatus incolab_statusand updatedcolab_discover_ready_cardsempty-pool guidance.
- Surfaced live
- Agent Skill, Architecture Docs & Tests (
skills/colab-agent-workflow/SKILL.md,docs/,tests/, #3):- Updated
SKILL.mdwith 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, anddocs/README.zh-CN.md, and added unit + MCP stdio integration tests intests/racer.test.mjsandtests/smoke.test.mjs.
- Updated
中文更新摘要
新增功能
- 面向 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凭据脱敏防线。
- 新增 3 个模型可见 MCP 工具并与 Sidecar UI 共享同一
- 单任务墙钟超时覆盖(
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.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.2.0)
Colab GPU v1.1.1
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.comrequests hit HTTP403/429rate limits (common on shared proxy/VPN egress IPs), both the Sidecar updater and standalone CLI now automatically fall back tohttps://github.com/<repo>/releases/latest(302 tag resolution) + directSHA256SUMS.txtmanifest fetch, preserving full SHA-256 fail-closed verification and HTTPS GitHub allowlist invariants. - Added optional
AGY_COLAB_GITHUB_TOKEN/GITHUB_TOKEN/GH_TOKENbearer auth strictly scoped tohttps://api.github.com.
- When unauthenticated
- Clean Windows
ProxyAgentShutdown (scripts/update-plugin.mjs):- Always cancels unread error response bodies and exits via
process.exitCodeinstead of hardprocess.exit(1), eliminating Node 22 / libuvUV_HANDLE_CLOSINGassertion noise on Windows when a proxied request fails.
- Always cancels unread error response bodies and exits via
中文更新摘要
问题修复
- 插件更新器支持 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/latest302 跳转 +SHA256SUMS.txt直连清单解析最新版本,同时完整保留 SHA-256 强制校验与 HTTPS 白名单防线;亦支持通过AGY_COLAB_GITHUB_TOKEN/GITHUB_TOKEN/GH_TOKEN提升 API 额度。
- 共享代理 / VPN 出口访问未鉴权
- 修复 Windows 下 CLI 更新器代理报错退出时的 libuv 句柄断言(
scripts/update-plugin.mjs):- 出错路径统一释放响应体并改用
process.exitCode = 1优雅退出,避免 Node 22 +undiciProxyAgent触发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.1targets 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
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_updateandapp_apply_update(visibility: ['app'], keeping LLM tool context untouched) backed bysrc/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 (zeroinnerHTML), 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 asupdate-plugin.mjsinside 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.txtverification (plus GitHub asset digest cross-check), Zip-Slip & symlink rejection for.zipand.tar.gz, source-checkout guard (.git/src/), active-race guard, junction/symlink-safenode_modulesreplacement with automatic rollback, and zero touch on${PLUGIN_DATA}.
- Added app-only MCP tools
- Bilingual
EN / 中文Sidecar Console (shipped onmainsincev1.0.0): automatic host/system locale detection with live headerEN / 中文toggle.
Fixed
- Colab GPU Utilization Calculation Bug (
src/server/colab/runtime.ts,RuntimeCard.tsx):- Google Colab's
/api/colab/resourcesendpoint reportsgpuUtilizationas a[0.0, 1.0]fraction (int(row[4]) / 100). Previously,raw < 1causedgpuUtilization = 1.0(100% load) to be interpreted as1%, displaying inaccurate telemetry and triggering falseidle_burnalerts on fully saturated GPUs. - Introduced
normalizeGpuUtilPct(raw, { unit })treating[0, 1](inclusive of1.0) as fractional0%–100%, explicit*Percentkeys as percentages, values> 1as clamped[0, 100], invalid/negative values asnull, and multi-GPU readings via total VRAM + max utilization.
- Google Colab's
中文更新摘要
新增功能
- 内置可校验插件自更新功能(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}数据目录。
- 新增仅前端可见的 MCP 工具
- 中英双语 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,并完善多卡显存求和与最高利用率聚合。
- Google Colab
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.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.1.0)
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)