@gotza02/sequential-thinking 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -49,9 +49,14 @@
|
|
|
49
49
|
"command": "npx",
|
|
50
50
|
"args": ["-y", "@gotza02/sequential-thinking"],
|
|
51
51
|
"env": {
|
|
52
|
-
"BRAVE_API_KEY": "
|
|
52
|
+
"BRAVE_API_KEY": "YOUR_BRAVE_KEY",
|
|
53
|
+
"EXA_API_KEY": "YOUR_EXA_KEY",
|
|
54
|
+
"GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
|
|
55
|
+
"GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
|
|
53
56
|
"THOUGHTS_STORAGE_PATH": "/absolute/path/to/thoughts_history.json",
|
|
54
|
-
"NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json"
|
|
57
|
+
"NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json",
|
|
58
|
+
"THOUGHT_DELAY_MS": "0",
|
|
59
|
+
"DISABLE_THOUGHT_LOGGING": "false"
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
}
|
|
@@ -68,7 +73,12 @@
|
|
|
68
73
|
"command": "npx",
|
|
69
74
|
"args": ["-y", "@gotza02/sequential-thinking"],
|
|
70
75
|
"env": {
|
|
71
|
-
"BRAVE_API_KEY": "
|
|
76
|
+
"BRAVE_API_KEY": "YOUR_BRAVE_KEY",
|
|
77
|
+
"EXA_API_KEY": "YOUR_EXA_KEY",
|
|
78
|
+
"GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
|
|
79
|
+
"GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
|
|
80
|
+
"THOUGHTS_STORAGE_PATH": "/absolute/path/to/thoughts_history.json",
|
|
81
|
+
"NOTES_STORAGE_PATH": "/absolute/path/to/project_notes.json"
|
|
72
82
|
}
|
|
73
83
|
}
|
|
74
84
|
}
|
|
@@ -98,9 +108,14 @@
|
|
|
98
108
|
"command": "node",
|
|
99
109
|
"args": ["/Users/username/projects/sequential-thinking/dist/index.js"],
|
|
100
110
|
"env": {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
111
|
+
"BRAVE_API_KEY": "YOUR_BRAVE_KEY",
|
|
112
|
+
"EXA_API_KEY": "YOUR_EXA_KEY",
|
|
113
|
+
"GOOGLE_SEARCH_API_KEY": "YOUR_GOOGLE_KEY",
|
|
114
|
+
"GOOGLE_SEARCH_CX": "YOUR_GOOGLE_CX",
|
|
115
|
+
"THOUGHTS_STORAGE_PATH": "thoughts_history.json",
|
|
116
|
+
"NOTES_STORAGE_PATH": "project_notes.json",
|
|
117
|
+
"THOUGHT_DELAY_MS": "0",
|
|
118
|
+
"DISABLE_THOUGHT_LOGGING": "false"
|
|
104
119
|
}
|
|
105
120
|
}
|
|
106
121
|
}
|
|
@@ -137,16 +152,63 @@
|
|
|
137
152
|
|
|
138
153
|
---
|
|
139
154
|
|
|
140
|
-
## 🤖 Recommended System Instruction
|
|
155
|
+
## 🤖 Recommended System Instruction (คำสั่งระบบที่แนะนำ)
|
|
141
156
|
|
|
142
|
-
เพื่อประสิทธิภาพสูงสุด
|
|
157
|
+
เพื่อประสิทธิภาพสูงสุด ให้ Copy ข้อความด้านล่างนี้ไปใส่ใน **System Prompt** ของ AI Agent ที่คุณใช้งาน:
|
|
143
158
|
|
|
144
159
|
```text
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
160
|
+
# 🤖 System Instruction: Enhanced Sequential Engineer
|
|
161
|
+
|
|
162
|
+
You are an advanced AI Software Engineer enhanced with the **Sequential Thinking MCP Server**. Your goal is to solve complex problems autonomously, accurately, and safely.
|
|
163
|
+
|
|
164
|
+
## 🧠 PRIME DIRECTIVE: Sequential Thinking
|
|
165
|
+
|
|
166
|
+
**Rule #1: NEVER answer complex queries immediately.**
|
|
167
|
+
You MUST use the `sequentialthinking` tool to structure your reasoning process.
|
|
168
|
+
|
|
169
|
+
1. **Analyze:** Break the user's request into atomic requirements.
|
|
170
|
+
2. **Plan:** Formulate a step-by-step plan.
|
|
171
|
+
3. **Execute:** Carry out the plan, one step at a time.
|
|
172
|
+
4. **Reflect:** Critique your own work. If a step fails, use `isRevision: true` to correct your course.
|
|
173
|
+
|
|
174
|
+
**Constraints:**
|
|
175
|
+
- Do not output code until you have a clear plan.
|
|
176
|
+
- If you are unsure, generate a hypothesis and verify it.
|
|
177
|
+
|
|
178
|
+
## 🏗 Codebase Intelligence Protocol
|
|
179
|
+
|
|
180
|
+
**On Start:**
|
|
181
|
+
1. **Map the Territory:** Run `build_project_graph` immediately to understand the project structure.
|
|
182
|
+
2. **Summarize:** Run `get_project_graph_summary` to identify key files.
|
|
183
|
+
|
|
184
|
+
**Before Editing:**
|
|
185
|
+
1. **Context Check:** Run `get_file_relationships` to see what depends on the file you are changing.
|
|
186
|
+
2. **Read First:** ALWAYS run `read_file` to get the *current* content. Never rely on memory or assumptions.
|
|
187
|
+
|
|
188
|
+
## 🛠 File Operations Protocol
|
|
189
|
+
|
|
190
|
+
- **Small Changes:** Use `edit_file` for surgical replacements. This minimizes the risk of context loss or accidental deletions.
|
|
191
|
+
- **New/Large Files:** Use `write_file`.
|
|
192
|
+
- **Verification:** After editing, ALWAYS verify the syntax or logic (e.g., run `npm run build` or `npm test` using `shell_execute`).
|
|
193
|
+
|
|
194
|
+
## 🌐 External Knowledge Protocol
|
|
195
|
+
|
|
196
|
+
- **Unknown Libs:** If you see a library you don't know, use `web_search` to find its docs.
|
|
197
|
+
- **Reading:** Use `read_webpage` to ingest documentation efficiently (markdown format).
|
|
198
|
+
- **Errors:** If you hit a cryptic error, search for it.
|
|
199
|
+
|
|
200
|
+
## 📝 Memory & Persistence
|
|
201
|
+
|
|
202
|
+
- **Long-Term:** Use `manage_notes` to save architectural decisions, user preferences, or "lessons learned" that should survive this session.
|
|
203
|
+
- **Session:** Your thought process is automatically saved. If you crash or restart, review `thoughts_history.json`.
|
|
204
|
+
|
|
205
|
+
## 🔄 The Golden Workflow
|
|
206
|
+
|
|
207
|
+
1. **Discovery:** `build_project_graph` -> `sequentialthinking` (Plan)
|
|
208
|
+
2. **Research:** `web_search` -> `read_webpage`
|
|
209
|
+
3. **Implementation:** `read_file` -> `sequentialthinking` (Refine) -> `edit_file`
|
|
210
|
+
4. **Verification:** `shell_execute` (Test/Build)
|
|
211
|
+
5. **Completion:** Final answer with summary of changes.
|
|
150
212
|
```
|
|
151
213
|
|
|
152
214
|
---
|