thetacog-mcp 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,176 +1,193 @@
1
1
  # ThetaCog MCP
2
2
 
3
- **Mode management, not task management.**
3
+ **Transform your terminal into a mental palace.**
4
4
 
5
- A Claude MCP server that detects which cognitive room you should be in and helps you switch contexts with memory palace anchoring.
5
+ Each terminal app is a cognitive room. Each room has its own browser tabs. `Cmd+Space kitty` switches to Kitty AND its associated tabs. The room remembers what you were doing.
6
6
 
7
- ## The Pitch
7
+ ## The Model
8
8
 
9
- > "We don't use task lists. We have 56 terminals, each one a cognitive room. Command+Space to a room name, and you're in a different mode. The room remembers what you were doing. Join this startup. We work like rockstars."
9
+ ```
10
+ Cmd+Space "kitty" →
11
+ 1. Kitty terminal opens (Operator room)
12
+ 2. Kitty's browser tabs are there (Vercel, Supabase, monitoring)
13
+ 3. All other rooms are minimized tabs, interlinked
14
+ 4. Claude knows you're in Operator mode
15
+ ```
16
+
17
+ **This is not split-screen.** This is terminal + browser tab association. You prune your browser tabs to match each identity's theme.
10
18
 
11
19
  ## Install
12
20
 
21
+ **Works with any MCP-compatible client** (Claude Code, Cursor, Cline, etc.)
22
+
13
23
  ```bash
14
24
  npm install -g thetacog-mcp
15
- npx thetacog install
16
- # Restart Claude Code
25
+
26
+ # Claude Code (default)
27
+ claude mcp add thetacog "npx thetacog-mcp"
28
+
29
+ # Other MCP clients - add to your mcp config:
30
+ # { "command": "npx", "args": ["thetacog-mcp"] }
17
31
  ```
18
32
 
19
- ## Tools
33
+ ## The 6 Cognitive Rooms
20
34
 
21
- ### thetacog-detect
35
+ | Room | Terminal | Browser Tabs | Identity |
36
+ |------|----------|--------------|----------|
37
+ | **Builder** | iTerm2 | GitHub PRs, CI/CD, API docs | "I am shipping" |
38
+ | **Operator** | Kitty | Vercel, Supabase, monitoring | "I am executing" |
39
+ | **Discoverer** | WezTerm | Research, Stack Overflow, docs | "I am exploring" |
40
+ | **Teacher** | Terminal | Blog drafts, content calendar, voice notes | "I am writing" |
41
+ | **Strategist** | VS Code | Planning docs, competitor analysis | "I am positioning" |
42
+ | **Experimenter** | Cursor | Prototypes, scratch files, POCs | "I am testing" |
22
43
 
23
- Analyze conversation to detect which room you should be in.
44
+ **Tip:** Place each room's HTML dashboard tab next to your related apps. Teacher dashboard next to your messaging app. Operator dashboard next to Slack/Discord. The tabs cluster by theme.
24
45
 
25
- ```
26
- You: "Actually let's think about the bigger picture"
46
+ ## How It Works
27
47
 
28
- Claude: [calls thetacog-detect]
29
- { room: "architect", confidence: 0.92, signal: "bigger picture" }
48
+ 1. **Each terminal is a room** - iTerm2 = Builder, Kitty = Operator, etc.
49
+ 2. **Each room has browser tabs** - Prune them to match the room's theme
50
+ 3. **Bundled HTML dashboards** - Starting points for your tabs (customize them)
51
+ 4. **All rooms interlinked** - Switch terminals, switch contexts, stay in flow
52
+ 5. **Your AI knows where you are** - MCP tools detect your terminal and room
30
53
 
31
- "That sounds like Architect thinking. Want to switch?"
32
- ```
54
+ **The terminal-to-dashboard link is symbolic.** You set up which browser tabs belong to which terminal. The system assumes you keep them pruned. This is Hebbian architecture - you train yourself by repetition.
33
55
 
34
- ### thetacog-status
56
+ ## Tools (8 total)
35
57
 
36
- Get current room context, identity rules, and memory palace anchor.
58
+ ### thetacog-status
59
+ Get current room context and identity rules.
37
60
 
38
61
  ```json
39
62
  {
40
- "currentRoom": "builder",
41
- "emoji": "🔨",
42
- "memoryPalace": "Walk to the workshop. Blue light. Tools on the wall.",
43
- "identityRules": [
44
- "You are shipping, not theorizing",
45
- "Done beats right when the demo is Sunday"
46
- ]
63
+ "currentRoom": "operator",
64
+ "emoji": "⚙️",
65
+ "terminal": "Kitty",
66
+ "browserTabs": ["Vercel Dashboard", "Supabase", "Error Tracking"],
67
+ "identityRules": ["Execute, don't theorize", "Uptime is the metric"]
47
68
  }
48
69
  ```
49
70
 
50
71
  ### thetacog-switch
51
-
52
72
  Switch to a different room with context preservation.
53
73
 
54
74
  ```
55
- Claude: [calls thetacog-switch room="architect"]
75
+ Claude: [calls thetacog-switch room="builder"]
56
76
 
57
- "Walk up the stairs to the drafting room. Indigo light.
58
- Unroll the blueprints. See the whole war before you fight it."
77
+ "Switching to Builder room. Open iTerm2.
78
+ Your GitHub PRs and CI dashboard are waiting."
59
79
  ```
60
80
 
61
81
  ### thetacog-open
62
-
63
82
  Open the HTML dashboard for a room in the browser.
64
83
 
65
84
  ```
66
- Claude: [calls thetacog-open room="builder"]
67
- → Opens iterm2-builder.html in browser
85
+ Claude: [calls thetacog-open room="operator"]
86
+ → Opens operator-dashboard.html in browser
68
87
  ```
69
88
 
70
89
  ### thetacog-todo
71
-
72
- Manage todos per room. SQLite primary, syncs to JSON for HTML.
90
+ Manage priority lists per room. SQLite primary, syncs to JSON for HTML.
73
91
 
74
92
  ```
75
- Claude: [calls thetacog-todo action="add" room="builder" text="Ship Stripe" priority=1]
76
- Claude: [calls thetacog-todo action="list" room="builder"]
77
- Claude: [calls thetacog-todo action="update" id=1 done=true]
93
+ Claude: [calls thetacog-todo action="add" room="operator" text="Deploy v2.1" priority=1]
94
+ Claude: [calls thetacog-todo action="list" room="operator"]
78
95
  ```
79
96
 
80
97
  ### thetacog-stream
81
-
82
98
  Send messages between rooms (flywheel coordination).
83
99
 
84
100
  ```
85
- Claude: [calls thetacog-stream action="send" from="builder" to="architect" message="Stripe 80% done"]
86
- Claude: [calls thetacog-stream action="get" to="architect"]
87
- → Returns unread input streams
101
+ Claude: [calls thetacog-stream action="send" from="builder" to="operator" message="v2.1 ready for deploy"]
88
102
  ```
89
103
 
90
104
  ### thetacog-export
91
-
92
- Export full state to JSON file. HTML reads on tab focus.
105
+ Export full state to JSON. HTML reads on tab focus.
93
106
 
94
107
  ### thetacog-terminal
95
-
96
- Detect which terminal Claude is running in.
108
+ Detect which terminal the AI is running in.
97
109
 
98
110
  ```
99
- Claude: [calls thetacog-terminal]
100
- → { terminal: "iTerm", room: "builder", html: "iterm2-builder.html" }
111
+ AI: [calls thetacog-terminal]
112
+ → { terminal: "Kitty", room: "operator" }
101
113
  ```
102
114
 
103
- ## Room Archetypes
104
-
105
- | Room | Emoji | Color | Tier | Identity |
106
- |------|-------|-------|------|----------|
107
- | **Builder** | 🔨 | Blue | Tactical | Ship, don't theorize. Done beats right. |
108
- | **Architect** | 📐 | Indigo | Strategic | See the whole war before you fight it. |
109
- | **Operator** | 🎩 | Green | Strategic | Close, don't explore. Revenue is the metric. |
110
- | **Vault** | 🔒 | Red | Foundational | Protect the irreversible. Prove, don't ship. |
111
- | **Voice** | 🎤 | Purple | Tactical | Test messaging. Experiment with variants. |
112
- | **Laboratory** | 🧪 | Cyan | Tactical | Break things safely. Prototype fast. |
113
-
114
- ## Stakes Tiers
115
-
116
- - **Tactical** - Fully reversible, immediate horizon (Builder, Voice, Laboratory)
117
- - **Strategic** - Semi-reversible, 1-year horizon (Architect, Operator)
118
- - **Foundational** - Irreversible, multi-year horizon (Vault)
119
-
120
- ## Terminal Mapping (macOS)
121
-
122
- | Terminal | Room |
123
- |----------|------|
124
- | iTerm2 | Builder |
125
- | VS Code | Architect |
126
- | Kitty | Operator |
127
- | WezTerm | Vault |
128
- | Terminal | Voice |
129
- | Cursor | Laboratory |
130
-
131
115
  ## Architecture
132
116
 
133
117
  ```
134
118
  ~/.thetacog/
135
- ├── thetacog.db # SQLite (primary store - fast for Claude)
119
+ ├── thetacog.db # SQLite (primary store - fast MCP reads)
136
120
  ├── state.json # JSON export (HTML reads on tab focus)
137
- └── rooms/ # Optional local HTML copies
121
+ └── rooms/ # Local HTML copies
138
122
 
139
- .workflow/rooms/ # Git-tracked HTML files
140
- ├── iterm2-builder.html # Each has embedded JSON config
141
- ├── vscode-architect.html
142
- └── ...
123
+ .workflow/ # Bundled with npm install
124
+ ├── kitty-operator.html # Operator room dashboard
125
+ ├── iterm2-builder.html # Builder room dashboard
126
+ ├── messages-network.html # Messaging/communication hub
127
+ ├── terminal-voice.html # Teacher/writing room
128
+ └── ... # Starting points for your browser tabs
143
129
  ```
144
130
 
145
131
  **Data flow:**
146
- 1. Claude writes to SQLite (fast, 0-1ms)
132
+ 1. MCP client writes to SQLite (0-1ms)
147
133
  2. Every write exports to `state.json`
148
- 3. HTML reads `state.json` on `visibilitychange` (tab focus)
149
- 4. No Node needed - pure browser JS
134
+ 3. HTML reads `state.json` on tab focus
135
+ 4. No server needed - pure browser JS
136
+
137
+ ## The Key Insight
138
+
139
+ **Browser tabs are associated with terminals, not split alongside them.**
140
+
141
+ When you `Cmd+Space kitty`:
142
+ - Kitty opens (Operator terminal)
143
+ - Your Operator browser tabs are right there (you keep them pruned)
144
+ - The bundled HTML dashboard is one of those tabs
145
+ - All rooms are interlinked - minimized tabs for other terminals
150
146
 
151
- **HTML files ARE the rooms.** SQLite is the source of truth. JSON is the sync layer. HTML refreshes on tab focus.
147
+ This is Hebbian learning: "Neurons that fire together, wire together." Kitty + Operator tabs = Operator mindset.
152
148
 
153
- ## Target Audience
149
+ ## Cloud Sync (Coming Soon)
154
150
 
155
- - ADHD founders who task-switch constantly
156
- - Parallel thinkers who follow intuition
157
- - Developers with 20+ terminal tabs open
158
- - Startups that want to "work like rockstars"
151
+ Free tier works entirely offline with bundled HTML dashboards.
159
152
 
160
- **Not for:** Task lists, linear thinkers, rigid process
153
+ Cloud tier ($1/month) adds:
154
+ - Web dashboard at thetacoach.biz/thetacog (SQL-connected)
155
+ - Cross-machine workspace sync
156
+ - RetroAge prediction tracking
157
+ - Same Supabase as ThetaCoach CRM
158
+
159
+ ## Who This Is For
160
+
161
+ **The modern world is not a cognitively friendly place.**
162
+
163
+ Slack pings. Email notifications. Open office plans. Context switching every 11 minutes on average. This environment was not designed for human cognition. It was designed for surveillance and availability metrics.
164
+
165
+ You know the type. You may be one. The person with 20+ browser tabs because each tab is a thought. The founder who gets a strong intuition and needs to capture it before it evaporates. The developer who can produce 10x output in flow state but struggles to start.
166
+
167
+ You have two options:
168
+ 1. **Take Concerta or Adderall** to make other people's environment tolerable
169
+ 2. **Redesign the environment** to match how your brain actually works
170
+
171
+ This is option 2.
161
172
 
162
173
  ## Philosophy
163
174
 
164
175
  Context switching has a cost. But context switching within a well-designed system has almost no cost.
165
176
 
166
- When you Command+Space to a room name, you are not losing context. You are loading context. The room has the right tabs open. The room has Claude loaded with context. The room has identity rules visible.
177
+ When you `Cmd+Space` to a terminal name, you are not losing context. You are loading context. The terminal has your AI assistant in that mode. The browser tabs match the work. The room remembers what you were doing.
178
+
179
+ **Tool = Identity = Mindset.**
180
+
181
+ You don't switch tasks. You switch rooms. And the room knows who you are when you're there.
167
182
 
168
- You do not switch tasks. You switch rooms. And the room remembers what you were doing there.
183
+ Not task management. Mode management. Flow with the intuition. Let the rooms carry the context.
169
184
 
170
185
  ## Related
171
186
 
172
- - [Cognitive Rooms Blog Post](https://thetacoach.biz/blog/cognitive-rooms-flow-architecture)
173
- - [ThetaCoach CRM MCP](https://www.npmjs.com/package/thetacoach-crm-mcp) - Same architecture for sales battle cards
187
+ - [Cognitive Rooms: A Flow Architecture for Parallel Founders](https://thetacoach.biz/blog/cognitive-rooms-flow-architecture) - The full methodology
188
+ - [The Cognitive Flywheel: Why This Works](https://thetacoach.biz/blog/cognitive-workspace-adhd-flywheel) - The neuroscience and Trust Debt framework
189
+ - [ThetaCog Product Page](https://thetacoach.biz/thetacog) - Setup wizard and web dashboard
190
+ - [ThetaCoach CRM MCP](https://www.npmjs.com/package/thetacoach-crm-mcp) - Same Supabase, different tools
174
191
 
175
192
  ## License
176
193
 
@@ -178,4 +195,4 @@ MIT
178
195
 
179
196
  ---
180
197
 
181
- *For parallel founders who think in parallel.*
198
+ *For people who think in parallel. You know who you are.*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thetacog-mcp",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Transform your terminal into a mental palace. Cognitive workspaces with Split View mode switching. Tool = Identity = Mindset.",
5
5
  "type": "module",
6
6
  "main": "server.js",