~/.agentkube/rules as user_rules.md and cluster_rules.md files.
Rule Types
Agentkube supports two types of rules for its AI agents:Create User Rules
Based on your personal preferences, create the rules that AI must follow across all clusters.- Navigate to Settings → Agent → Rules
- In the User Rules section, click the + Create user_rules.md button
- The system automatically creates the
user_rules.mdfile and opens it in the editor - In the
user_rules.mdfile, define the rules that AI must follow - Save your settings
Create Cluster Rules
Create the rules that AI must follow in a specified Kubernetes cluster.- Select your target cluster context
- Navigate to Settings → Agent → Rules
- In the Cluster Rules section, click the + Create cluster_rules.md button
- The system automatically creates the
cluster_rules.mdfile in~/.agentkube/rules/ - In the
cluster_rules.mdfile, define the cluster-specific rules that AI must follow - Save your settings
Manage Rules
In the Rules window, you can modify user rules and cluster rules, as well as delete rule files.- After modifying the rules, the AI will follow the new rules immediately
- Deleting a rule file will invalidate all previously defined rules
- Rules are automatically loaded when switching between cluster contexts

