@flowe-ai/cli 0.2.1 → 0.2.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 +86 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Neural resets for engineers using AI coding assistants.
|
|
4
4
|
|
|
5
|
-
Built by certified hypnotherapists and engineers. `flowe` runs short, breath-led resets in your terminal during Claude / Cursor / Aider thinking pauses.
|
|
5
|
+
Built by certified hypnotherapists and engineers. `flowe` runs short, breath-led resets in your terminal during Claude / Cursor / Aider thinking pauses. Reset audio is local and instant. Focus sessions add longer work/break cycles with cached ambience.
|
|
6
6
|
|
|
7
7
|

|
|
8
8
|
|
|
@@ -23,6 +23,11 @@ flowe reset # interactive picker — choose duration + protocol
|
|
|
23
23
|
flowe reset 60 # 60-second reset, random protocol
|
|
24
24
|
flowe reset 60 --protocol box_breath # deterministic — box-breathing only
|
|
25
25
|
flowe reset --quick # skip the picker, use defaults
|
|
26
|
+
|
|
27
|
+
flowe focus # interactive focus picker — preset + ambient sound
|
|
28
|
+
flowe focus pomodoro --ambient nature_spring_birds
|
|
29
|
+
flowe focus dev --detach --ambient rain_window_soft
|
|
30
|
+
flowe focus status
|
|
26
31
|
```
|
|
27
32
|
|
|
28
33
|
Press `q` or `Ctrl+C` to abandon a session. The TUI returns you to a clean prompt.
|
|
@@ -31,7 +36,9 @@ Press `q` or `Ctrl+C` to abandon a session. The TUI returns you to a clean promp
|
|
|
31
36
|
|
|
32
37
|
When your agent is thinking for 30–120 seconds, your nervous system has two real options. Tab to reels and your working memory drains, dopamine spikes, focus fragments. Or run a science-backed neural reset that restores focus and steadies your nervous system. `flowe reset` is the second option, sized for the agent wait window.
|
|
33
38
|
|
|
34
|
-
|
|
39
|
+
When you are settling into longer work, `flowe focus` gives you a visible work/break cadence with optional ambient sound. It can run in the foreground TUI, detach into the background, or show live controls in the macOS menu bar.
|
|
40
|
+
|
|
41
|
+
Eleven protocol families ship with the CLI:
|
|
35
42
|
|
|
36
43
|
| Family | Durations | What it is |
|
|
37
44
|
|---|---|---|
|
|
@@ -49,6 +56,68 @@ Twelve protocols ship with v1:
|
|
|
49
56
|
|
|
50
57
|
Run `flowe protocols` to see the full list.
|
|
51
58
|
|
|
59
|
+
## Focus cycles
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
flowe focus # pick preset + ambience interactively
|
|
63
|
+
flowe focus pomodoro # 25/5, 4 focus blocks
|
|
64
|
+
flowe focus dev # 50/10, 3 focus blocks
|
|
65
|
+
flowe focus ultradian # 90/15, 2 focus blocks
|
|
66
|
+
flowe focus pomodoro --ambient none # silence
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The foreground focus TUI uses the same calm particle-orb visual language as `flowe reset`, with the literal countdown shown above it. Space pauses and resumes, `s` skips to the next phase, `q` quits, and `?` shows help.
|
|
70
|
+
|
|
71
|
+
For long-running work, detach the session so your shell is free:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
flowe focus pomodoro --detach --ambient nature_spring_birds
|
|
75
|
+
flowe focus status
|
|
76
|
+
flowe focus pause
|
|
77
|
+
flowe focus resume
|
|
78
|
+
flowe focus skip
|
|
79
|
+
flowe focus quit
|
|
80
|
+
flowe focus --attach
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Detached focus sessions keep their state on disk so another terminal, the attach TUI, or the menu bar plugin can control the same cycle.
|
|
84
|
+
|
|
85
|
+
## Ambient sound
|
|
86
|
+
|
|
87
|
+
Hosted ambient sounds are fetched from the flowe manifest at startup, downloaded once, and cached under `~/.config/flowe/cache/ambient/`. If the manifest or download fails, focus falls back to silence instead of failing the session.
|
|
88
|
+
|
|
89
|
+
Useful built-in ambient ids include:
|
|
90
|
+
|
|
91
|
+
| Ambient id | Feel |
|
|
92
|
+
|---|---|
|
|
93
|
+
| `nature_spring_birds` | Light spring morning birds |
|
|
94
|
+
| `rain_window_soft` | Soft rain against a window |
|
|
95
|
+
| `tones_deep_brown_noise` | Deep masking noise for focus |
|
|
96
|
+
| `seaside_la_sunrise` | Peaceful Los Angeles sunrise beach |
|
|
97
|
+
| `interiors_quiet_cafe` | Quiet cafe ambience |
|
|
98
|
+
| `none` | No ambient sound |
|
|
99
|
+
|
|
100
|
+
You can also generate custom ambience from a prompt. This requires `flowe login` and paid access.
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
flowe ambient create "quiet library, soft page turns, distant rain" --name "library rain"
|
|
104
|
+
flowe ambient list
|
|
105
|
+
flowe focus pomodoro --ambient custom_abc123def456
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Custom sounds are saved locally and appear in the focus ambience picker under `custom`.
|
|
109
|
+
|
|
110
|
+
## Menu bar
|
|
111
|
+
|
|
112
|
+
On macOS, `flowe` can install a SwiftBar plugin that shows the current focus cycle in your menu bar and gives you pause/resume/skip/quit controls.
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
flowe install-menubar
|
|
116
|
+
flowe uninstall-menubar
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The installer writes a small SwiftBar script with absolute `node` and `flowe` paths, then launches or restarts SwiftBar so it discovers the plugin. When no focus session is active, the menu gives quick-start actions for Pomodoro, dev, and ultradian sessions.
|
|
120
|
+
|
|
52
121
|
## Voices
|
|
53
122
|
|
|
54
123
|
```bash
|
|
@@ -56,12 +125,14 @@ flowe voice # show current + available voices
|
|
|
56
125
|
flowe voice sage # set voice
|
|
57
126
|
```
|
|
58
127
|
|
|
59
|
-
Three voices ship with
|
|
128
|
+
Three voices ship with the CLI: **`ada`**, **`ellie`**, **`sage`**. Pick the one you want to hear at 3pm. Default is `ellie`. Hear samples at [cli.flowe.ai/#voices](https://cli.flowe.ai/#voices).
|
|
60
129
|
|
|
61
130
|
## Use with Claude Code
|
|
62
131
|
|
|
63
132
|
`flowe` ships a Claude Code skill that fires resets for you automatically during long thinking pauses. Claude picks the protocol based on what it's observed about your recent state (eye strain, frustration, cognitive overload, postural tightness, wind-down).
|
|
64
133
|
|
|
134
|
+
The skill also knows about focus cycles. At the start of a workday or a substantial task, Claude can ask whether you want Pomodoro, dev, or ultradian focus, offer ambience options `1-5` plus `0` for none, and then start the session detached with the selected ambient sound.
|
|
135
|
+
|
|
65
136
|
```bash
|
|
66
137
|
flowe install-skill
|
|
67
138
|
```
|
|
@@ -84,6 +155,8 @@ flowe login
|
|
|
84
155
|
|
|
85
156
|
Pairs your CLI with a flowe.ai account so resets feed your retention dashboard. Anonymous use works fine — events still flow with a stable anonymous ID. Telemetry can be turned off entirely with `FLOWE_OPT_OUT=1` in your shell environment.
|
|
86
157
|
|
|
158
|
+
Login is required for custom ambient generation.
|
|
159
|
+
|
|
87
160
|
## Status
|
|
88
161
|
|
|
89
162
|
```bash
|
|
@@ -93,7 +166,7 @@ flowe whoami # current auth status
|
|
|
93
166
|
|
|
94
167
|
## Configuration
|
|
95
168
|
|
|
96
|
-
Config lives at `~/.config/flowe/config.json`. Voice preference, telemetry mode, and the anonymous ID. Login tokens go in the OS keychain via `keytar`, never on disk.
|
|
169
|
+
Config lives at `~/.config/flowe/config.json`. Voice preference, telemetry mode, and the anonymous ID live there. Ambient MP3s are cached under `~/.config/flowe/cache/ambient/`. Login tokens go in the OS keychain via `keytar`, never on disk.
|
|
97
170
|
|
|
98
171
|
## Privacy
|
|
99
172
|
|
|
@@ -109,6 +182,12 @@ Config lives at `~/.config/flowe/config.json`. Voice preference, telemetry mode,
|
|
|
109
182
|
|
|
110
183
|
**Session won't start, "agent_busy".** A previous reset is still running. Wait for it to finish or run `flowe status` to see what's open.
|
|
111
184
|
|
|
185
|
+
**Focus session says one is already running.** Run `flowe focus status` to inspect it, `flowe focus --attach` to watch it, or `flowe focus quit` to stop it.
|
|
186
|
+
|
|
187
|
+
**Ambient sound does not appear.** Run `flowe focus` interactively so the CLI can refresh the hosted manifest. Network failures degrade to silence; custom ambience also requires `flowe login`.
|
|
188
|
+
|
|
189
|
+
**Menu bar stays idle during a focus session.** Reinstall or restart the plugin with `flowe install-menubar`. SwiftBar sometimes needs a restart to re-scan newly written plugin files.
|
|
190
|
+
|
|
112
191
|
**Login redirects but never completes.** The device-grant flow waits up to 5 minutes. If the browser closes early, run `flowe login` again.
|
|
113
192
|
|
|
114
193
|
## Exit codes
|
|
@@ -117,9 +196,9 @@ Config lives at `~/.config/flowe/config.json`. Voice preference, telemetry mode,
|
|
|
117
196
|
|---|---|
|
|
118
197
|
| `0` | Success |
|
|
119
198
|
| `1` | User error (bad flag, unknown protocol family) |
|
|
120
|
-
| `2` |
|
|
121
|
-
| `3` |
|
|
122
|
-
| `4` |
|
|
199
|
+
| `2` | Auth required or expired |
|
|
200
|
+
| `3` | Session already running |
|
|
201
|
+
| `4` | Network/offline/audio failure |
|
|
123
202
|
|
|
124
203
|
## License
|
|
125
204
|
|