Skip to main content
Glama

agy_execute

Execute approved implementation plans or resume interrupted Claude runs via Account B Antigravity CLI, with exclusive write locks, shared continuity state, and git checkpoints.

Instructions

Execute an approved plan or incrementally continue an interrupted Claude run via Account B local Antigravity CLI (default gemini-4-hydrogen-xhigh). Acquires an exclusive write lock, shares .agents/state/ L1/L2/L3 continuity + Interrupted Run Recovery context, captures git tree checkpoints (pre_run_tree/post_run_tree), and supports async_mode=true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_dir": "<workspace_dir>"
    },
    "name": "agy_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoComplete approved implementation plan or fix-round instructions (optional when plan_file is provided).
modelNoOptional agy executor model slug (default: gemini-4-hydrogen-xhigh; override e.g. claude-sonnet-5-5-high, or set AGY_EXECUTE_MODEL='' to follow agy settings.json).
effortNoOptional reasoning effort: low, medium, high, xhigh, or max.
plan_fileNoPath to the approved plan file (relative to workspace_dir or absolute). It identifies the plan content but does NOT change the warm session.
async_modeNoIf true, return job_id immediately for long fallback executions; poll with claude_execute_status (default: false).
session_keyNoContinuity bucket in .agents/state/session-index.json (default: 'agy:workspace').
session_modeNo'auto' (default): resume the warm workspace session within TTL 3600s / 30 turns and inject a compact External Workspace Changes diff when files were edited outside the session, rotate otherwise; 'resume' to force resuming; 'fresh' to force a new session.
allowed_filesNoAuthorized file paths Claude is permitted to create or modify.
extra_contextNoOptional supplementary context or constraints for the execution.
workspace_dirYesAbsolute path to the target project workspace directory.
include_historyNoInject bounded L1 .agents/state/workspace-brief.md plus the latest 2 L2 plan-history entries on fresh/rotated/fallback runs (default: true).
timeout_secondsNoTimeout in seconds (sync cap 165s, async max 1800s).
verification_commandsNoCommands Claude must execute to collect objective runtime evidence.
resume_conversation_idNoExplicit agy conversation_id to resume directly via --resume.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With zero annotations, the description carries the full burden and does substantial work: it discloses exclusive write-lock acquisition, shared L1/L2/L3 continuity state plus Interrupted Run Recovery context, git tree checkpoints (pre_run_tree/post_run_tree), and async support. That is real operational behavior an agent could not infer from the schema. Gaps remain on what happens on lock contention or failure, but the core side effects are surfaced.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, which is correct. However, the single sentence is a dense run-on that stacks four implementation clauses with heavy jargon (.agents/state/ L1/L2/L3, pre_run_tree/post_run_tree), and the trailing 'supports async_mode=true' merely restates what the schema already declares.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter, no-annotation, no-output-schema mutation-style tool, the description covers the execution flow and side effects but says nothing about the return shape (e.g. the job_id in async mode) or how to recover from lock contention. It is adequately complete on what it does, incomplete on what to expect back and what can go wrong.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 14 parameters in detail, making 3 the baseline. The description adds only two facts beyond the schema: the default model and that async_mode=true is supported, both of which are already stated in the schema. No additional meaning is layered onto session_key, session_mode, or continuity parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource pair: execute an approved plan, or incrementally continue an interrupted run, via the Antigravity CLI on Account B. An agent can tell this is the execution step versus siblings like agy_plan or agy_verify. It never explicitly names those siblings, so differentiation is inferential rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: 'approved plan' signals it follows a planning step, and 'incrementally continue an interrupted Claude run' signals the recovery path. The only routing hint ('poll with claude_execute_status') lives in the schema, not the description. There are no exclusions telling an agent when NOT to use this versus claude_execute.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.