repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | # Ultrathink Depth Ladder |
| #2 | |
| #3 | A guide to choosing the right level of extended thinking for your task. |
| #4 | |
| #5 | --- |
| #6 | |
| #7 | ## Overview |
| #8 | |
| #9 | Claude Code's extended thinking mode has multiple depth levels. Each level allocates more internal reasoning tokens before generating output. More depth means better reasoning, but also slower responses and higher cost. |
| #10 | |
| #11 | **Rule of thumb:** Use the minimum depth that solves your problem well. |
| #12 | |
| #13 | --- |
| #14 | |
| #15 | ## The Levels |
| #16 | |
| #17 | ### `think` (~500 tokens) |
| #18 | |
| #19 | **Best for:** Simple decisions, quick fixes, straightforward refactoring. |
| #20 | |
| #21 | ``` |
| #22 | think about whether this function handles null inputs correctly. |
| #23 | ``` |
| #24 | |
| #25 | Use when the answer is probably obvious but you want a quick sanity check. |
| #26 | |
| #27 | --- |
| #28 | |
| #29 | ### `think step by step` (~1000 tokens) |
| #30 | |
| #31 | **Best for:** Multi-step problems, debugging, tracing execution paths. |
| #32 | |
| #33 | ``` |
| #34 | think step by step about why this transaction is failing with error 0x1. |
| #35 | ``` |
| #36 | |
| #37 | Use when you need Claude to trace through logic rather than pattern-match. |
| #38 | |
| #39 | --- |
| #40 | |
| #41 | ### `think hard` (~2000 tokens) |
| #42 | |
| #43 | **Best for:** Architecture decisions, complex logic, design choices. |
| #44 | |
| #45 | ``` |
| #46 | think hard about whether to use a PDA or a token account for this state. |
| #47 | ``` |
| #48 | |
| #49 | Use when there are multiple valid approaches and the choice matters. |
| #50 | |
| #51 | --- |
| #52 | |
| #53 | ### `think harder` (~4000 tokens) |
| #54 | |
| #55 | **Best for:** System design, security analysis, performance optimization. |
| #56 | |
| #57 | ``` |
| #58 | think harder about the security implications of this instruction handler. |
| #59 | ``` |
| #60 | |
| #61 | Use when you need Claude to consider attack vectors, edge cases, and failure modes. |
| #62 | |
| #63 | --- |
| #64 | |
| #65 | ### `ultrathink` (~8000+ tokens) |
| #66 | |
| #67 | **Best for:** Production systems, critical infrastructure, complex integrations. |
| #68 | |
| #69 | ``` |
| #70 | ultrathink about the complete transaction flow, MEV exposure, |
| #71 | and failure recovery for this swap aggregator. |
| #72 | ``` |
| #73 | |
| #74 | Use for code that handles real value, runs unattended, or has complex state. |
| #75 | |
| #76 | --- |
| #77 | |
| #78 | ### `megathink` (Maximum depth) |
| #79 | |
| #80 | **Best for:** Novel problems, research-grade work, unprecedented architectures. |
| #81 | |
| #82 | ``` |
| #83 | megathink about designing a new AMM curve optimized for |
| #84 | concentrated liquidity with dynamic fee adjustment. |
| #85 | ``` |
| #86 | |
| #87 | Use sparingly — for genuinely novel problems where no standard solution exists. |
| #88 | |
| #89 | --- |
| #90 | |
| #91 | ## Blockchain Recommendations |
| #92 | |
| #93 | | Task | Recommended Depth | |
| #94 | |------|------------------| |
| #95 | | Fix a typo in a config | No extended thinking needed | |
| #96 | | Debug a failing transaction | `think step by step` | |
| #97 | | Choose between RPC providers | `think hard` | |
| #98 | | Design a PDA schema | `think hard` | |
| #99 | | Build a swap execution path | `ultrathink` | |
| #100 | | Audit an Anchor program | `ultrathink` | |
| #101 | | Design a new protocol | `megathink` | |
| #102 | | Build a trading system | `ultrathink` | |
| #103 | |
| #104 | --- |
| #105 | |
| #106 | ## Focusing Depth |
| #107 | |
| #108 | Never waste deep thinking on boilerplate. Always specify what to think deeply about: |
| #109 | |
| #110 | ``` |
| #111 | Build me a token monitor. |
| #112 | |
| #113 | ultrathink specifically about: |
| #114 | - Websocket reconnection strategy |
| #115 | - How to detect rug patterns in real-time |
| #116 | - State management for concurrent token evaluations |
| #117 | |
| #118 | For the rest (CLI, config, logging), just write clean code. |
| #119 | ``` |
| #120 | |
| #121 | This gives you production-grade reasoning where it counts without burning tokens on `console.log` statements. |
| #122 |