.codebuddy/rules directory of the code repository, managed under version control, and shareable with team members.Rule Type | Description | Context Loading Method |
Always | Applies to every chat session and is suitable for core coding standards, architectural constraints, and security requirements. | Always load the original text of the rule. |
Agent request | Automatically applies when the Agent determines its relevance based on the description, and is suitable for documentation, user guides, and reference materials. | Only load the name and description of the rule, and read the original text when the model determines it is needed. |
Manual | Applies when mentioned with @ in a conversation (for example, @my-rule), and is suitable for development guides for specific features and optional best practices. | Not automatically loaded |
.codebuddy/rules. Each rule corresponds to a folder containing a RULE.mdc file and is placed under version control. Rules can have their scope limited by path patterns, be triggered manually, or be automatically introduced based on relevance.
---description: project descriptionalwaysApply: falseenabled: trueupdatedAt: 2026-01-13T12:03:50.791Zprovider:---...rest of the rule content

---description: My personal coding preferencesalwaysApply: true---# Personal Coding Style## General Preferences- Use 4-space indentation (do not use tabs)- Maximum line length: 100 characters- Use single quotes instead of double quotes unless necessary.- Add a semicolon at the end of each statement.## Comment Style- A JSDoc comment is required above each function.- Add inline comments to explain complex logic.- Write comments in Chinese.## Error Handling- Always wrap code that may throw errors in a try-catch block.- Record detailed error logs.- Display a user-friendly error message.
CODEBUDDY.mdCODEBUDDY.md is a Markdown file that helps AI quickly understand the current project.CODEBUDDY.md is a plain Markdown file without metadata or complex configuration. It is an ideal choice for projects that only need simple, readable instructions without the extra overhead of structured rules.CodeBuddy supports the CODEBUDDY.md file in the project root directory and includes the full original text in the context by default.AGENTS.md: For backward compatibility, when AGENTS.md exists in the project root directory but CODEBUDDY.md does not, CodeBuddy automatically loads the full content of AGENTS.md into the conversation context.CodeBuddy IDE intelligently loads rules. Only rules with alwaysApply: true are always loaded, while other rules are loaded on demand. Recommendations:always (3-5 rules).manual or requested.## Architecture DesignSee the project architecture documentation: `docs/architecture.md`.
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback