Add ai-devkit artifacts to .gitignore
Currently when using ai-devkit init we have a list of additional documentation like docs/ai/* and AGENT.md, not to mention all of the configs for each IDE (cursor, antigravity, claude code, etc)
What about an extra step during ai-devkit init to add all of them to .gitignore for those extra bits during development?
That’s actually helpful.
However, in some cases, we intentionally commit the docs/ai folder so another agent in the cloud can continue working on the remaining tasks. If we add it to .gitignore by default, it creates extra overhead in those scenarios because we would need to revert that decision manually.
There’s another practical issue. Some tools automatically exclude paths listed in .gitignore when grepping or building context. If docs/ai is ignored, those tools may not be able to read its content, which can lead to missing context for the agent.
So we had two options:
- Ignore docs/ai by default.
- Track it by default, and let users manually add it to .gitignore if they do not want to commit it.
We chose option 2 because it keeps the default workflow more flexible, especially for multi-agent or cloud-based setups.
That said, we’re very open to a PR that adds a configurable option to exclude docs/ai from .gitignore. That would give users the best of both worlds.