How They Use AI  |  Newest

<< Home  |  Tech

Trading bot follows strict operational constraints

AreaTech
AI usedClaude
SourceReddit comment
Posted2026-05-08

The move

Define a 'Never Break These Rules' section in your system instructions to enforce hard constraints.

Steps

  1. Identify critical operational rules for your AI task.
  2. Create a dedicated section in your system prompt titled 'Never Break These Rules'.
  3. List your constraints clearly using imperative language.
  4. 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.

Sources



Last updated November 26, 2026.