Works with the AI Agents you already use
Antigravity & Gemini CLI Doctor & Token Auditor
by Yucheng Wang
Local diagnostic and token optimization tool for Google Antigravity and Gemini CLI via agycraft-mcp.
Free
Antigravity & Gemini CLI Doctor & Token Auditor
Example session with this skill installed
I am hitting 429 errors frequently and my quota is draining. Audit my usage and give me a fix.
- Read your context and instructions
- Compiled the antigravity & gemini
I have analyzed your local telemetry and identified a quota desync issue in the 5h rolling bucket.
Usage Audit & Diagnostic Report
| Metric | Value | Status |
|---|---|---|
| Current 5h Consumption | 842k tokens | Critical (Near 900k limit) |
| Thinking Output Ratio | 42% | High |
| KV Cache Miss Rate | 18% | Optimized |
| Fault Domain | Quota/429 Desync | Active |
| Primary Driver | Autonomous retry loop in subagent | Action Required |
Diagnostic Findings
Your 429 errors are triggered by an autonomous agent loop failing to back off during rate limits. The current Thinking budget is set higher than necessary for the current task (refactoring), causing rapid bucket exhaustion.
Prescriptions
- Reduce Thinking Budget: Modify your session config to cap thinking tokens at 2,048 for the next 2 hours.
- Compact Session: Clear the current message history to reset the KV cache context.
- Fix Retry Logic: Update your orchestrator settings to implement exponential backoff on 429 responses.
Next steps
- Run
npx -y agycraft-mcp@latest doctor --jsonto verify no secondary auth mismatches exist. - Use
lookup_model_guide --task lightweightto switch the subagent to a more token-efficient worker model. - Monitor
~/.config/agycraft/usage.jsonlfor the next 30 minutes to ensure consumption flattens.
Connects securely to your tools. The creator never sees your data.
About this skill
Stop wasting tokens on inefficient Gemini and Antigravity sessions. This skill provides a specialized diagnostic layer for developers using the agycraft-mcp ecosystem to manage quota, debug transport errors, and optimize model selection.
What it does
- Token Auditing Inspects 5h, 24h, 7d, 30d, and all-time rollups (
v2schema) withglobal/projectscope isolation,auth_modefiltering, and shadow cost estimation. - Fault Attribution Categorizes errors into five fault domains, Structured Output / Function Calling errors, and 4 granular GCP / Vertex AI rules (
gcp-vertex-api-disabled,gcp-adc-expired,gcp-vertex-iam-or-location,gcp-vpc-sc-blocked). - KV Cache Analysis Detects implicit cache misses under 4,096 tokens to improve prompt efficiency.
- Model Pairing Recommends optimal Orchestrator and Worker combinations like Neon and Hydrogen based on task type.
- Config Validation Audits
mcp_config.jsonand.geminiignorefor common syntax or environment variable issues.
How it works
- Health Check Run the offline doctor command to scan local configuration files for mismatches or oversized global rules.
- Error Diagnosis Input specific error codes to receive root-cause attribution and copyable fix commands.
- Usage Analysis Review telemetry for Thinking output ratios and context utilization percentages.
- Optimization Apply generated prescriptions to compact sessions or adjust Thinking budgets.
Frameworks & tools
Built for Google Antigravity (AGY) and Gemini CLI (agycraft-mcp v0.2.6+). Integrates via stdio (npx -y agycraft-mcp@latest) and works within Antigravity, Gemini CLI, Claude Code, or Cursor environments.
Why this beats prompting it yourself
Generic LLMs lack the domain-specific knowledge of Antigravity's rolling quota buckets and specific MCP transport quirks. This skill uses local telemetry and predefined fault domains to give you actionable fixes instead of "try restarting" advice.
Use cases
- Debugging 429 or 503 errors during heavy automated coding sessions.
- Reducing costs by identifying high Thinking output ratios in simple tasks.
- Resolving MCP transport issues in Claude Code or Cursor configurations.
- Selecting the most cost-effective model for lightweight subagent tasks.
Known limitations
Requires agycraft-mcp installed locally via npm. Cannot directly fix upstream Google API outages or modify your billing settings.
Install & Run (v0.2.6+): npx -y agycraft-mcp@latest doctor npx -y agycraft-mcp@latest preflight Register MCP Server: # Antigravity CLI agy mcp add agycraft npx -y agycraft-mcp@latest # Gemini CLI (project-scoped) gemini mcp add --scope project agycraft npx -y agycraft-mcp@latest # mcp_config.json / settings.json {"mcpServers":{"agycraft":{"command":"npx","args":["-y","agycraft-mcp@latest"]}}}
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 8 days ago
- Free with an Agensi account
- Software
- Agycraft MCP
Node.js
Permissions
What's inside
Creator
Yucheng Wang
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.