Rules
Rules supply the large model with richer, more accurate conversational context, helping it follow your personal preferences and project conventions. This boosts development efficiency and lets the model operate more effectively inside your codebase.
Defining Rules
You define User Rules and Project Rules on the Rules configuration page.
User Rules
Capture personal preferences such as coding style, general requirements, frequent commands, or habits. Once saved, these Rules are automatically injected into every chat, Composer, and Command-K invocation. They are tied to your CodeBuddy IDE account and apply regardless of which project is open.
Project Rules
Capture project-level conventions such as coding standards, framework agreements, library-usage rules, or security requirements. These Rules are active only within the current project, and the Agent automatically detects and retrieves them.
Rule type
Project Rules are triggered in three ways:
Always – injected into every conversation and inline request.
Agent Requested – the Agent decides whether to use them based on the task description.
Manual – applied only when you reference them with @RuleName.
Choose the appropriate type when creating a Project Rule.
Referencing Rules
If a Rule is set to Manual, type @ in the chat box and select the Rule file; the contained Project Rules will then be added to the model’s context.