gemini_code
Delegates a coding task to Gemini to read and edit files in a local project folder, then returns a summary and conversation ID for follow-up changes.
Instructions
Delegate a coding task to Gemini, which reads and EDITS files in one
local folder through the Antigravity agent on the user's Google AI Pro plan
(no API cost). This changes files: tell the user, and review the result
afterwards, e.g. with git diff. Terminal commands run in a sandbox and
only the given folder is writable.
Good for a well-defined change: fix a bug, add tests, refactor a module.
For read-only questions use gemini_ask; for a task on a GitHub repo that
should end in a pull request use jules_start.
Args:
task: What to change and how to know it is done, e.g. "Add unit tests
for parse_date in utils/dates.py; all tests must pass".
folder: Absolute path of the project folder Gemini may edit.
model: Model id from gemini_models; omit for agy's default.
agent: Name of an Antigravity agent from gemini_agents to run the task.
effort: Reasoning effort: "low", "medium", "high", "xhigh" or "max".
conversation_id: Continue an earlier gemini_code or gemini_ask chat, e.g.
to ask for fixes to the previous change.
Returns:
Gemini's summary of what it changed, and a conversation_id for follow-up
requests; or an error if the folder does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| agent | No | ||
| model | No | ||
| effort | No | ||
| folder | Yes | ||
| conversation_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |