This directory contains the default set of AI rules for building Flutter apps, following best practices.
rules.md: The comprehensive master rule set.rules_10k.md: A condensed version (<10k chars) for tools with stricter context limits.rules_4k.md: A highly concise version (<4k chars) for limited contexts.rules_1k.md: An ultra-compact version (<1k chars) for very strict limits.Different AI coding assistants and tools have varying limits for their “rules” or “custom instructions” files. Last updated: 2026-01-05.
| Tool / Product | Rules File / Feature | Soft / Hard Limit | Notes & Sources | | Tool / Product | Limit | Source | Notes | | :--- | :--- | :--- | :--- | | Aider | No Hard Limit | Aider Conventions | Limited by model context window. | | Antigravity (Google) | 12,000 characters (Hard) | Internal Source | Validated via client-side error message. | | Claude Code | No Hard Limit | Claude Code Docs | Uses CLAUDE.md. Context limited. | | CodeRabbit | 1,000 characters (Hard) | CodeRabbit Docs | Applied to “Instructions” field. | | Cursor | No Hard Limit | Cursor Docs | Keep rules under 500 lines | | Gemini CLI | 1M+ Tokens (Context) | Vertex AI Docs | Pactical limit is model context window. | | GitHub Copilot | ~2 Pages (Soft) / 4k chars | Copilot Docs | Chat: ~2 pages context. Code Review: 4000 char hard limit. | | Goose | No Hard Limit | Goose Docs | Uses “summarize” or “truncate” context strategies. | | JetBrains AI | No Hard Limit | JetBrains AI Docs | Context managed by AI Assistant; no fixed file size limit. | | OpenAI (ChatGPT) | 1,500 characters | OpenAI Help | Is there a character limit for custom instructions? |