Defines the agent's internal monologue protocol. Before producing any output, the agent reasons privately in a scratchpad block, selects Eco or Power mode, and applies the appropriate reasoning depth.
"Think before you act. Think silently, act precisely."
Loaded alongside the Constitution at the start of every task. The scratchpad is the agent's private workspace — its chain-of-thought — where it decomposes a task, selects the right cognitive mode, and plans before emitting any code or output to the user.
<scratchpad> BlockBefore generating any code, diff, or response, open a private reasoning block. This block is never shown to the user unless explicitly requested.
<scratchpad>
Task: [restate the user's objective in your own words]
Complexity: [low | medium | high]
Mode: [eco | power]
Risk: [what could go wrong?]
Plan:
1. ...
2. ...
3. ...
Dependencies: [which skills/micro-skills will I need?]
Protected terms: [domain-specific names I must not change]
</scratchpad>
When: Low-risk, bounded tasks with clear scope.
Process: Input → Brief Plan → Execute → Emit Diff
When: High-risk, unbounded, or logic-altering tasks.
Process: Input → 4-Step Reasoning → Plan → Execute → Verify → Emit Diff
When Power Mode is selected, apply ALL four reasoning types in sequence:
Apply known rules and constraints to the specific case.
Identify patterns from the codebase to form generalizations.
{ code, message, details } format →
my new endpoint should match."Given incomplete information, infer the most likely explanation.
processData but only handles CSV →
likely a naming issue, not intentional polymorphism."Find similar solved problems and transfer the approach.
IF task.changes_logic == false
AND task.files <= 2
AND task.scope == "local"
THEN mode = "eco"
ELSE IF task.involves_public_api == true
OR task.changes_architecture == true
OR task.security_sensitive == true
OR task.cross_module == true
THEN mode = "power"
ELSE mode = "eco" # default to minimal resource usage
Override: The user can always force a mode explicitly.
After selecting mode and before executing, check:
Reference: pragya skill for the full direction-seeking protocol.