[bug] AG is not seeing the workspace rules and workflows

  • first image shows that i have values in .agent file

  • second image shows that AG is not recognizing the rules and 3rd shows that its not recognising workflows also.

  • tried, restarting AG, recreating rules and workflows, nothing working

2 Likes

Exactly the same here. AG can see the global rules and global workflows but fails to recognize the rules and workflows in workspace level. Even in chat, AG can find them, but they never appear when using a slash command.

2 Likes

I am running through the exact same bug, created a custom workflow and it’s not showing up. Then I created some dummy rule file and it’s not showing up either. See below:

Any incoming fixes?

Experiencing the exact same bug here.

I noticed Gemini 3 Pro specifically is not able to recognize workspace-level rules with the “Always On“ activation mode applied but Gemini 3 Flash and Claude Opus 4.6 at least are able to do so.
This is occurring when my .agent folder is not even gitignored. (There’s a workaround for the agent not recognizing .gitignored workspace rules here by the way: https://www.reddit.com/r/google_antigravity/comments/1q6vt5k/comment/nyav2t7/ )

Most probably you are missing the literals required at the beginning of rules file:
Copy your rules file outside the .agents folder and verify the raw text. There should be something like this at beginning (if it’s not, add it):

---
trigger: always_on
description: Custom Description Here
---

This is my custom rule

2 Likes

might be because you put them in gitignore

1 Like

Hi @Kishan_Rajput ,

Sorry for the delayed response! @sj00 suggested a workaround.

Were you able to give their steps a try? Let us know if that fixed the issue for you or we can continue troubleshooting.

I tried it, but it doesn’t show up in the Rules for 1.20.5. The GEMINI.md file placed in the project root folder isn’t displaying either. Both of these were showing up fine in 1.19.6. Additionally, the workflows are not displaying.