Fixed: "agent executor error: could not convert a single message before hitting truncation" #357
ozgundogan-qa
started this conversation in
General
Replies: 1 comment
-
|
Thanks for flagging this! It’s a known issue and it’s already fixed in PR #219 (“feat: Add skill filtering utility to fix Gemini token truncation”), merged on 2026‑03‑07. Update to the latest main (or the next release) and use the new skill-filter/bundle setup to avoid context overflow. Much appreciated! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Topic area
Repo feedback
What would you like to discuss?
The Problem / Sorun
When installing the full antigravity-awesome-skills repository (1200+ skills), Antigravity throws a termination error:
Error: agent executor error: could not convert a single message before hitting truncation
This happens because the metadata of 1200+ skills exceeds the model's initial context window (System Prompt). The agent tries to "read" all skill descriptions before the first message and fails immediately.
The Solution / Çözüm
The fix is to use Selective/Modular Installation instead of a full clone. By only installing specific bundles (like web-wizard or qa-testing), the system prompt remains lean and the agent works perfectly.
Step-by-Step Fix:
Clean up: Remove the existing overstuffed skills folder:
rm -rf ~/.gemini/antigravity/skills/*
Install via Bundles: Use the CLI to only fetch what you need. For example:
npx antigravity-awesome-skills --bundle web-wizard --bundle web-designer
Restart: Restart your IDE and Antigravity.
Why this works?
By reducing the number of active skills from 1200+ to ~30-40, you free up the context window for actual coding tasks and conversation history.
Relevant links or examples
No response
Before posting
Beta Was this translation helpful? Give feedback.
All reactions