# Clear Thought Patterns Cookbook
**Quick Reference Guide for AI Agents**
This guide shows you how to use the Clear Thought tool flexibly to solve complex problems. The tool supports 20+ reasoning patterns without requiring different code - just use the parameters creatively.
---
## Core Concept
**The tool is a thinking workspace, not a methodology.** Thought numbers are logical positions (like chapter numbers), not chronological order. You can jump, branch, revise, and synthesize freely.
### Basic Parameters
- `thought`: Your reasoning step
- `thoughtNumber`: Logical position (1 to N)
- `totalThoughts`: Estimated total (adjustable)
- `nextThoughtNeeded`: Continue thinking?
### Extension Parameters
- `isRevision`: Updating a previous thought?
- `revisesThought`: Which thought to revise
- `branchFromThought`: Branch starting point
- `branchId`: Branch identifier
- `includeGuide`: Request this guide on-demand
---
## Pattern Catalog
### 1. Forward Thinking (Traditional)
**When to use:** Exploration, discovery, open-ended analysis, brainstorming
**How it works:** Progress sequentially from 1 → 2 → 3 → ... → N
**Example:**
```
Thought 1: Identify the problem - "Users complain checkout is slow"
Thought 2: Gather data - "Average checkout: 45 seconds, target: 10 seconds"
Thought 3: Analyze root causes - "3 API calls, 2 database queries, no caching"
Thought 4: Brainstorm solutions - "Add Redis cache, optimize queries, parallel API calls"
Thought 5: Evaluate options - "Caching gives biggest impact for least effort"
Thought 6: Conclusion - "Implement Redis cache for product data"
```
**Key:** Let each thought build naturally on the previous one.
---
### 2. Backward Thinking (Goal-Driven)
**When to use:** Planning projects, system design, working from known goals
**How it works:** Start at thought N (desired end), work back to thought 1 (starting point)
**Example:**
```
Thought 10: Final state - "API handles 10k req/s with <100ms latency"
Thought 9: Before that - "Load testing completed, autoscaling verified"
Thought 8: Before that - "Monitoring and alerting operational"
Thought 7: Before that - "Caching layer implemented"
...
Thought 1: Starting point - "Current system: 1k req/s, 500ms latency"
```
**Key:** For each thought, ask "What must be true immediately before this?"
---
### 3. Branching (Parallel Exploration)
**When to use:** Comparing alternatives, exploring multiple approaches, A/B scenarios
**How it works:** Create separate branches from a common thought
**Parameters:**
```javascript
branchFromThought: 5
branchId: "approach-a" // vs "approach-b"
```
**Example:**
```
Thought 5: "Need to choose database"
Branch A (thought 6):
branchId: "sql-database"
thought: "Use PostgreSQL - ACID, relations, mature tooling"
Branch B (thought 6):
branchId: "nosql-database"
thought: "Use MongoDB - flexible schema, horizontal scaling"
Later (thought 15):
thought: "Synthesis: Use PostgreSQL for transactions, MongoDB for analytics"
```
**Key:** Explore branches independently, then create a synthesis thought.
---
### 4. Revision (Updating Previous Thoughts)
**When to use:** Discovered error, gained new information, refined understanding
**How it works:** Mark a thought as revising a previous one
**Parameters:**
```javascript
isRevision: true
revisesThought: 4
```
**Example:**
```
Thought 4: "Identified 3 stakeholders: developers, users, managers"
...
Thought 9:
isRevision: true
revisesThought: 4
thought: "REVISION: Missed critical stakeholder - security team needs compliance reporting"
```
**Key:** Intellectual honesty > appearing perfect. Revise when you learn.
---
### 5. Non-Sequential Jumping
**When to use:** Exploring different time horizons, validating distant consequences
**How it works:** Jump to any thought number, regardless of previous thoughts
**Example:**
```
Thought 1: "Problem: Need new authentication system"
Thought 50: "Mid-development - alpha testing reveals 2FA UX issues"
Thought 100: "End state - 10k users migrated, 99.9% uptime"
Thought 2: "Requirements gathering from stakeholders"
```
**Key:** Thought numbers are logical positions, not chronological order.
---
### 6. Dialectical Reasoning (Thesis-Antithesis-Synthesis)
**When to use:** Resolving tensions, finding balanced solutions, contentious decisions
**Pattern:**
```
Thought N: THESIS - Position A
Thought N+1: ANTITHESIS - Opposing position
Thought N+2: SYNTHESIS - Integrated view
```
**Example:**
```
Thought 15: "THESIS: Microservices increase complexity but improve scalability"
Thought 16: "ANTITHESIS: Monolith is simpler but harder to scale"
Thought 17: "SYNTHESIS: Start with modular monolith, extract services as needed"
```
---
### 7. Hypothesis Testing
**When to use:** Scientific thinking, validating assumptions, empirical analysis
**Pattern:**
1. Generate hypothesis
2. Design test
3. Predict outcome
4. Analyze results
**Example:**
```
Thought 10: "HYPOTHESIS: Users abandon cart due to shipping costs"
Thought 11: "TEST: A/B test free shipping over $50"
Thought 12: "PREDICTION: 20% reduction in cart abandonment"
Thought 25: "RESULTS: 18% reduction confirmed, hypothesis supported"
```
---
### 8. Scenario Planning
**When to use:** Strategic planning, risk management, uncertain futures
**Pattern:** Explore optimistic, pessimistic, and realistic scenarios
**Example:**
```
Thought 20: "OPTIMISTIC: Product hits 100k users in 6 months"
Thought 21: "PESSIMISTIC: Competition launches better product, we get 1k users"
Thought 22: "REALISTIC: Steady growth to 20k users, profitable in 12 months"
```
**Key:** Prepare for multiple futures, don't bet on one.
---
### 9. Constraint Analysis
**When to use:** Engineering trade-offs, requirement validation, feasibility checks
**Pattern:**
1. Identify hard constraints
2. Derive implications
3. Explore constraint relaxation
**Example:**
```
Thought 15: "CONSTRAINTS: <100ms latency, <$1k/month cost, 99% uptime"
Thought 16: "IMPLICATIONS: Can't use large LLM, need caching, require redundancy"
Thought 17: "RELAXATION: If we allow 200ms latency, can use better model"
```
---
### 10. First Principles Thinking
**When to use:** Innovation, challenging assumptions, deep understanding
**Pattern:** Break down to fundamentals, rebuild from foundation
**Example:**
```
Thought 20: "What is authentication really about? Identity verification + access control"
Thought 21: "Identity: Something you know, have, or are (password, token, biometric)"
Thought 22: "Access: Permissions mapped to verified identity"
Thought 23: "From first principles: Need verification system + permission system"
```
---
### 11. Causal Chain Analysis
**When to use:** Root cause investigation, understanding dynamics
**Pattern:** Trace cause → effect relationships (or use 5 Whys)
**Example:**
```
Thought 30: "Production bugs occurring. Why?"
Thought 31: "Because code review missed them. Why?"
Thought 32: "Because reviewers were rushed. Why?"
Thought 33: "Because review queue is too large. Why?"
Thought 34: "ROOT CAUSE: Need to reduce review volume via automated checks"
```
---
### 12. Systems Thinking
**When to use:** Complex systems, organizational change, feedback loops
**Pattern:** Map interconnections, identify feedback loops, find leverage points
**Example:**
```
Thought 40: "REINFORCING LOOP: Better docs → fewer support tickets → more time for docs"
Thought 41: "BALANCING LOOP: Add features → complexity up → docs harder to maintain"
Thought 42: "LEVERAGE POINT: Improve feature flags to reduce complexity"
```
---
### 13. Meta-Cognition (Thinking About Thinking)
**When to use:** Process improvement, learning from approach, course correction
**Pattern:** Step back and reflect on the reasoning process itself
**Example:**
```
Thought 25: "META: I've been using forward thinking, but this is a planning problem"
Thought 26: "Switching to backward thinking from goal state"
Thought 99: "Started at goal, worked backwards successfully"
```
**Key:** Adjust your approach mid-stream if needed.
---
### 14. Pattern Recognition
**When to use:** Optimization, prioritization, finding high-impact areas
**Pattern:** Identify recurring patterns, apply 80/20 rule
**Example:**
```
Thought 50: "Analyzed 1000 bugs: 40% are null checks, 30% are off-by-one errors"
Thought 51: "INSIGHT: Focus automated detection on these two patterns"
```
---
### 15. Economic Modeling
**When to use:** Business decisions, ROI calculation, resource allocation
**Pattern:** Cost-benefit analysis, market sizing, opportunity cost
**Example:**
```
Thought 60: "COSTS: $500k dev, $50k/mo infrastructure"
Thought 61: "BENEFITS: Save 1000 eng-hours/mo at $100/hr = $100k/mo"
Thought 62: "ROI: Break even in 5 months, 2.4x return in year 1"
```
---
### 16. Integration and Synthesis
**When to use:** Combining insights from multiple branches, final decision-making
**Pattern:** Pull together diverse analyses into coherent conclusion
**Example:**
```
Thought 80: "Synthesizing: Branch A showed cost benefits, Branch B showed UX benefits"
Thought 81: "INTEGRATION: Choose hybrid - Branch A's architecture + Branch B's UX"
```
---
## Advanced Techniques
### Combining Patterns
Most complex problems benefit from multiple patterns:
**Example: Architecture Decision**
1. Forward thinking (thoughts 1-10): Explore current system
2. Branching (thoughts 11-20): Compare 3 architecture options
3. Constraint analysis (thoughts 21-25): Validate against requirements
4. Risk analysis (thoughts 26-30): Identify failure modes
5. Economic modeling (thoughts 31-35): Calculate costs
6. Synthesis (thought 36): Make final decision
### Adjusting totalThoughts
Start with an estimate, but adjust freely:
```
Thought 1: totalThoughts: 20
...
Thought 15: "Realized this is more complex than expected"
Thought 16: totalThoughts: 40 // Adjusted upward
```
### When to Use What
**Problem Type** → **Recommended Pattern**
- Architecture design → Backward + branching
- Bug investigation → Forward + hypothesis testing
- Strategic planning → Scenario planning + risk analysis
- Research synthesis → Forward + meta-cognition
- Optimization → Pattern recognition + constraint analysis
---
## Best Practices
### 1. Start with Clear Problem Statement
Your thought 1 should clearly define what you're trying to solve.
### 2. Use Backward Thinking for Goals
If you know the destination, work backward to find the path.
### 3. Branch Early for Alternatives
Don't commit to one approach before exploring alternatives.
### 4. Revise Without Shame
Update earlier thoughts when you learn new information.
### 5. Synthesize Explicitly
Don't just end - create synthesis thoughts that integrate your findings.
### 6. Meta-Reflect Periodically
Every 20-30 thoughts, step back and assess your approach.
---
## Common Anti-Patterns
❌ **Sequential rigidity**: Don't force yourself to go 1→2→3 if jumping makes sense
❌ **Over-branching**: More than 4-5 branches becomes hard to synthesize
❌ **Revision abuse**: Constant revision without forward progress is wheel-spinning
❌ **Premature convergence**: Deciding before exploring alternatives
❌ **Under-estimation**: Starting with totalThoughts too low, constantly adjusting
---
## Quick Decision Guide
**I need to...**
- **Explore a new problem** → Forward thinking (1→N)
- **Plan a project** → Backward thinking (N→1)
- **Compare options** → Branching
- **Fix an error** → Revision
- **Understand root causes** → Causal chain or 5 Whys
- **Make strategic decision** → Scenario planning + synthesis
- **Optimize something** → Pattern recognition + constraint analysis
- **Design architecture** → Backward + branching + synthesis
- **Validate assumptions** → Hypothesis testing
- **Handle complexity** → Systems thinking + first principles
---
## Requesting This Guide
You can request this guide at any time:
```javascript
{
thoughtNumber: 25,
totalThoughts: 50,
thought: "Need to review patterns",
includeGuide: true, // Request guide on-demand
nextThoughtNeeded: true
}
```
The guide is also automatically provided:
- At thought 1 (start of reasoning)
- At the final thought (for reflection)
---
## Remember
The tool doesn't tell you **how** to think - it provides **structure for** your thinking. Use it creatively, adapt it to your problem, and don't be constrained by apparent limitations. The flexibility is the power.
**When in doubt:** Trust your reasoning instincts and use the parameters to support your natural thought process.