Agy Session Resume
by Myhoolabs
Per-thread model memory and session resume guard for Google Antigravity CLI on Windows. Prevents cross-window model mix-ups and preserves Prompt Cache hits to save credits.
Free
Agy Session Resume
Example session with this skill installed
agy -r backend
- Read your context and instructions
- Compiled the agy session resume
I have scanned your local Antigravity sessions. Found 3 conversations matching "backend". I am resuming the most recent session using the original model configuration to preserve your Prompt Cache.
Session Resume Summary
| Thread Title | Model Configuration | Thinking Level | Last Active |
|---|---|---|---|
| Fix Backend Auth Logic | Gemini 1.5 Pro (Hydrogen) | High | 2h ago |
| Refactor SQL Queries | Gemini 1.5 Flash (Neon) | Medium | 5h ago |
| Backend API Docs | Gemini 1.5 Pro (Hydrogen) | Low | 1d ago |
Command Executed:
agy --conversation 8f2a1b --settings '{"model": "gemini-1.5-pro-hydrogen", "thinking_level": "high"}'
Next steps
- Continue the conversation in the active terminal; your cache hits are preserved.
- Use
agy -rwithout a keyword to see the full interactive list of all 15 local sessions. - Run
agy --statsif you need to verify the cache hit rate for this specific thread.
Connects securely to your tools. The creator never sees your data.
About this skill
Agy Session Resume is a zero-dependency, single-file Python standard-library tool (agy_session_guard.py) that fixes a major limitation in native Google Antigravity CLI (agy) on Windows.
Why it matters (Cache Hits & Credit Savings):
Native agy stores the active model in global settings.json instead of binding it per conversation. When you switch models in one terminal window and later resume an older thread (agy -r, agy -c, or agy --conversation <id>), native agy resumes with the wrong global model—breaking server-side Prompt Cache hits and wasting latency and credits.
What Agy Session Resume does:
- Read-Only Per-Thread Model Recovery: Inspects local session databases (
executor_metadata/gen_metadata) in read-only mode to recover each thread's exact last-used model and thinking level (including Orchestrator Planner + Executor pairs). - Zero Global Pollution: Passes the recovered model via process-level
--settingsflags without ever overwriting globalsettings.json, preserving Prompt Cache continuity. - Minimal Two-Column Picker (
agy -r [keyword]): Zero-flicker interactive session list showing Thread Title and exact Model/Thinking Level with live keyword filtering. - Safe Passthrough & Flag Merging: Respects explicit
--modelor--settingsoverrides and passes non-resume commands directly toagy.exe.
Includes install.ps1 for idempotent Windows setup and tests/test_agy_session_guard.py.
Created by Myhoolabs on GitHub (Repo: Myhoolabs/agy-session-resume).
Windows only; designed specifically for Google Antigravity CLI (agy) local session databases.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Software
Python
Git
Permissions
What's inside
Creator
Myhoolabs
5 skills on Agensi
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.