/saarius-skills:agy-sidebar-sessionfrom saarius-skills
Start, message, hand off, inspect, fork, wait on, stop, and export top-level Antigravity 2.0 sidebar sessions across local or SSH-reachable machines using agentapi and LanguageServerService ConnectRPC endpoints. Use when asked to open or manage a sidebar session, hand off work to another Antigravity host, compare quota across subscriptions, message another conversation, or call LanguageServerService RPCs.
Ships in saarius-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
agy-sidebar-session)Use the bundled scripts/agy-session.py helper (or direct agentapi commands) to create and orchestrate top-level Antigravity 2.0 sidebar conversations locally or across SSH-reachable machines (--host) and call any of the 365 LanguageServerService ConnectRPC methods natively—without driving the GUI via computer use.
invoke_subagent tool creates a nested child drawer (nesting_depth > 0) rather than a top-level sidebar session.~/.gemini/antigravity/bin/agentapi (wrapping language_server agentapi) and a local ConnectRPC server (ANTIGRAVITY_LS_ADDRESS + ANTIGRAVITY_CSRF_TOKEN, auto-discovered from live ~/.gemini/antigravity/daemon/hub_*.json files when running outside an agent shell).agentapi new-conversation (with ANTIGRAVITY_PROJECT_ID set to the target project UUID) creates a real top-level sidebar conversation (nesting_depth: 0, hideFromConversationList: false) under any registered project.--host <ssh-alias>, agy-session.py streams itself over SSH (python3 - ...) so cross-machine handoff works with zero files pre-installed on the remote host, zero GUI clicks, and zero CSRF tokens leaving the remote host.scripts/agy-session.py)Run the helper via python3 <skill-dir>/scripts/agy-session.py <subcommand> (pass --host <ssh-alias> before or after any subcommand to target a remote machine):
# 1. Start a new top-level sidebar session (uses configured default_project unless --project is passed)
python3 scripts/agy-session.py new \
--project my-repo \
--title "New Session" \
--prompt "Stand by for instructions in this session."
# 2. One-call cross-host handoff: launch on a remote Mac/Linux host, wait until idle, return reply
python3 scripts/agy-session.py --host devbox new \
--model opus \
--title "Cross-Host Review" \
--prompt "Review the latest branch diff and return findings." \
--wait --timeout-seconds 180
# 2b. Launch a 3-tier /swarm session (Orchestrator Neon + Hydrogen authors + Neon verifiers)
python3 scripts/agy-session.py --host devbox new \
--swarm-tiered \
--title "Tiered Swarm Sprint" \
--prompt "Implement the feature slice and verify all tests pass."
# High-complexity architecture/kernel tasks: bump coordinator to Gemini 4 Neon (XHigh)
python3 scripts/agy-session.py --host devbox new \
--swarm-tiered --swarm-xhigh \
--title "Kernel Architecture Swarm" \
--prompt "Audit lock ordering and fix the race condition." \
--dry-run
# Long handoff prompts can be read from a local file (forwarded cleanly over --host)
python3 scripts/agy-session.py --host devbox new \
--title "Handoff Context" \
--prompt-file /tmp/handoff.md \
--wait
# 3. Send a message to an existing sidebar conversation (optionally --wait for the reply in 1 call)
python3 scripts/agy-session.py --host devbox send \
--conversation <conversation-uuid> \
--message "Follow up with the test results." \
--wait
# 4. Probe all configured hosts in parallel (online status, projects, and Gemini/Claude quota)
python3 scripts/agy-session.py fleet
python3 scripts/agy-session.py quota --fleet
python3 scripts/agy-session.py quota --hosts local,workstation-a,workstation-b
# 5. Set per-user defaults (~/.config/agy-session/config.json)
python3 scripts/agy-session.py config \
--set-default-project my-repo \
--set-hosts local,workstation-a,workstation-b
# 6. List projects, recent sessions, metadata, export, fork, wait, stop
python3 scripts/agy-session.py --host devbox projects
python3 scripts/agy-session.py --host devbox list --limit 10
python3 scripts/agy-session.py metadata <conversation-uuid>
python3 scripts/agy-session.py export-md <conversation-uuid>
python3 scripts/agy-session.py fork <conversation-uuid>
python3 scripts/agy-session.py wait <conversation-uuid> --timeout-seconds 120
python3 scripts/agy-session.py stop <conversation-uuid>
# 7. Check advertised models, single-host quota, or call any LanguageServerService RPC
python3 scripts/agy-session.py models
python3 scripts/agy-session.py quota --summary
python3 scripts/agy-session.py rpc ListBackgroundTasks '{}'
config.json & Env Overrides)scripts/agy-session.py reads optional per-user defaults from ~/.config/agy-session/config.json (override path with --config or AGY_SESSION_CONFIG):
| Setting | Env Override | Purpose |
|---|---|---|
default_project | AGY_DEFAULT_PROJECT | Default project name/UUID for new (propagated automatically across --host unless --project is passed; pass --project auto to use the host's own default). |
hosts | AGY_FLEET_HOSTS (CSV) | Default host list for fleet and quota --fleet (defaults to ["local"]). |
ssh_timeout | AGY_SSH_TIMEOUT | SSH ConnectTimeout in seconds (default 10). |
/swarm Preset (--swarm-tiered & --swarm-xhigh)Pass --swarm-tiered on new (works locally and over --host) to launch a token-efficient 3-tier /swarm session without hand-writing worker policy boilerplate:
gemini-pro-orchestrator-neon (Orchestrator (Neon) — Neon quality with routine steps offloaded to Hydrogen). Pass --swarm-xhigh to default the coordinator to gemini-4-neon-xhigh, or pass --model <id-or-alias> to override explicitly.gemini-4-hydrogen-high (override with --swarm-author-model <id-or-alias>), with workspace:"share" and non-overlapping file ownership for parallel editors.gemini-4-neon-high (override with --swarm-verifier-model <id-or-alias>; 1 verifier per 2–3 authors). Authorizes in-place swarm{action:"model", ...} escalation (preserving conversation & workspace) only on repeated failures, repeated verifier rejections, or UB/concurrency/ABI/security-critical code.--swarm-tiered prefixes /swarm cleanly without duplicating an existing /swarm prefix or policy header, and --dry-run prints the exact resolved model, prompt, and local/remote command args without touching a live daemon or SSH.Antigravity tracks Claude / GPT models in a separate quota bucket (3p-weekly, 3p-5h) from Gemini (gemini-weekly, gemini-5h). Use fleet or quota --fleet to compare headroom across hosts before dispatching, and pass short aliases via --model:
| Human Label | Exact --model ID | Short Alias |
|---|---|---|
Orchestrator (Neon) (Default for --swarm-tiered) | gemini-pro-orchestrator-neon | orchestrator-neon, orch-neon, neon-orchestrator |
| Orchestrator (Carbon) | gemini-pro-orchestrator | orchestrator, orchestrator-carbon, orch-carbon, carbon-orchestrator |
| Orchestrator (Argon) | gemini-pro-orchestrator-argon | orchestrator-argon, orch-argon, argon-orchestrator |
| Gemini 4 Neon (High/XHigh/Med/Low) | gemini-4-neon-{high,xhigh,medium,low} | neon, neon-high, neon-xhigh, neon-medium, neon-low |
| Gemini 4 Hydrogen (High/XHigh/Med/Low) | gemini-4-hydrogen-{high,xhigh,medium,low} | hydrogen, hydrogen-high, hydrogen-xhigh, hydrogen-medium, hydrogen-low |
| Gemini 4 Carbon (High/Med/Low) | gemini-4-carbon-{high,medium,low} | carbon, carbon-high, carbon-medium, carbon-low |
| Gemini 4 Argon (High/Med/Low) | gemini-4-argon-{high,medium,low} | argon, argon-high, argon-medium, argon-low |
| Claude Opus 5.5 (High/Med/Low) | claude-opus-5-5-{high,medium,low} | opus, opus-5.5, opus-high, opus-medium, opus-low |
| Claude Sonnet 5.5 (High/Med/Low) | claude-sonnet-5-5-{high,medium,low} | sonnet, sonnet-5.5, sonnet-high, sonnet-medium, sonnet-low |
| Tier Aliases | flash_lite, flash, pro | Passed directly to agentapi |
agentapi CLI ReferenceWhen you only need the 3 built-in CLI commands locally inside the current project, you can invoke agentapi directly:
# Start a conversation in the current project (or prefix ANTIGRAVITY_PROJECT_ID=<uuid>)
~/.gemini/antigravity/bin/agentapi new-conversation \
--title="Session Title" \
--model=pro \
"Initial prompt for the new session"
# Send a message to any conversation ID
~/.gemini/antigravity/bin/agentapi send-message \
--title="Optional Title" \
<conversation_id> \
"Message content"
# Get live conversation metadata
~/.gemini/antigravity/bin/agentapi get-conversation-metadata <conversation_id>
[!IMPORTANT] Always place
--title,--model, and--profileafter the subcommand (agentapi new-conversation --title="..." "<prompt>"), never beforenew-conversation.
ANTIGRAVITY_CSRF_TOKEN or raw daemon discovery files containing tokens. scripts/agy-session.py reads the token in-memory on the target host and never echoes it across stdout, stderr, or SSH.--host validates host aliases against option injection (rejects leading - and shell metacharacters) and runs SSH with BatchMode=yes and StrictHostKeyChecking=yes.WAITING_FOR_HUMAN): never invoke DeleteAllUserData, DeleteProject, DeleteCascadeTrajectory, DeleteWorktree, GitPush, or AuthLogout unless the user explicitly asks for that exact destructive action.Read references/language-server-rpcs.md for the complete categorized catalog of all 365 LanguageServerService RPC endpoints + 3 agentapi CLI commands + daemon environment variables.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saariuslystoned/saariusskills --plugin saarius-skills48 skills in this plugin
/acp-delegationRoute generic requests to use the SaariusSkills ACP plugin or delegate through ACP. The MCP servers come from the separate ai-shed plugin. Discover Grok CLI, Cursor, Antigravity, and Muse native tools, select a suitable harness, verify effective permissions, and submit a bounded task. Use a lane skill directly for an already selected harness./antigravity-acp-delegationUse the separately named antigravity-acp MCP lane to diagnose official Google Antigravity ACP setup or delegate one bounded implementation slice. Verify the exact advertised model in the live catalog before dispatch. Distinct from cursor-acp and from native agy-print or Puppet qualification./architect