think
Log and organize detailed thought processes for code-related tasks like debugging, refactoring, or feature design without altering the repository. Use for brainstorming solutions, hypothesis testing, or planning implementation strategies.
Instructions
Use the tool to think about something. It will not obtain new information or make any changes to the repository, but just log the thought. Use it when complex reasoning or brainstorming is needed. Ensure thinking content is concise and accurate, without needing to include code details
Common use cases:
When exploring a repository and discovering the source of a bug, call this tool to brainstorm several unique ways of fixing the bug, and assess which change(s) are likely to be simplest and most effective
After receiving test results, use this tool to brainstorm ways to fix failing tests
When planning a complex refactoring, use this tool to outline different approaches and their tradeoffs
When designing a new feature, use this tool to think through architecture decisions and implementation details
When debugging a complex issue, use this tool to organize your thoughts and hypotheses
When considering changes to the plan or shifts in thinking that the user has not previously mentioned, consider whether it is necessary to confirm with the user.
<think_example> Feature Implementation Planning
New code search feature requirements:
Search for code patterns across multiple files
Identify function usages and references
Analyze import relationships
Generate summary of matching patterns
Implementation considerations:
Need to leverage existing search mechanisms
Should use regex for pattern matching
Results need consistent format with other search methods
Must handle large codebases efficiently
Design approach:
Create new CodeSearcher class that follows existing search patterns
Implement core pattern matching algorithm
Add result formatting methods
Integrate with file traversal system
Add caching for performance optimization
Testing strategy:
Unit tests for search accuracy
Integration tests with existing components
Performance tests with large codebases </think_example>
Input Schema
Name | Required | Description | Default |
---|---|---|---|
thought | Yes | The detailed thought process to record |