|
4 | 4 | ## Project: flow-cli |
5 | 5 | ## Type: zsh-plugin |
6 | 6 | ## Status: active |
7 | | -## Phase: v3.1.0 - Dashboard UX Improvements |
| 7 | +## Phase: v3.2.0 - AI-Powered Commands & Unified Management |
8 | 8 | ## Priority: 1 |
9 | | -## Progress: 35 |
| 9 | +## Progress: 85 |
10 | 10 |
|
11 | | -## Focus: Phase 1 complete - Phase 2 next (dopamine features) |
| 11 | +## Focus: AI integration complete - Plugin system next |
12 | 12 |
|
13 | 13 | ## Quick Context |
14 | 14 | Pure ZSH workflow plugin with optional atlas integration for state management. |
15 | 15 | Clean separation from atlas (Node.js state engine) complete. |
16 | 16 | Legacy 140KB monolithic code archived - lean plugin architecture. |
17 | 17 |
|
18 | | -## Architecture (Final) |
| 18 | +## Architecture (v3.2.0) |
19 | 19 | ``` |
20 | 20 | flow-cli/ |
21 | | -├── flow.plugin.zsh # Plugin entry point |
| 21 | +├── flow.plugin.zsh # Plugin entry point (v3.2.0) |
22 | 22 | ├── lib/ |
23 | 23 | │ ├── core.zsh # Core utilities, colors |
24 | 24 | │ ├── atlas-bridge.zsh # Atlas CLI integration (graceful fallback) |
25 | 25 | │ ├── project-detector.zsh |
26 | 26 | │ ├── tui.zsh # TUI components |
27 | | -│ └── dispatchers/ # v, g, mcp, obs dispatchers |
| 27 | +│ └── dispatchers/ # g, mcp, obs, qu, r dispatchers |
28 | 28 | ├── commands/ |
29 | 29 | │ ├── work.zsh # work, finish, hop, why |
30 | 30 | │ ├── dash.zsh # dash, dash-tui |
31 | 31 | │ ├── capture.zsh # catch, inbox, crumb, win, yay |
32 | | -│ ├── adhd.zsh # js, next, stuck, focus, brk |
| 32 | +│ ├── adhd.zsh # js, next (--ai), stuck (--ai), focus, brk |
33 | 33 | │ ├── status.zsh # status, st, setprogress |
34 | 34 | │ ├── timer.zsh # timer, pom |
35 | | -│ └── morning.zsh # morning, today, week, am |
| 35 | +│ ├── morning.zsh # morning, today, week, am |
| 36 | +│ ├── flow.zsh # flow dispatcher (help, version, etc.) |
| 37 | +│ ├── ai.zsh # flow ai, flow do (NEW v3.2.0) |
| 38 | +│ ├── install.zsh # flow install (NEW v3.2.0) |
| 39 | +│ └── upgrade.zsh # flow upgrade (NEW v3.2.0) |
36 | 40 | ├── completions/ # ZSH completions |
37 | 41 | ├── hooks/ # chpwd, precmd |
| 42 | +├── setup/ # Setup files |
| 43 | +│ └── Brewfile # Recommended CLI tools |
38 | 44 | └── zsh/functions/ # Symlinks to external integrations only |
39 | 45 | ├── core-utils.zsh → zsh-claude-workflow/ |
40 | 46 | ├── obs.zsh → obsidian-cli-ops/ |
41 | 47 | └── project-detector.zsh → zsh-claude-workflow/ |
42 | 48 | ``` |
43 | 49 |
|
44 | | -## v3.0.0 Changes (2025-12-25) |
| 50 | +## v3.2.0 Changes (2025-12-26) ✅ COMPLETE |
| 51 | +### AI-Powered Commands |
| 52 | +- [x] `flow ai <query>` - Ask AI anything with project context |
| 53 | +- [x] `flow ai --explain <code>` - Explain code or concepts |
| 54 | +- [x] `flow ai --fix <problem>` - Get fix suggestions |
| 55 | +- [x] `flow ai --suggest <goal>` - Get improvement suggestions |
| 56 | +- [x] `flow ai --create <spec>` - Generate code from description |
| 57 | +- [x] `flow do "<natural language>"` - Natural language → shell command |
| 58 | +- [x] `stuck --ai` - AI-powered help when blocked |
| 59 | +- [x] `next --ai` - AI-powered task suggestions |
| 60 | + |
| 61 | +### Install & Upgrade System |
| 62 | +- [x] `flow install` - Interactive tool installer |
| 63 | +- [x] `flow install --profile <name>` - Profile-based install (minimal/developer/researcher/writer/full) |
| 64 | +- [x] `flow install --category <name>` - Category-based install (core/productivity/git/dev/research) |
| 65 | +- [x] `flow upgrade self` - Self-update flow-cli via git |
| 66 | +- [x] `flow upgrade tools` - Update Homebrew packages |
| 67 | +- [x] `flow upgrade plugins` - Update ZSH plugins |
| 68 | +- [x] `flow upgrade all` - Update everything |
| 69 | +- [x] `flow upgrade --check` - Check for updates without applying |
| 70 | + |
| 71 | +### Infrastructure |
| 72 | +- [x] Tab completions for all new commands |
| 73 | +- [x] Help system integration |
| 74 | +- [x] Context-aware AI prompts |
| 75 | +- [x] Safety checks for dangerous commands in `flow do` |
| 76 | +- [x] Version bump to 3.2.0 |
| 77 | + |
| 78 | +## v3.1.0 Changes (2025-12-26) ✅ COMPLETE |
| 79 | +- [x] `flow doctor` command with --fix and --ai modes |
| 80 | +- [x] setup/Brewfile with 14 recommended CLI tools |
| 81 | +- [x] Dashboard Phase 1 enhancements complete |
| 82 | + |
| 83 | +## v3.0.0 Changes (2025-12-25) ✅ COMPLETE |
45 | 84 | - [x] Archive 140KB legacy zsh/functions/ to .archive/ |
46 | 85 | - [x] Keep only symlinks to external integrations |
47 | 86 | - [x] Remove FLOW_LEGACY_COMPAT flag (no longer needed) |
@@ -78,11 +117,26 @@ flow-cli/ |
78 | 117 |
|
79 | 118 | ### ADHD Helpers |
80 | 119 | - `js` - Just start (anti-paralysis) |
81 | | -- `next` - What to work on |
82 | | -- `stuck` - When blocked |
| 120 | +- `next` - What to work on (`--ai` for AI suggestion) |
| 121 | +- `stuck` - When blocked (`--ai` for AI help) |
83 | 122 | - `focus [text]` - Get/set focus |
84 | 123 | - `brk [min]` - Take a break |
85 | 124 |
|
| 125 | +### AI-Powered (v3.2.0) |
| 126 | +- `flow ai <query>` - Ask AI with context |
| 127 | +- `flow ai --explain` - Explain code/concepts |
| 128 | +- `flow ai --fix` - Get fix suggestions |
| 129 | +- `flow ai --suggest` - Get improvements |
| 130 | +- `flow ai --create` - Generate code |
| 131 | +- `flow do "..."` - Natural language commands |
| 132 | + |
| 133 | +### Setup & Management (v3.2.0) |
| 134 | +- `flow install` - Interactive tool installer |
| 135 | +- `flow install --profile <p>` - Install by profile |
| 136 | +- `flow upgrade self` - Update flow-cli |
| 137 | +- `flow upgrade tools` - Update brew packages |
| 138 | +- `flow doctor` - Health check & diagnostics |
| 139 | + |
86 | 140 | ### Status Management |
87 | 141 | - `status [project]` - Show/update status |
88 | 142 | - `setprogress <n>` - Quick progress update |
@@ -126,23 +180,71 @@ FLOW_QUIET=1 # Disable welcome message |
126 | 180 | - Atlas: https://github.com/Data-Wise/atlas |
127 | 181 | - npm (atlas): `npm install -g @data-wise/atlas` |
128 | 182 |
|
129 | | -## Next: v3.1.0 - Dashboard Enhancements |
130 | | -- [x] Phase 1: High impact improvements ✅ COMPLETE |
131 | | - - [x] RIGHT NOW section with smart suggestion |
132 | | - - [x] 10-char progress bars (was 5-char) |
133 | | - - [x] Enhanced active session (┏━┓ borders) |
134 | | - - [x] Session timer with progress bar |
135 | | - - [x] Context-aware footer |
136 | | -- [ ] Phase 2: Dopamine features (NEXT) |
| 183 | +## Roadmap |
| 184 | + |
| 185 | +### v3.3.0 - Configuration & Plugin System (NEXT) |
| 186 | +- [ ] `flow config` - Interactive configuration |
| 187 | + - [ ] `flow config show` - Display current config |
| 188 | + - [ ] `flow config set <key> <value>` - Set config value |
| 189 | + - [ ] `flow config edit` - Open config in editor |
| 190 | + - [ ] `flow config reset` - Reset to defaults |
| 191 | +- [ ] Plugin system |
| 192 | + - [ ] Plugin loader architecture |
| 193 | + - [ ] Plugin discovery (local + git) |
| 194 | + - [ ] `flow plugin list` - List available plugins |
| 195 | + - [ ] `flow plugin install <name>` - Install plugin |
| 196 | + - [ ] `flow plugin enable/disable` - Toggle plugins |
| 197 | +- [ ] Configuration profiles |
| 198 | + - [ ] `flow config profile save <name>` - Save current config |
| 199 | + - [ ] `flow config profile load <name>` - Load config profile |
| 200 | + - [ ] Export/import for sharing |
| 201 | + |
| 202 | +### v3.4.0 - AI Enhancement |
| 203 | +- [ ] AI recipes/templates |
| 204 | + - [ ] Pre-built prompts for common tasks |
| 205 | + - [ ] `flow ai recipe <name>` - Run saved recipe |
| 206 | + - [ ] Custom recipe creation |
| 207 | +- [ ] Learning from usage |
| 208 | + - [ ] Track successful commands |
| 209 | + - [ ] Personalized suggestions |
| 210 | +- [ ] Multi-model support |
| 211 | + - [ ] Switch between Claude models |
| 212 | + - [ ] Optional OpenAI/Gemini integration |
| 213 | +- [ ] Conversation mode |
| 214 | + - [ ] `flow ai chat` - Interactive session |
| 215 | + - [ ] Context persistence |
| 216 | + |
| 217 | +### v3.5.0 - Dashboard Enhancements |
| 218 | +- [ ] Dopamine features |
137 | 219 | - [ ] Quick wins section (< 30min tasks) |
138 | 220 | - [ ] Recent wins display |
139 | 221 | - [ ] Urgency indicators (🔥⏰⚡) |
140 | | -- [ ] Phase 3: Polish |
| 222 | +- [ ] Polish |
141 | 223 | - [ ] Enhanced streak visualization |
142 | 224 | - [ ] Daily goal tracking |
143 | 225 | - [ ] Extended .STATUS format |
| 226 | +- [ ] Interactive TUI improvements |
| 227 | + - [ ] Keyboard shortcuts |
| 228 | + - [ ] Live refresh |
| 229 | + |
| 230 | +### v4.0.0 - Ecosystem Integration |
| 231 | +- [ ] Cross-tool orchestration |
| 232 | + - [ ] `flow sync all` - Sync everything |
| 233 | + - [ ] Unified status across tools |
| 234 | +- [ ] Remote state sync |
| 235 | + - [ ] Optional cloud backup |
| 236 | + - [ ] Multi-device support |
| 237 | +- [ ] Team features (optional) |
| 238 | + - [ ] Shared project templates |
| 239 | + - [ ] Team dashboards |
144 | 240 |
|
145 | 241 | ## Session Log |
| 242 | +- 2025-12-26: AI - Created `flow ai` command (461 lines) - ask AI with context |
| 243 | +- 2025-12-26: AI - Created `flow do` command - natural language → shell |
| 244 | +- 2025-12-26: AI - Enhanced `stuck --ai` and `next --ai` with Claude integration |
| 245 | +- 2025-12-26: INSTALL - Created `flow install` command (445 lines) - profiles & categories |
| 246 | +- 2025-12-26: UPGRADE - Created `flow upgrade` command (377 lines) - self, tools, plugins |
| 247 | +- 2025-12-26: Version bump to 3.2.0 - 1594 new lines of code |
146 | 248 | - 2025-12-26: DOCTOR - Created `flow doctor` command with --fix and --ai modes |
147 | 249 | - 2025-12-26: DOCTOR - Created setup/Brewfile with 14 recommended CLI tools |
148 | 250 | - 2025-12-26: DOCTOR - Fixed 10+ broken documentation links |
|
0 commit comments