thetacog-mcp 1.0.0 → 1.0.2

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,195 @@
1
1
  # ThetaCog MCP
2
2
 
3
- **Mode management, not task management.**
3
+ **You have 47 browser tabs open. Give your brain a break.**
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
+ The million tabs problem is not a discipline problem. It is an architecture problem. Each tab is a thought. Each thought belongs to a mode. **Bunch your tabs and terminals by theme.** Switch themes, not tasks.
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. Builder tabs minimized. Strategist tabs minimized. All interlinked.
14
+ 4. Your AI knows you're in Operator mode now.
15
+ ```
16
+
17
+ **Tabs + Terminals = Themes.** Each terminal app is a cognitive room. Each room has its own browser tabs. You prune them to match each identity's theme. When you switch terminals, your brain switches modes.
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
+ **Tips:**
45
+ - Place each room's HTML dashboard tab next to your related apps (Teacher next to messaging, Operator next to Slack)
46
+ - **Chrome eating your RAM?** Ask Claude: "kill my Chrome tabs that are using more than 500MB" - Claude can help you prune
24
47
 
25
- ```
26
- You: "Actually let's think about the bigger picture"
48
+ ## How It Works
27
49
 
28
- Claude: [calls thetacog-detect]
29
- { room: "architect", confidence: 0.92, signal: "bigger picture" }
50
+ 1. **Tabs + Terminals = Themes** - Group your 47 tabs by what mode they serve
51
+ 2. **Each terminal is a room** - iTerm2 = Builder, Kitty = Operator, etc.
52
+ 3. **Each room has its browser tabs** - Prune them to match the room's theme
53
+ 4. **Bundled HTML dashboards** - Starting points for your tab clusters (customize them)
54
+ 5. **Your AI knows where you are** - MCP tools detect your terminal and room
30
55
 
31
- "That sounds like Architect thinking. Want to switch?"
32
- ```
56
+ **The link is symbolic.** You train yourself by repetition. Kitty + Operator tabs = Operator mindset. This is Hebbian learning: neurons that fire together, wire together. After a week, switching terminals automatically shifts your brain into that mode.
33
57
 
34
- ### thetacog-status
58
+ ## Tools (8 total)
35
59
 
36
- Get current room context, identity rules, and memory palace anchor.
60
+ ### thetacog-status
61
+ Get current room context and identity rules.
37
62
 
38
63
  ```json
39
64
  {
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
- ]
65
+ "currentRoom": "operator",
66
+ "emoji": "⚙️",
67
+ "terminal": "Kitty",
68
+ "browserTabs": ["Vercel Dashboard", "Supabase", "Error Tracking"],
69
+ "identityRules": ["Execute, don't theorize", "Uptime is the metric"]
47
70
  }
48
71
  ```
49
72
 
50
73
  ### thetacog-switch
51
-
52
74
  Switch to a different room with context preservation.
53
75
 
54
76
  ```
55
- Claude: [calls thetacog-switch room="architect"]
77
+ Claude: [calls thetacog-switch room="builder"]
56
78
 
57
- "Walk up the stairs to the drafting room. Indigo light.
58
- Unroll the blueprints. See the whole war before you fight it."
79
+ "Switching to Builder room. Open iTerm2.
80
+ Your GitHub PRs and CI dashboard are waiting."
59
81
  ```
60
82
 
61
83
  ### thetacog-open
62
-
63
84
  Open the HTML dashboard for a room in the browser.
64
85
 
65
86
  ```
66
- Claude: [calls thetacog-open room="builder"]
67
- → Opens iterm2-builder.html in browser
87
+ Claude: [calls thetacog-open room="operator"]
88
+ → Opens operator-dashboard.html in browser
68
89
  ```
69
90
 
70
91
  ### thetacog-todo
71
-
72
- Manage todos per room. SQLite primary, syncs to JSON for HTML.
92
+ Manage priority lists per room. SQLite primary, syncs to JSON for HTML.
73
93
 
74
94
  ```
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]
95
+ Claude: [calls thetacog-todo action="add" room="operator" text="Deploy v2.1" priority=1]
96
+ Claude: [calls thetacog-todo action="list" room="operator"]
78
97
  ```
79
98
 
80
99
  ### thetacog-stream
81
-
82
100
  Send messages between rooms (flywheel coordination).
83
101
 
84
102
  ```
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
103
+ Claude: [calls thetacog-stream action="send" from="builder" to="operator" message="v2.1 ready for deploy"]
88
104
  ```
89
105
 
90
106
  ### thetacog-export
91
-
92
- Export full state to JSON file. HTML reads on tab focus.
107
+ Export full state to JSON. HTML reads on tab focus.
93
108
 
94
109
  ### thetacog-terminal
95
-
96
- Detect which terminal Claude is running in.
110
+ Detect which terminal the AI is running in.
97
111
 
98
112
  ```
99
- Claude: [calls thetacog-terminal]
100
- → { terminal: "iTerm", room: "builder", html: "iterm2-builder.html" }
113
+ AI: [calls thetacog-terminal]
114
+ → { terminal: "Kitty", room: "operator" }
101
115
  ```
102
116
 
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
117
  ## Architecture
132
118
 
133
119
  ```
134
120
  ~/.thetacog/
135
- ├── thetacog.db # SQLite (primary store - fast for Claude)
121
+ ├── thetacog.db # SQLite (primary store - fast MCP reads)
136
122
  ├── state.json # JSON export (HTML reads on tab focus)
137
- └── rooms/ # Optional local HTML copies
123
+ └── rooms/ # Local HTML copies
138
124
 
139
- .workflow/rooms/ # Git-tracked HTML files
140
- ├── iterm2-builder.html # Each has embedded JSON config
141
- ├── vscode-architect.html
142
- └── ...
125
+ .workflow/ # Bundled with npm install
126
+ ├── kitty-operator.html # Operator room dashboard
127
+ ├── iterm2-builder.html # Builder room dashboard
128
+ ├── messages-network.html # Messaging/communication hub
129
+ ├── terminal-voice.html # Teacher/writing room
130
+ └── ... # Starting points for your browser tabs
143
131
  ```
144
132
 
145
133
  **Data flow:**
146
- 1. Claude writes to SQLite (fast, 0-1ms)
134
+ 1. MCP client writes to SQLite (0-1ms)
147
135
  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
136
+ 3. HTML reads `state.json` on tab focus
137
+ 4. No server needed - pure browser JS
138
+
139
+ ## The Key Insight
140
+
141
+ **Browser tabs are associated with terminals, not split alongside them.**
142
+
143
+ When you `Cmd+Space kitty`:
144
+ - Kitty opens (Operator terminal)
145
+ - Your Operator browser tabs are right there (you keep them pruned)
146
+ - The bundled HTML dashboard is one of those tabs
147
+ - All rooms are interlinked - minimized tabs for other terminals
150
148
 
151
- **HTML files ARE the rooms.** SQLite is the source of truth. JSON is the sync layer. HTML refreshes on tab focus.
149
+ This is Hebbian learning: "Neurons that fire together, wire together." Kitty + Operator tabs = Operator mindset.
152
150
 
153
- ## Target Audience
151
+ ## Cloud Sync (Coming Soon)
154
152
 
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"
153
+ Free tier works entirely offline with bundled HTML dashboards.
159
154
 
160
- **Not for:** Task lists, linear thinkers, rigid process
155
+ Cloud tier ($1/month) adds:
156
+ - Web dashboard at thetacoach.biz/thetacog (SQL-connected)
157
+ - Cross-machine workspace sync
158
+ - RetroAge prediction tracking
159
+ - Same Supabase as ThetaCoach CRM
160
+
161
+ ## Who This Is For
162
+
163
+ **The modern world is not a cognitively friendly place.**
164
+
165
+ You have 47 browser tabs open right now. Chrome is eating 8GB of RAM. You know you should close some, but each tab is a thought - and you might need that thought later.
166
+
167
+ You know the type. You may be one. The person whose browser is a graveyard of "I'll get to this." 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 can not remember which of 47 tabs had that Stack Overflow answer.
168
+
169
+ You have two options:
170
+ 1. **Take Concerta or Adderall** to make other people's environment tolerable
171
+ 2. **Bunch your tabs by theme** and let the themes carry the context
172
+
173
+ This is option 2. Give your brain a break. Let the rooms remember.
161
174
 
162
175
  ## Philosophy
163
176
 
164
177
  Context switching has a cost. But context switching within a well-designed system has almost no cost.
165
178
 
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.
179
+ 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.
180
+
181
+ **Tool = Identity = Mindset.**
182
+
183
+ You don't switch tasks. You switch rooms. And the room knows who you are when you're there.
167
184
 
168
- You do not switch tasks. You switch rooms. And the room remembers what you were doing there.
185
+ Not task management. Mode management. Flow with the intuition. Let the rooms carry the context.
169
186
 
170
187
  ## Related
171
188
 
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
189
+ - [Cognitive Rooms: A Flow Architecture for Parallel Founders](https://thetacoach.biz/blog/cognitive-rooms-flow-architecture) - The full methodology
190
+ - [The Cognitive Flywheel: Why This Works](https://thetacoach.biz/blog/cognitive-workspace-adhd-flywheel) - The neuroscience and Trust Debt framework
191
+ - [ThetaCog Product Page](https://thetacoach.biz/thetacog) - Setup wizard and web dashboard
192
+ - [ThetaCoach CRM MCP](https://www.npmjs.com/package/thetacoach-crm-mcp) - Same Supabase, different tools
174
193
 
175
194
  ## License
176
195
 
@@ -178,4 +197,4 @@ MIT
178
197
 
179
198
  ---
180
199
 
181
- *For parallel founders who think in parallel.*
200
+ *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.2",
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",