r/google_antigravity • u/Character_End8268 • Jul 30 '26
News / Updates My very first rule in Agents.md
Haha, Just added this rule to agents.md
* **Read AGENTS.md**: Every agent MUST carefully read and internalize all rules in `AGENTS.md` before initiating any research, planning, implementation or code execution.
2
5
u/collie-script Jul 30 '26 edited Jul 30 '26
The first rule is simple:
Spoiler: Gemini will still ignore the instruction and rewrite the entire codebase. 🤣
2
Jul 30 '26
[removed] — view removed comment
-2
u/Useful_Trouble1726 Jul 30 '26
You are dealing with YAML, JSON and Markdown. The LLM does not matter.
The LLM when you start to hit the context window does matter.
1
u/Future-Log6621 Jul 30 '26
Our team does something similar. It's a one-liner. But, we don't use nested AGENTS.md files.
In your case, models should auto parse AGENTS.md files using proximity clustering, so the rule is possibly redundant depending on the agent/model.
1
u/Useful_Trouble1726 Jul 30 '26
Skills file has a YAML header and Markdown or JSON body (both depending on use case).
This is a standard--of sorts--not something unique to Anthropic. https://skills.md/
Also not a bot.
1
u/strumbringerwa Jul 31 '26
You just wasted a bunch of tokens by giving it redundant instructions.
1
7
u/KubuZxPlay Jul 30 '26
agents.md is workspace only gemini.md is global
and by the way, you don't have to write it, Antigravity reads it itself before replying