<< Home | Tech
Trading bot follows strict operational constraints
| Area | Tech |
| AI used | Claude |
| Source | Reddit comment |
| Posted | 2026-05-08 |
The move
Define a 'Never Break These Rules' section in your system instructions to enforce hard constraints.Steps
- Identify critical operational rules for your AI task.
- Create a dedicated section in your system prompt titled 'Never Break These Rules'.
- List your constraints clearly using imperative language.
- Test the AI to ensure it prioritizes these rules over soft suggestions.
Prompt for your AI
Follow these instructions strictly. Never break these rules: [list your hard constraints, e.g., never use X, always keep Y, never change Z].
What happened
The user developed a trading bot and struggled with the AI ignoring operational guidelines. They added a specific section titled 'Never Break These Rules' to the system prompt. Claude successfully adhered to these hard constraints, preventing unwanted actions like selling at a loss.Watch out
Overloading the system prompt with too many constraints can sometimes degrade performance on other tasks. Ensure the rules are mutually exclusive and clear.Give it to your agent
Read https://howtheyuse.ai/p/trading-bot-follows-strict-operational-constraints.md and help me do this.