intent-engine 0.10.2

A command-line database service for tracking strategic intent, tasks, and events
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# Migration Guide: v0.9.x → v0.10.0

## Overview

Intent-Engine v0.10.0 represents a major architectural shift from MCP-based to system prompt-based AI integration. This guide will help you migrate smoothly.

---

## 🎯 What Changed?

### Removed: MCP Server

**Before (v0.9.x)**:
```json
{
  "mcpServers": {
    "intent-engine": {
      "command": "ie",
      "args": ["mcp-server"],
      "env": {...}
    }
  }
}
```

**After (v0.10.0)**:
- ❌ MCP server removed entirely
- ✅ System prompt integration (automatic)
- ✅ Dashboard auto-start (seamless)

### Why This Change?

**Problems with MCP Approach**:
1. **Complex Setup**: Users had to manually configure `mcp-server.json` files
2. **Multiple Binaries**: Separate CLI and MCP server processes
3. **Sync Issues**: CLI and MCP operations could drift out of sync
4. **Cognitive Load**: Users needed to understand JSON-RPC, process management, etc.

**Benefits of System Prompt Approach**:
1. **Zero Configuration**: Works out of the box with Claude Code
2. **Single Binary**: One `ie` binary for everything
3. **Automatic Dashboard**: Dashboard starts automatically when needed
4. **Real-Time Sync**: CLI → Dashboard notifications are instant
5. **Simpler Mental Model**: Just use CLI commands naturally

---

## 📋 Migration Checklist

### Step 1: Update Intent-Engine

```bash
# Using Homebrew (macOS/Linux)
brew upgrade intent-engine

# Or build from source
git pull origin main
cargo install --path .
```

### Step 2: Remove MCP Configuration

**Claude Code**:
```bash
# Remove MCP server configuration
# Edit: ~/.config/Claude/claude_desktop_config.json (Linux)
#       ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
#       %APPDATA%\Claude\claude_desktop_config.json (Windows)

# Delete the "intent-engine" entry from "mcpServers"
```

**Claude Desktop**:
- Same process as Claude Code - remove MCP configuration

### Step 3: Verify Setup

```bash
# Check version
ie --version
# Should show: intent-engine 0.10.0 (or higher)

# Test basic functionality
ie init
ie add "Test task"
ie start 1
ie done

# Verify Dashboard auto-start
ie ls
# Dashboard should start automatically in background

# Check Dashboard status
ie dashboard status
```

### Step 4: Use Enhanced Help System

```bash
# New guide command replaces need for external docs
ie guide ai            # AI integration patterns
ie guide todowriter    # TodoWriter migration guide
ie guide workflow      # Core workflows
ie guide patterns      # Usage examples
```

---

## 🔄 Feature Comparison

| Feature | v0.9.x (MCP) | v0.10.0 (System Prompt) |
|---------|--------------|-------------------------|
| **Setup Complexity** | High (manual config) | None (automatic) |
| **AI Integration** | MCP tools | System prompt + CLI |
| **Dashboard** | Manual start | Auto-start |
| **CLI → Dashboard Sync** | Database only | Database + HTTP notifications |
| **Learning Curve** | Steep (MCP concepts) | Gentle (standard CLI) |
| **Binary Count** | 1 (dual-mode) | 1 (unified) |
| **Configuration Files** | `mcp-server.json` required | None required |

---

## 🛠️ New Features in v0.10.0

### 1. Dashboard Auto-Start

```bash
# Dashboard starts automatically when you use any command
ie add "New task"
# ✓ Dashboard started in background (PID: 12345)

# Check status
ie dashboard status
# Dashboard running: http://127.0.0.1:11391 (PID: 12345)
```

**Cross-Platform Support**:
- **Unix/Linux/macOS**: Fork-based daemon with SIGTERM handling
- **Windows**: Detached process with CREATE_NO_WINDOW flag
- **PID Management**: Automatic stale PID cleanup, health checks

### 2. Real-Time CLI → Dashboard Sync

```bash
# CLI operations instantly update Dashboard UI
ie add "Task A"          # Dashboard shows new task immediately
ie start 1               # Dashboard highlights focused task
ie log decision "..."    # Dashboard shows new event in real-time
```

**Technical Details**:
- Fire-and-forget HTTP notifications (500ms timeout)
- Non-blocking CLI operations
- WebSocket broadcast to all connected clients

### 3. Enhanced Guide System

```bash
# Get context-rich guidance for AI assistants
ie guide ai         # 345-line AI integration guide
ie guide todowriter # TodoWriter → Intent-Engine migration
ie guide workflow   # 6 core workflow patterns
ie guide patterns   # 8 practical usage examples
```

**Design Philosophy**:
- Optimized for AI consumption (no token waste)
- Covers common mistakes and anti-patterns
- Includes code examples and decision trees

---

## 🤖 AI Assistant Integration

### For Claude Code Users

**Before (v0.9.x)**:
1. Install MCP server
2. Configure `claude_desktop_config.json`
3. Restart Claude Code
4. Use MCP tools directly

**After (v0.10.0)**:
1. Install Intent-Engine
2. Start using it naturally in conversations
3. Claude Code reads system prompt automatically
4. Dashboard provides real-time UI feedback

**Example Session**:
```
User: "Help me implement authentication"

Claude: "I'll use Intent-Engine to track this work..."
        [Creates task with ie plan]
        [Gets context: ie get 1 --with-events]
        [Updates status: ie plan with status="doing"]
        [Claude implements the feature]
        [Logs: ie log decision "Chose JWT because..."]
        [Completes: ie plan with status="done"]

Dashboard: [Shows all changes in real-time]
```

### For Other AI Assistants

The system prompt approach works with any AI assistant that can:
1. Execute shell commands
2. Read command output
3. Understand markdown/text guides

**Supported Platforms**:
- ✅ Claude Code (native)
- ✅ Claude Desktop (native)
- ✅ Cursor (via shell commands)
- ✅ Aider (via shell commands)
- ✅ Generic LLM CLI tools

---

## 🔧 Troubleshooting

### Issue: "Dashboard not starting automatically"

**Symptoms**:
```bash
ie add "Test"
# No dashboard auto-start message
```

**Solution**:
```bash
# Check if Dashboard is already running
ie dashboard status

# If not running, check logs
ie logs --mode dashboard --level debug

# Manually start Dashboard
ie dashboard start --daemon

# Verify health
curl http://127.0.0.1:11391/api/health
```

### Issue: "CLI changes not reflected in Dashboard"

**Symptoms**:
- CLI commands succeed
- Dashboard UI doesn't update

**Solution**:
```bash
# Check Dashboard status
ie dashboard status

# Check logs for notification errors
ie logs --mode dashboard --level warn --since 1h

# Verify notification endpoint
curl -X POST http://127.0.0.1:11391/api/internal/cli-notify \
  -H "Content-Type: application/json" \
  -d '{"type":"task_changed","task_id":1,"operation":"test"}'
```

### Issue: "Old MCP configuration conflicts"

**Symptoms**:
- Claude Code shows "MCP server connection error"
- Intent-Engine works in CLI but not in Claude

**Solution**:
```bash
# 1. Remove MCP configuration completely
# Edit Claude's config file and delete "intent-engine" entry

# 2. Restart Claude Code

# 3. Verify clean state
ps aux | grep "ie mcp-server"  # Should show nothing

# 4. Test with fresh session
ie init --force
ie add "Test"
```

---

## 📚 Updated Documentation Structure

**Removed**:
- `docs/*/integration/mcp-server.md` (MCP setup guide)
- `docs/*/technical/mcp-tools-sync.md` (MCP maintenance guide)
- `mcp-server.json` (MCP schema file)

**Added**:
- `MIGRATION_v0.10.0.md` (this file)
- `ie guide ai` (embedded guide)
- `ie guide todowriter` (embedded guide)
- `ie guide workflow` (embedded guide)
- `ie guide patterns` (embedded guide)

**Updated**:
- `README.md` - Removed MCP section, updated integration guide
- `CLAUDE.md` - Updated to reflect system prompt approach
- `AGENT.md` - Removed MCP interface documentation

---

## 🎓 Learning Resources

### Quick Start

```bash
# 1. Initialize project
cd ~/my-project
ie init

# 2. Create task with plan
echo '{"tasks":[{"name":"Implement feature X"}]}' | ie plan

# 3. Check tasks and get context
ie list todo
ie get 1 --with-events

# 4. Start working (update status)
echo '{"tasks":[{"name":"Implement feature X","status":"doing"}]}' | ie plan

# 5. Track decisions
ie log decision "Chose approach A because..."

# 6. Complete task
echo '{"tasks":[{"name":"Implement feature X","status":"done"}]}' | ie plan

# 7. View Dashboard
ie dashboard open
```

### Recommended Reading Order

1. **Quick Start**: `ie guide ai` - Core concepts and commands
2. **Workflows**: `ie guide workflow` - Focus-driven patterns
3. **Examples**: `ie guide patterns` - Real-world scenarios
4. **Migration**: `ie guide todowriter` - If coming from TodoWriter

### Advanced Topics

```bash
# Hierarchical task breakdown
ie add "Feature X" --priority high
ie start 1
ie add "Subtask A" --parent 1
ie start 2
ie done
ie next  # Recommends next subtask

# Dependencies
ie add "Build API"
ie add "Build Frontend"
ie task depends-on 2 1  # Frontend depends on API

# Event filtering
ie event list --type decision --since 7d
ie search "authentication AND JWT"
```

---

## 🚀 What's Next?

### Planned Features (v0.11.0+)

- **Git Integration**: Auto-commit on `ie done`
- **Plugin System**: Custom commands and hooks
- **Multi-Project Dashboard**: View all projects in one UI
- **Export/Import**: Share task trees with team
- **AI Templates**: Pre-configured workflows for common tasks

### Community

- **GitHub**: https://github.com/your-org/intent-engine
- **Issues**: Report bugs or request features
- **Discussions**: Share workflows and tips

---

## 📝 Changelog Summary

### Added
- ✅ Dashboard auto-start with cross-platform daemon mode
- ✅ CLI → Dashboard real-time HTTP notifications
-`ie guide` command with 4 comprehensive guides
- ✅ System prompt embedded in binary (345 lines)
- ✅ Fire-and-forget notification pattern

### Changed
- 🔄 AI integration: MCP → System Prompt
- 🔄 Architecture: Dual-mode binary → CLI-native
- 🔄 Configuration: Manual JSON → Zero-config

### Removed
- ❌ MCP server mode (`ie mcp-server`)
- ❌ MCP configuration files
- ❌ MCP-specific documentation
- ❌ JSON-RPC protocol handling

### Deprecated
- None (clean break from v0.9.x)

---

## ❓ FAQ

**Q: Do I need to reconfigure anything?**
A: No. Just upgrade the binary and remove old MCP config.

**Q: Will my existing database work?**
A: Yes. Database schema is unchanged.

**Q: Can I still use the Dashboard manually?**
A: Yes. Use `ie dashboard start` or let it auto-start.

**Q: What if I prefer the MCP approach?**
A: v0.9.x will remain available, but v0.10.0+ is recommended.

**Q: Does this work with Claude Desktop?**
A: Yes, through system prompt. Remove MCP config and use naturally.

**Q: How do I verify the migration succeeded?**
A: Run `ie guide ai` - if you see the guide, you're good!

---

**Migration Date**: 2025-12-16
**Version**: 0.10.0
**Migration Difficulty**: Low (mostly configuration removal)
**Estimated Time**: 5-10 minutes

*For technical details, see [RELEASE_NOTES_v0.10.0.md](RELEASE_NOTES_v0.10.0.md)*