swack toolspluginsGitHub

The collection / Colab Pilot

Run Colab workloads without wasted credits

Zero-waste Google Colab orchestration with GPU cascade provisioning, Drive staging, detached jobs, and Compute Unit leak hooks.

4Skills
1Servers
11Tools
3Hook actions
4Claude slash commands

What it does

Overview

Zero-waste Google Colab orchestration for Antigravity, Claude Code, and Codex. Stage large datasets to Google Drive at zero Compute Unit cost, provision BF16 GPU cascades, launch detached jobs resilient to WebSocket drops, and guard against orphaned sessions.

Read the full documentation and workflow guide for setup walkthroughs, architecture details, and tool specifications.

Overview source ↗

Start here

Try a concrete example

Audit Compute Unit usage and active sessions
/colab-pilot:colab-pilot Check active Colab sessions and Compute Unit burn.

Expected behavior. Inspect live Compute Unit balance, burn rate, and active assignments without allocating a new VM.

Prerequisites. Install Colab Pilot and authenticate the colab command-line tool.

claude-codeSource ↗

Every capability below includes its own example. Examples describe expected behavior; they are not recorded execution results.

Skills you can use

colab-pilot

Open the Colab Pilot live Compute Unit dashboard, audit active sessions and one-fifth AI Ultra monthly budget, manage headless rclone/ADC auth, and sweep orphaned VMs. Use when the user invokes /colab-pilot or asks about Colab CU usage, sessions, or auth.

claudecodex
View SKILL.md ↗
Audit Compute Unit usage and active sessions
/colab-pilot:colab-pilot Check active Colab sessions and Compute Unit burn.

Expected behavior. Inspect live Compute Unit balance, burn rate, and active assignments without allocating a new VM.

Prerequisites. Install Colab Pilot and authenticate the colab command-line tool.

claude-codeSource ↗

colab-shard-cpu

Fan out data extraction, mining, or preprocessing across N parallel CPU-only Google Colab VMs (~0.08 CU/hr each) with isolated session configs, random-seek rclone tuning, and guaranteed tar/manifest merge. Use when invoking /colab-shard-cpu or running parallel CPU Colab jobs.

claudecodex
View SKILL.md ↗
Fan out CPU extraction across parallel shards
/colab-pilot:colab-shard-cpu Run extraction across 5 CPU-only Colab workers.

Expected behavior. Provision isolated CPU-only Colab VMs, run each shard concurrently, merge the resulting archives, and stop every worker VM.

Prerequisites. Provide a shard-aware Python script that reads SHARD_INDEX and SHARD_TOTAL.

claude-codeSource ↗

colab-train

Zero-waste end-to-end GPU training runbook on Google Colab: local 0-CU gate, 0-CU Drive pre-staging, BF16 GPU cascade allocation, detached WebSocket-proof launch, OOM recovery, and verified teardown. Use when the user invokes /colab-train or wants to train a model on Colab.

claudecodex
View SKILL.md ↗
Run zero-waste GPU training on Colab
$colab-train Stage my dataset archive to Drive and launch training on an A100 or L4.

Expected behavior. Stage archives to Google Drive at zero Compute Unit cost, allocate a BF16 GPU cascade, launch detached training, and stop the VM after pulling outputs.

Prerequisites. Validate local archives and configure rclone for Google Drive staging.

colab-watch

Attach an active stall/error/VM-reachability watchdog and optional escalating multi-voice macOS TTS wakeup alarm to any running Colab job or log file. Use when the user invokes /colab-watch or wants unattended monitoring.

claudecodex
View SKILL.md ↗
Monitor a detached job with the watchdog
$colab-watch Watch my detached Colab job and trigger the wakeup alarm on completion.

Expected behavior. Poll remote job status and logs until completion, error, or stall, then print Compute Unit usage.

Prerequisites. Launch a detached job with colab_launch_detached.

Connected servers

pilot

Local stdio MCP server providing 11 Colab orchestration tools and an interactive dashboard.

claudecodexstdio
View definition ↗View definition ↗
Connect the pilot MCP server
Open the Colab Pilot dashboard and inspect active sessions.

Expected behavior. Start the local stdio pilot MCP server and expose all 11 Colab orchestration tools.

Prerequisites. Install Colab Pilot with Python 3.9 or later and the colab command-line tool.

claude-codeSource ↗

Available tools

colab_allocate_cascade

Try GPU tiers in priority order (supporting prefer_gpus, high_mem, and configurable per-tier timeouts), verify BF16 support, probe VRAM, system RAM, and NVENC availability, and return safe DataLoader and crop sizing.

claudecodex
View definition ↗
Allocate a BF16 GPU cascade
Allocate a BF16 GPU session named train-v10 trying A100-highmem, A100, G4, and L4.

Expected behavior. Try each GPU tier in order, probe VRAM and system RAM, verify BF16 support, and return safe DataLoader sizing.

Prerequisites. Ensure Colab account has GPU quota.

colab_dashboard

Open the interactive Colab Pilot dashboard showing Compute Unit balance, burn rate, monthly budget guardrail, active sessions with live GPU, VRAM, system RAM, disk, and CPU telemetry, detached jobs, and alarm controls.

claudecodex
View definition ↗
Open the Colab Pilot dashboard
Show my Colab Compute Unit balance and one-fifth monthly budget status.

Expected behavior. Return live Compute Unit balance, burn rate, active sessions, detached jobs, and alarm state.

Prerequisites. Authenticate the colab command-line tool.

claude-codeSource ↗

colab_exec

Run a bounded one-shot shell command or Python snippet on a Colab VM (auto-routing over SSH when the kernel is busy) with optional safe PID cleanup and file glob removal.

claudecodex
View definition ↗
Run a bounded one-shot remote command
Run a quick package check or clean up stale processes on session train-v10.

Expected behavior. Execute a bounded shell command or Python snippet (routing over SSH when the kernel is busy) without TTY hangs.

Prerequisites. Have an active Colab session.

claude-codeSource ↗

colab_keep_warm

Register or clear a timed keep-warm lease for a Colab session so the Stop guardrail allows ending a turn intentionally.

claudecodex
View definition ↗
Register a keep-warm lease
Keep session train-v10 warm for 30 minutes.

Expected behavior. Record a timed lease so the Stop guardrail allows ending the turn without stopping the VM.

Prerequisites. Have an active Colab session.

colab_launch_detached

Launch a local or already-staged remote Python script detached with nohup, cwd and custom log mirroring, warm-chain process cleanup, carriage-return log normalization, and 10-second GPU heartbeat status.

claudecodex
View definition ↗
Launch a detached training job
Launch train.py detached on session train-v10.

Expected behavior. Start the script under nohup with log normalization and 10-second GPU heartbeat status JSON.

Prerequisites. Allocate an active Colab session.

claude-codeSource ↗

colab_mount_rclone

Configure rclone and mount Google Drive headlessly on a Colab VM with workload-tuned VFS flags and optional secret forwarding.

claudecodex
View definition ↗
Mount Google Drive headlessly with rclone
Mount Google Drive on session train-v10 in streaming mode.

Expected behavior. Copy rclone configuration to the Colab VM and mount Drive read-only without interactive OAuth 2.0 prompts.

Prerequisites. Configure a local rclone.conf file for Google Drive.

claude-codeSource ↗

colab_poll_job

Poll a detached Colab job, background Drive transfer, or ad-hoc process, log path, and artifacts directory with live GPU, VRAM, RAM, and disk telemetry.

claudecodex
View definition ↗
Poll detached job status
Poll job job-1234 on session train-v10.

Expected behavior. Download status JSON and recent log lines via REST without holding a WebSocket open.

Prerequisites. Start a job with colab_launch_detached.

colab_reset_vram

Clear sys.last_traceback, IPython Out caches, optional globals, and torch.cuda.empty_cache to reclaim VRAM after a failed cell.

claudecodex
View definition ↗
Flush zombie VRAM after an OOM
Reset zombie VRAM on session train-v10.

Expected behavior. Clear traceback references, IPython caches, and PyTorch CUDA cache, then report before and after VRAM.

Prerequisites. Have an active GPU Colab session.

claude-codeSource ↗

colab_smart_transfer

Transfer single or batch files between workstation, Google Drive, and Colab VMs with auto-mkdir direct upload, async Drive staging, remote_glob downloads, and headless drive_pull archive extraction.

claudecodex
View definition ↗
Transfer large archives safely
Pre-stage dataset.tar to Google Drive at zero Compute Unit cost.

Expected behavior. Route files up to 24 MiB directly and larger files through Drive staging or verified 24 MiB chunks.

Prerequisites. Provide a valid local path.

colab_stop_all

Stop one named Colab session or all active sessions, clear leases, and return verified Compute Unit usage.

claudecodex
View definition ↗
Stop all active Colab VMs
Stop all active Colab sessions and verify zero burn rate.

Expected behavior. Stop every active Colab session, clear leases, and confirm zero active assignments.

Prerequisites. Authenticate the colab command-line tool.

claude-codeSource ↗

colab_wakeup_alarm

Start, stop, inspect, or test the escalating macOS text-to-speech and chirp wakeup alarm.

claudecodex
View definition ↗
Run wakeup alarm self-test
Run a self-test on the Colab Pilot wakeup alarm.

Expected behavior. Verify voice rotation and accelerating chirp synthesis without playing audio.

Prerequisites. Use macOS for live speech playback or any host for WAV self-test.

Hooks and their triggers

3 actions across 3 events.

PreToolUse

Block interactive TTY colab commands, invalid GPU tiers, and direct uploads larger than 30 MiB.

claudecodexrun_command|Bash5 second timeout
View definition ↗View definition ↗
Block TTY-hanging or unsafe colab command-line calls
Attempt to run colab drivemount or a 50 MiB direct colab upload.

Expected behavior. Deny the command before execution and direct the agent to colab_mount_rclone or colab_smart_transfer.

Prerequisites. Enable Colab Pilot lifecycle hooks.

claude-codeSource ↗

SessionStart

Report active Colab sessions and Compute Unit burn rate when a session starts.

claudecodexAll tools8 second timeout
View definition ↗View definition ↗
Report active Colab sessions at startup
Start a new session while a Colab VM is allocated.

Expected behavior. Inject a concise system message listing active sessions and current Compute Unit burn rate.

Prerequisites. Enable Colab Pilot lifecycle hooks.

claude-codeSource ↗

Stop

Block ending a turn while an unleased Colab VM remains allocated with no running detached job.

claudecodexAll tools8 second timeout
View definition ↗View definition ↗
Prevent orphaned Compute Unit burn on turn end
Finish a turn while an unleased Colab VM is still running.

Expected behavior. Block stopping and instruct the agent to call colab_stop_all or colab_keep_warm.

Prerequisites. Enable Colab Pilot lifecycle hooks.

claude-codeSource ↗

Standalone command files

0 standalone command files. Skill-based slash commands appear in the invocation guide below.

This plugin has no standalone command files in the inspected source.

Slash commands and skill invocation

A skill contains instructions. Its invocation lets you request those instructions directly. The skill and its Claude slash command represent the same capability.

Claude slash commands

After installing the plugin in Claude Code, type a command below and add your request. Availability in other Claude clients depends on the client.

colab-pilot
/colab-pilot:colab-pilot Check active Colab sessions and Compute Unit burn.

Open the Colab Pilot live Compute Unit dashboard, audit active sessions and one-fifth AI Ultra monthly budget, manage headless rclone/ADC auth, and sweep orphaned VMs. Use when the user invokes /colab-pilot or asks about Colab CU usage, sessions, or auth.

See examples and prerequisites ↗View SKILL.md ↗
colab-shard-cpu
/colab-pilot:colab-shard-cpu Run extraction across 5 CPU-only Colab workers.

Fan out data extraction, mining, or preprocessing across N parallel CPU-only Google Colab VMs (~0.08 CU/hr each) with isolated session configs, random-seek rclone tuning, and guaranteed tar/manifest merge. Use when invoking /colab-shard-cpu or running parallel CPU Colab jobs.

See examples and prerequisites ↗View SKILL.md ↗
colab-train
/colab-pilot:colab-train Stage my dataset archive to Drive and launch training on an A100 or L4.

Zero-waste end-to-end GPU training runbook on Google Colab: local 0-CU gate, 0-CU Drive pre-staging, BF16 GPU cascade allocation, detached WebSocket-proof launch, OOM recovery, and verified teardown. Use when the user invokes /colab-train or wants to train a model on Colab.

See examples and prerequisites ↗View SKILL.md ↗
colab-watch
/colab-pilot:colab-watch Watch my detached Colab job and trigger the wakeup alarm on completion.

Attach an active stall/error/VM-reachability watchdog and optional escalating multi-voice macOS TTS wakeup alarm to any running Colab job or log file. Use when the user invokes /colab-watch or wants unattended monitoring.

See examples and prerequisites ↗View SKILL.md ↗

Codex skill invocation

Codex supports built-in slash commands. In the command-line tool, use /skills to select a skill, or use its $skill-name invocation with your request. A Codex skill invocation uses a dollar sign and can include a plugin namespace.

colab-pilot
$colab-pilot Check active Colab sessions and Compute Unit burn.

Open the Colab Pilot live Compute Unit dashboard, audit active sessions and one-fifth AI Ultra monthly budget, manage headless rclone/ADC auth, and sweep orphaned VMs. Use when the user invokes /colab-pilot or asks about Colab CU usage, sessions, or auth.

See examples and prerequisites ↗View SKILL.md ↗
colab-shard-cpu
$colab-shard-cpu Run extraction across 5 CPU-only Colab workers.

Fan out data extraction, mining, or preprocessing across N parallel CPU-only Google Colab VMs (~0.08 CU/hr each) with isolated session configs, random-seek rclone tuning, and guaranteed tar/manifest merge. Use when invoking /colab-shard-cpu or running parallel CPU Colab jobs.

See examples and prerequisites ↗View SKILL.md ↗
colab-train
$colab-train Stage my dataset archive to Drive and launch training on an A100 or L4.

Zero-waste end-to-end GPU training runbook on Google Colab: local 0-CU gate, 0-CU Drive pre-staging, BF16 GPU cascade allocation, detached WebSocket-proof launch, OOM recovery, and verified teardown. Use when the user invokes /colab-train or wants to train a model on Colab.

See examples and prerequisites ↗View SKILL.md ↗
colab-watch
$colab-watch Watch my detached Colab job and trigger the wakeup alarm on completion.

Attach an active stall/error/VM-reachability watchdog and optional escalating multi-voice macOS TTS wakeup alarm to any running Colab job or log file. Use when the user invokes /colab-watch or wants unattended monitoring.

See examples and prerequisites ↗View SKILL.md ↗

Read the Claude skill guide, Codex skill guide, and Codex command-line guide.

Use it in your client

Antigravity

Antigravity workflow

Install with agy plugin install https://github.com/swack-tools/colab-pilot-ai-plugin and invoke /colab-pilot, /colab-train, /colab-shard-cpu, or /colab-watch.

Read the client guidance ↗

Claude Code

Command-line workflow

Install from swack-tools/ai-plugin-marketplace and invoke /colab-pilot:colab-pilot or ask Claude to orchestrate Colab.

Read the client guidance ↗

Codex

Coding workflow

Install from https://github.com/swack-tools/ai-plugin-marketplace.git and invoke $colab-pilot or $colab-train.

Read the client guidance ↗

Slack

Workspace guidance

The repository does not document a Slack integration.

Not documented upstream

Releases and downloads

Verified release

v1.4.0

Download the archive for your client.

ZIP integrity, checksums, and manifest versions are checked during the build. This page describes source 1.4.0; the release may contain an earlier set of capabilities.

v1.4.0

Added bounded colab_exec remote execution, remote script and working-directory support in colab_launch_detached, ad-hoc process and log polling in colab_poll_job, prefer_gpus and high_mem cascade aliases, headless drive_pull archive extraction and batch sync in colab_smart_transfer, and per-session telemetry in colab_dashboard text output.

Read the changes ↗
v1.3.2

Shrank the dashboard HTML bundle below 256 KiB for Claude Desktop compatibility, added direct CLAUDE_PLUGIN_DATA and PLUGIN_DATA support, and included .mcp.json and hooks in every release archive.

Read the changes ↗
v1.3.1

Fixed MCP server and hook path expansion so both Codex PLUGIN_ROOT and Claude Code CLAUDE_PLUGIN_ROOT resolve without nested variable syntax.

Read the changes ↗
Sources and version

Source version: 1.4.0

Source commit: fc027d6841956c796b6c1946169a8b270776a4df

Counts and descriptions are parsed from repository files. Source links identify immutable commits; the full guide follows the upstream project's latest publication.