@bis-code/deep-think 1.1.1
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/.claude-plugin/marketplace.json +18 -0
- package/.claude-plugin/plugin.json +19 -0
- package/.deep-think.json +24 -0
- package/.mcp.json +8 -0
- package/LICENSE +21 -0
- package/README.md +92 -0
- package/commands/checkpoints.md +13 -0
- package/commands/constraints.md +16 -0
- package/commands/practices.md +16 -0
- package/commands/start.md +15 -0
- package/hooks/hooks.json +11 -0
- package/package.json +34 -0
- package/rules/deep-think-workflow.md +35 -0
- package/server/dist/bundle.mjs +22006 -0
- package/server/dist/config/loader.d.ts +3 -0
- package/server/dist/config/loader.d.ts.map +1 -0
- package/server/dist/config/loader.js +37 -0
- package/server/dist/config/loader.js.map +1 -0
- package/server/dist/config/schema.d.ts +3 -0
- package/server/dist/config/schema.d.ts.map +1 -0
- package/server/dist/config/schema.js +33 -0
- package/server/dist/config/schema.js.map +1 -0
- package/server/dist/engine/analyzer.d.ts +15 -0
- package/server/dist/engine/analyzer.d.ts.map +1 -0
- package/server/dist/engine/analyzer.js +209 -0
- package/server/dist/engine/analyzer.js.map +1 -0
- package/server/dist/engine/strategies.d.ts +3 -0
- package/server/dist/engine/strategies.d.ts.map +1 -0
- package/server/dist/engine/strategies.js +148 -0
- package/server/dist/engine/strategies.js.map +1 -0
- package/server/dist/engine/thought-store.d.ts +33 -0
- package/server/dist/engine/thought-store.d.ts.map +1 -0
- package/server/dist/engine/thought-store.js +77 -0
- package/server/dist/engine/thought-store.js.map +1 -0
- package/server/dist/index.d.ts +3 -0
- package/server/dist/index.d.ts.map +1 -0
- package/server/dist/index.js +33 -0
- package/server/dist/index.js.map +1 -0
- package/server/dist/persistence/file-store.d.ts +15 -0
- package/server/dist/persistence/file-store.d.ts.map +1 -0
- package/server/dist/persistence/file-store.js +84 -0
- package/server/dist/persistence/file-store.js.map +1 -0
- package/server/dist/persistence/types.d.ts +8 -0
- package/server/dist/persistence/types.d.ts.map +1 -0
- package/server/dist/persistence/types.js +2 -0
- package/server/dist/persistence/types.js.map +1 -0
- package/server/dist/tools/branch.d.ts +5 -0
- package/server/dist/tools/branch.d.ts.map +1 -0
- package/server/dist/tools/branch.js +133 -0
- package/server/dist/tools/branch.js.map +1 -0
- package/server/dist/tools/checkpoint.d.ts +6 -0
- package/server/dist/tools/checkpoint.d.ts.map +1 -0
- package/server/dist/tools/checkpoint.js +95 -0
- package/server/dist/tools/checkpoint.js.map +1 -0
- package/server/dist/tools/reflect.d.ts +5 -0
- package/server/dist/tools/reflect.d.ts.map +1 -0
- package/server/dist/tools/reflect.js +41 -0
- package/server/dist/tools/reflect.js.map +1 -0
- package/server/dist/tools/strategize.d.ts +5 -0
- package/server/dist/tools/strategize.d.ts.map +1 -0
- package/server/dist/tools/strategize.js +80 -0
- package/server/dist/tools/strategize.js.map +1 -0
- package/server/dist/tools/think.d.ts +6 -0
- package/server/dist/tools/think.d.ts.map +1 -0
- package/server/dist/tools/think.js +129 -0
- package/server/dist/tools/think.js.map +1 -0
- package/server/dist/types.d.ts +148 -0
- package/server/dist/types.d.ts.map +1 -0
- package/server/dist/types.js +5 -0
- package/server/dist/types.js.map +1 -0
- package/server/package.json +36 -0
- package/skills/manage-constraints/SKILL.md +28 -0
- package/skills/manage-practices/SKILL.md +26 -0
- package/skills/restore-checkpoint/SKILL.md +25 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bis-code-deep-think",
|
|
3
|
+
"description": "Structured reasoning plugins for Claude Code",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "Ioan-Sorin Baicoianu",
|
|
6
|
+
"email": "baicoianuioansorin@gmail.com"
|
|
7
|
+
},
|
|
8
|
+
"plugins": [
|
|
9
|
+
{
|
|
10
|
+
"name": "deep-think",
|
|
11
|
+
"description": "Structured reasoning with auto-checkpointing, branching, and reflection",
|
|
12
|
+
"source": {
|
|
13
|
+
"source": "github",
|
|
14
|
+
"repo": "bis-code/mcp-deep-think"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "deep-think",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Structured reasoning with auto-checkpointing, branching, and reflection",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Ioan-Sorin Baicoianu",
|
|
7
|
+
"email": "baicoianuioansorin@gmail.com"
|
|
8
|
+
},
|
|
9
|
+
"repository": "https://github.com/bis-code/mcp-deep-think",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"keywords": [
|
|
12
|
+
"reasoning",
|
|
13
|
+
"thinking",
|
|
14
|
+
"structured",
|
|
15
|
+
"checkpoint",
|
|
16
|
+
"reflection"
|
|
17
|
+
],
|
|
18
|
+
"mcpServers": "./.mcp.json"
|
|
19
|
+
}
|
package/.deep-think.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"thinking": {
|
|
3
|
+
"defaultStrategy": null,
|
|
4
|
+
"maxThoughts": 50,
|
|
5
|
+
"autoCheckpointEvery": 10,
|
|
6
|
+
"confidenceThreshold": 0.7
|
|
7
|
+
},
|
|
8
|
+
"practices": {
|
|
9
|
+
"rules": [],
|
|
10
|
+
"antiPatterns": [],
|
|
11
|
+
"reviewChecklist": []
|
|
12
|
+
},
|
|
13
|
+
"strategies": {
|
|
14
|
+
"custom": []
|
|
15
|
+
},
|
|
16
|
+
"reflection": {
|
|
17
|
+
"circularThreshold": 0.6,
|
|
18
|
+
"contradictionSensitivity": "medium"
|
|
19
|
+
},
|
|
20
|
+
"persistence": {
|
|
21
|
+
"directory": ".deep-think/sessions",
|
|
22
|
+
"maxCheckpoints": 10
|
|
23
|
+
}
|
|
24
|
+
}
|
package/.mcp.json
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ioan-Sorin Baicoianu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Deep Think
|
|
2
|
+
|
|
3
|
+
A Claude Code plugin for structured reasoning. Think through complex problems with strategies, branching, reflection, and persistent checkpoints.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Add the marketplace
|
|
9
|
+
/plugin marketplace add bis-code/mcp-deep-think
|
|
10
|
+
|
|
11
|
+
# Install the plugin
|
|
12
|
+
/plugin install deep-think@bis-code-mcp-deep-think
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## How It Works
|
|
16
|
+
|
|
17
|
+
Deep Think provides 5 MCP tools that work together:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
strategize → think → reflect → branch → checkpoint
|
|
21
|
+
| | | | |
|
|
22
|
+
Pick a Record Check Explore Save/restore
|
|
23
|
+
reasoning steps for alternate reasoning
|
|
24
|
+
framework issues paths state
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Start a session** with `/start` and describe what you're reasoning about. The plugin suggests a strategy and begins the thought chain.
|
|
28
|
+
|
|
29
|
+
**Auto-checkpointing** saves your reasoning before context compaction and every 10 thoughts (configurable). Resume anytime with `/checkpoints`.
|
|
30
|
+
|
|
31
|
+
## Commands
|
|
32
|
+
|
|
33
|
+
| Command | What it does |
|
|
34
|
+
|---------|-------------|
|
|
35
|
+
| `/start` | Launch a reasoning session from a description |
|
|
36
|
+
| `/checkpoints` | View, restore, or delete saved checkpoints |
|
|
37
|
+
| `/constraints` | Manage reasoning rules and anti-patterns |
|
|
38
|
+
| `/practices` | Manage review checklists and custom strategies |
|
|
39
|
+
|
|
40
|
+
## Skills (auto-triggering)
|
|
41
|
+
|
|
42
|
+
| Skill | Triggers when... |
|
|
43
|
+
|-------|-----------------|
|
|
44
|
+
| `restore-checkpoint` | Starting a new session and continuing previous reasoning |
|
|
45
|
+
| `manage-constraints` | User says "remember to always check X" or "add a rule about Y" |
|
|
46
|
+
| `manage-practices` | User says "add a review step for..." or "create a strategy for..." |
|
|
47
|
+
|
|
48
|
+
## Configuration
|
|
49
|
+
|
|
50
|
+
Create `.deep-think.json` in your project root to customize:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"thinking": {
|
|
55
|
+
"defaultStrategy": "first-principles",
|
|
56
|
+
"maxThoughts": 50,
|
|
57
|
+
"autoCheckpointEvery": 10
|
|
58
|
+
},
|
|
59
|
+
"practices": {
|
|
60
|
+
"rules": ["Always consider security implications"],
|
|
61
|
+
"antiPatterns": ["Premature optimization"],
|
|
62
|
+
"reviewChecklist": ["Check for edge cases"]
|
|
63
|
+
},
|
|
64
|
+
"strategies": {
|
|
65
|
+
"custom": [{
|
|
66
|
+
"name": "incident-response",
|
|
67
|
+
"description": "Structured incident investigation",
|
|
68
|
+
"steps": ["Identify symptoms", "Gather evidence", "Form hypothesis", "Verify"],
|
|
69
|
+
"checkpoints": ["Evidence collected?", "Root cause confirmed?"]
|
|
70
|
+
}]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Or use commands to manage configuration conversationally:
|
|
76
|
+
- `/constraints` — add rules like "always verify auth boundaries"
|
|
77
|
+
- `/practices` — add review steps or custom strategies
|
|
78
|
+
|
|
79
|
+
## Built-in Strategies
|
|
80
|
+
|
|
81
|
+
| Strategy | Use when... |
|
|
82
|
+
|----------|------------|
|
|
83
|
+
| `first-principles` | Conventional wisdom may be misleading |
|
|
84
|
+
| `red-team` | Validating important decisions |
|
|
85
|
+
| `convergent` | Choosing between multiple options |
|
|
86
|
+
| `divergent` | Brainstorming or stuck on a problem |
|
|
87
|
+
| `root-cause` | Debugging or investigating failures |
|
|
88
|
+
| `decision-matrix` | High-stakes decisions with multiple factors |
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
MIT
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: checkpoints
|
|
3
|
+
description: View, restore, or delete saved deep-think reasoning checkpoints
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Show the user their saved reasoning checkpoints.
|
|
7
|
+
|
|
8
|
+
1. Call the deep-think checkpoint tool with operation "list".
|
|
9
|
+
2. Display each checkpoint with: name, timestamp, project path (or "(unknown)"
|
|
10
|
+
if not available), thought count, branch count, and active strategy.
|
|
11
|
+
3. Ask the user what they'd like to do — restore one, delete one, or just browse.
|
|
12
|
+
4. For restore: call checkpoint with operation "load" and the chosen name.
|
|
13
|
+
5. For delete: call checkpoint with operation "delete" and the chosen name.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: constraints
|
|
3
|
+
description: Manage reasoning rules and anti-patterns in .deep-think.json
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Help the user manage their deep-think constraints conversationally.
|
|
7
|
+
Constraints map to two fields in .deep-think.json:
|
|
8
|
+
- practices.rules — things to always check during reasoning
|
|
9
|
+
- practices.antiPatterns — patterns to avoid and flag
|
|
10
|
+
|
|
11
|
+
1. Read .deep-think.json from the current project directory (create if missing).
|
|
12
|
+
2. Ask the user what they want to do: add, remove, or show constraints.
|
|
13
|
+
3. For add: ask what the rule or anti-pattern is, add it to the appropriate array.
|
|
14
|
+
4. For remove: show current items, let them pick which to remove.
|
|
15
|
+
5. For show: display all rules and anti-patterns.
|
|
16
|
+
6. Write the updated .deep-think.json back to disk.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: practices
|
|
3
|
+
description: Manage review checklists and custom strategies in .deep-think.json
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Help the user manage their deep-think practices conversationally.
|
|
7
|
+
Practices map to two fields in .deep-think.json:
|
|
8
|
+
- practices.reviewChecklist — items to check during reflection
|
|
9
|
+
- strategies.custom — custom reasoning strategies with steps and checkpoints
|
|
10
|
+
|
|
11
|
+
1. Read .deep-think.json from the current project directory (create if missing).
|
|
12
|
+
2. Ask the user what they want to do: add/remove/show review items or strategies.
|
|
13
|
+
3. For review items: manage the practices.reviewChecklist array.
|
|
14
|
+
4. For strategies: manage strategies.custom array. Each strategy needs:
|
|
15
|
+
name, description, steps (array), and checkpoints (array).
|
|
16
|
+
5. Write the updated .deep-think.json back to disk.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: start
|
|
3
|
+
description: Launch a deep-think reasoning session from a natural language description
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The user wants to start a structured reasoning session. They may have provided
|
|
7
|
+
a topic or question as an argument.
|
|
8
|
+
|
|
9
|
+
1. Call the deep-think checkpoint tool with operation "list" to check for
|
|
10
|
+
existing checkpoints. If any are related to the topic, offer to resume.
|
|
11
|
+
2. Based on the topic, suggest an appropriate strategy from the available ones
|
|
12
|
+
(call strategize with operation "list" to see options, then "set" to activate).
|
|
13
|
+
3. Begin the first thought in the chain using the think tool.
|
|
14
|
+
|
|
15
|
+
If no topic was provided, ask the user what they want to reason about.
|
package/hooks/hooks.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"PreCompact": [{
|
|
4
|
+
"matcher": "",
|
|
5
|
+
"hooks": [{
|
|
6
|
+
"type": "prompt",
|
|
7
|
+
"prompt": "Before compaction, if you have been using deep-think tools in this session and have recorded thoughts, save the current reasoning state by calling the deep-think checkpoint tool with operation 'save'. Use a descriptive name based on what you were reasoning about."
|
|
8
|
+
}]
|
|
9
|
+
}]
|
|
10
|
+
}
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bis-code/deep-think",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "Claude Code plugin for structured reasoning with auto-checkpointing, branching, and reflection",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Ioan-Sorin Baicoianu <baicoianuioansorin@gmail.com>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/bis-code/mcp-deep-think.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"claude-code",
|
|
13
|
+
"plugin",
|
|
14
|
+
"reasoning",
|
|
15
|
+
"thinking",
|
|
16
|
+
"mcp",
|
|
17
|
+
"structured-reasoning",
|
|
18
|
+
"checkpoint"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
".claude-plugin",
|
|
22
|
+
"server/dist",
|
|
23
|
+
"server/package.json",
|
|
24
|
+
"commands",
|
|
25
|
+
"skills",
|
|
26
|
+
"hooks",
|
|
27
|
+
"rules",
|
|
28
|
+
".mcp.json",
|
|
29
|
+
".deep-think.json"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prepublishOnly": "cd server && npm install && npm run build"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Deep Think Workflow
|
|
2
|
+
|
|
3
|
+
## When to Use Deep Think
|
|
4
|
+
|
|
5
|
+
Use the deep-think reasoning tools for:
|
|
6
|
+
- Complex decisions with multiple viable approaches
|
|
7
|
+
- Problems where the full scope isn't clear initially
|
|
8
|
+
- Multi-module changes that need careful planning
|
|
9
|
+
- Analysis that might need course correction
|
|
10
|
+
- Architecture or design decisions with trade-offs
|
|
11
|
+
|
|
12
|
+
Skip deep-think for: simple fixes, documentation, dependency updates, single-file changes with obvious intent.
|
|
13
|
+
|
|
14
|
+
## Recommended Workflow
|
|
15
|
+
|
|
16
|
+
1. **Strategize** — Pick a reasoning framework that fits the problem (first-principles, red-team, convergent, divergent, root-cause, decision-matrix)
|
|
17
|
+
2. **Think** — Work through the problem step by step, tracking confidence and assumptions
|
|
18
|
+
3. **Reflect** — Check your reasoning for circular logic, contradictions, and gaps
|
|
19
|
+
4. **Branch** — Explore alternatives when you hit a decision point
|
|
20
|
+
5. **Conclude** — Merge branches, document the decision
|
|
21
|
+
|
|
22
|
+
This workflow is a guide, not a mandate. Adapt it to the problem at hand.
|
|
23
|
+
|
|
24
|
+
## Checkpointing
|
|
25
|
+
|
|
26
|
+
- Checkpoints are saved automatically before context compaction
|
|
27
|
+
- The server also auto-saves every N thoughts (default: 10, configurable)
|
|
28
|
+
- Use `/deep-think:checkpoints` to view, restore, or delete saved reasoning state
|
|
29
|
+
- Use `/deep-think:start` to begin a new reasoning session (checks for existing checkpoints first)
|
|
30
|
+
|
|
31
|
+
## Customization
|
|
32
|
+
|
|
33
|
+
- `/deep-think:constraints` — Add project-specific rules and anti-patterns
|
|
34
|
+
- `/deep-think:practices` — Add review checklist items and custom strategies
|
|
35
|
+
- Or edit `.deep-think.json` directly in your project root
|