Agy Session Resume

    by Myhoolabs

    1

    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

    Security scanned

    Works with the AI Agents you already use

    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 TitleModel ConfigurationThinking LevelLast Active
    Fix Backend Auth LogicGemini 1.5 Pro (Hydrogen)High2h ago
    Refactor SQL QueriesGemini 1.5 Flash (Neon)Medium5h ago
    Backend API DocsGemini 1.5 Pro (Hydrogen)Low1d 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 -r without a keyword to see the full interactive list of all 15 local sessions.
    • Run agy --stats if 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 --settings flags without ever overwriting global settings.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 --model or --settings overrides and passes non-resume commands directly to agy.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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    PythonGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Environment Variables
    Listed9 days ago

    What's inside

    Creator

    M

    Myhoolabs

    5 skills on Agensi

    Frequently Asked Questions

    This skill prevents the Antigravity CLI from using the wrong model when you resume a conversation, which is a common issue when running multiple terminals on Windows. It ensures that every thread automatically uses its original model settings, protecting your Gemini Prompt Cache and reducing token costs.

    Yes, it is specifically designed to handle complex sessions involving both Planner and Executor models, including their individual 'thinking' levels. The skill ensures that both agents in the orchestrator pair are restored to their correct configurations simultaneously.

    The skill requires Windows 10/11, Python 3.10+, and an existing installation of the Google Antigravity CLI. It currently operates within PowerShell environments through a profile-based wrapper.

    You will receive the core Python automation scripts, the PowerShell integration profile, and a setup guide to link the skill to your existing CLI installation. All future updates to ensure compatibility with new Antigravity CLI versions are included.

    No, it functions via read-only access to your local SQLite session databases and uses process-level CLI flags. It never modifies your global settings.json, keeping your base configuration clean and safe from corruption.

    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.

    Free