@flowe-ai/cli 0.1.7 → 0.1.8

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
@@ -58,6 +58,24 @@ flowe voice sage # set voice
58
58
 
59
59
  Three voices ship with v1: **`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
60
 
61
+ ## Use with Claude Code
62
+
63
+ `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
+
65
+ ```bash
66
+ flowe install-skill
67
+ ```
68
+
69
+ That copies `SKILL.md` into `~/.claude/skills/flowe/SKILL.md`. Restart Claude Code and the skill is live.
70
+
71
+ Don't want to use the CLI to install? Download `SKILL.md` directly:
72
+
73
+ - [github.com/flowe-ai/flowe-cli/blob/main/SKILL.md](https://github.com/flowe-ai/flowe-cli/blob/main/SKILL.md)
74
+
75
+ Drop it into `~/.claude/skills/flowe/SKILL.md` (or your project's `.claude/skills/flowe/SKILL.md`). The skill content is the same.
76
+
77
+ To opt out of auto-trigger entirely, set `FLOWE_OPT_OUT=1` in your shell or delete the file.
78
+
61
79
  ## Login (optional)
62
80
 
63
81
  ```bash
package/dist/cli.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import{a as ae,b as A,c as de,d as fe,e as F,f as me,g as ge,h as he}from"./chunk-CGFAXS4S.js";import{b as K}from"./chunk-RB3EXF6P.js";import{a as _,b as L,e as B,f as ce,g as ue,h as le,i as H,k as pe}from"./chunk-P2IV5O3T.js";import{cac as zt}from"cac";import{readFileSync as Ye}from"fs";import{dirname as Je,join as Qe}from"path";import{fileURLToPath as ze}from"url";var U="\x1B[0m",je="\x1B[1m",qe="\x1B[2m",W={oak:{r:212,g:165,b:116},oakDeep:{r:184,g:145,b:95},sage:{r:124,g:154,b:142},dusk:{r:139,g:123,b:164},charcoal:{r:45,g:45,b:45}};function V(){return process.env.NO_COLOR?!1:process.env.FORCE_COLOR?!0:!!process.stdout.isTTY}function G(e,t){return V()?`\x1B[38;2;${e.r};${e.g};${e.b}m${t}${U}`:t}var u=e=>G(W.oak,e),g=e=>G(W.oakDeep,e),be=e=>G(W.sage,e);var d=e=>V()?`${qe}${e}${U}`:e,v=e=>V()?`${je}${e}${U}`:e;var Xe=Je(ze(import.meta.url));function Ze(){try{let e=Ye(Qe(Xe,"..","package.json"),"utf-8");return JSON.parse(e).version}catch{return"0.0.0"}}var j=[" \u2572\u2502\u2571 "," \u2500\u2500\u2740\u2500\u2500"," \u2571\u2502\u2572 "];function ye(){let e=Ze();return[u(j[0]),`${u(j[1])} ${g("flowe")} ${d(`v${e}`)}`,`${u(j[2])} ${be("neural reset for AI-paired engineers")}`].join(`
2
- `)}var et=/\x1b\[[0-9;]*m/g,m={tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502",inTl:"\u250C",inTr:"\u2510",inBl:"\u2514",inBr:"\u2518"};function q(e){return e.replace(et,"").length}function C(e,t){let n=q(e);return n>=t?e:e+" ".repeat(t-n)}function S(e,t){let n=m.tl+m.h.repeat(t+2)+m.tr,r=m.bl+m.h.repeat(t+2)+m.br;return[n,...e.map(o=>`${m.v} ${C(o,t)} ${m.v}`),r]}function T(e,t){let n=q(e);if(n>=t)return e;let r=Math.floor((t-n)/2);return" ".repeat(r)+e}var tt=100,nt=8e3,we=28;function rt(e,t){if(t.length===0||e<t[0].start_ms)return-1;let n=t.length-1;if(e>=t[n].end_ms)return n;for(let r=0;r<=n;r+=1)if(e<t[r].end_ms)return r;return n}var ot=24,it=11,ve=64,Y=["\xB7","\u2219","\u2022","\u25CF"],xe=1e3,st=(()=>{let e=[],t=Math.PI*(3-Math.sqrt(5));for(let n=0;n<ve;n++){let r=n*t%(2*Math.PI),o=Math.sqrt((n+.5)/ve),a=n*.4123*2*Math.PI%(2*Math.PI);e.push({angle:r,radius:o,phaseOffset:a})}return e})();function at(e,t){return e<=1?g(t):u(t)}function ct(e,t,n=ot,r=it,o=nt){let a=[];for(let p=0;p<r;p++)a.push(new Array(n).fill(0));let i=Math.min(1,Math.max(0,e)/xe),s=Math.min(1,Math.max(0,t)/xe),c=Math.min(i,s);if(c<=0)return new Array(r).fill("");let l=(n-1)/2,f=(r-1)/2,b=(n-2)/2,ie=(r-2)/2,D=e/o*2*Math.PI;for(let p of st){let E=.5+.5*Math.sin(D+p.phaseOffset),I=1-p.radius*.35,x=E*I*c;if(x<.12)continue;let w=Math.round(l+p.radius*b*Math.cos(p.angle)),k=Math.round(f+p.radius*ie*Math.sin(p.angle));w<0||w>=n||k<0||k>=r||x>a[k][w]&&(a[k][w]=x)}let se=[],Ge=.88/Y.length;for(let p=0;p<r;p++){let E="";for(let I=0;I<n;I++){let x=a[p][I];if(x<.12){E+=" ";continue}let w=Math.min(Y.length-1,Math.floor((x-.12)/Ge));E+=at(w,Y[w])}se.push(E)}return se}var Q=60,J=50,Se=J+2;function ut(e){return`${Math.max(0,Math.floor(e))}s`}function lt(e,t,n){return` ${g("\u2740")} ${v("SESSION_ACTIVE")} ${t}s \xB7 ${e} \xB7 ${d(n)}`}function dt(e){let t=` ${m.inTl}${m.h.repeat(Se)}${m.inTr} `,n=` ${m.inBl}${m.h.repeat(Se)}${m.inBr} `,r=e.map(o=>{let a=T(o,J);return` ${m.v} ${C(a,J)} ${m.v} `});return[t,...r,n]}function ft(e){let t=e.toLowerCase().trim();return/\binhale\b/.test(t)?"INHALING . . .":/\bexhale\b/.test(t)?"EXHALING . . .":/\bhold\b/.test(t)?"HOLDING . . .":`${t.replace(/^\d+\s+/,"").trim().toUpperCase()} . . .`}function mt(e,t){let n=rt(t,e);if(n<0)return"";let r=ft(e[n].label),o=`[ ${v(u(r))} ]`;return T(o,Q)}function pt(e,t,n){let r=Math.max(0,Math.min(.999,e/t));return Math.min(n,Math.floor(r*n)+1)}function gt(e,t,n,r){let o=`${d("TIME_REMAINING")} ${u(`-${ut(e/1e3)}`)}`;if(!r)return` ${o}`;let a=pt(t,n,r),i=`${d("ROUND")} ${u(`${a} / ${r}`)}`,s=Math.floor(Q/2);return C(` ${o}`,s)+i}function ht(e,t){let n=Math.min(1,Math.max(0,e/t)),r=Math.round(n*we),o=we-r,a=`${u("\u2588".repeat(r))}${d("\u2591".repeat(o))}`,i=`${Math.round(n*100)}%`;return` ${d("PROGRESS_SEQUENCE")} [${a}] ${d(i)}`}var bt="\x1B[?25l",Re="\x1B[?25h",yt=e=>`\x1B[${e}A`,wt="\x1B[H",vt="\x1B[2K",xt="\r",St="\x1B[?1049h",$e="\x1B[?1049l",Rt=25;function Ee(e,t,n){let r=Math.max(0,n-t),o=dt(ct(t,r)),a=["",lt(e.displayName,e.duration,e.voice),"",...o,"",mt(e.cues,t),"",gt(r,t,n,e.rounds),"",ht(t,n),""];return{lines:S(a,Q)}}function Ie(e,t,n){let r="";n||(r+=yt(Rt));for(let o of t.lines)r+=`${xt}${vt}${o}
3
- `;e.write(r)}async function _e(e){let t=e.out??process.stdout,n=e.now??Date.now,r=e.startedAt??n(),o=e.duration*1e3;t.write(St+wt+bt);let a=!0,i=!1,s=()=>{if(i)return;let f=n()-r,b=Ee(e,f,o);Ie(t,b,a),a=!1};s();let c=setInterval(s,tt),l=()=>{i=!0,clearInterval(c),t.write(Re+$e),process.exit(130)};process.once("SIGINT",l);try{await e.donePromise}finally{i=!0,clearInterval(c),process.removeListener("SIGINT",l);let f=Ee(e,o,o);Ie(t,f,!1),t.write(Re+$e)}}function Te(){return!!process.stdout.isTTY&&!process.env.NO_COLOR&&!process.env.CI}var $t=54;function Z(e,t=$t){return S(e,t)}function Et(e=new Date){let t=e.getHours();return t<5?"Late night":t<12?"Good morning":t<18?"Good afternoon":t<22?"Good evening":"Late night"}function ke(e,t=new Date){let n=Et(t),r=(e??"").trim(),o=r.length>0?r:"there";return`${n}, ${o}.`}function P(e,t){let n=t?u("\u25B8 "):" ",r=t?v(u(e.label)):e.label,o=e.detail?" "+d("\xB7 "+e.detail):"";return` ${n}${r}${o}`}function It(e){let t=u("\u2713"),n=d(e.label.toUpperCase().padEnd(8)),r=u(e.value);return` ${t} ${n} ${r}`}function ee(e){return e.length===0?[]:[...e.map(It),""]}var Ce=" \u2191\u2193 to move \u23CE to select esc to cancel",_t=" \u2191\u2193 to move \u23CE to select esc to back",te=[30,45,60,90],O=[{id:"ellie",description:"warm, even pace"},{id:"sage",description:"grounded, low"},{id:"ada",description:"clear, neutral"}];function Tt(e,t=[]){return Z(["",...ee(t),` ${g("\u25C6")} you're not signed in.`,""," sign in to track your progress, build a streak,"," and personalize your sessions.","",P({label:"SIGN IN"},e===0),P({label:"MAYBE LATER",detail:"anonymous"},e===1),"",d(Ce),""])}function kt(e,t,n=[],r=te){return Z(["",...ee(n),` ${t}`," What's the cadence for today?","",...r.map((o,a)=>P({label:`${o} seconds`},a===e)),"",d(Ce),""])}function Ct(e,t=[]){return Z(["",...ee(t)," Pick your guide.","",...O.map((n,r)=>P({label:n.id,detail:n.description},r===e)),"",d(_t),""])}var N=e=>`\x1B[${e}A`,X="\x1B[2K",Pt="\x1B[?25l",Ot="\x1B[?25h";function Nt(e,t,n){let r="";n>0&&(r+=N(n));for(let o of t)r+=`\r${X}${o}
2
+ `)}var et=/\x1b\[[0-9;]*m/g,m={tl:"\u256D",tr:"\u256E",bl:"\u2570",br:"\u256F",h:"\u2500",v:"\u2502",inTl:"\u250C",inTr:"\u2510",inBl:"\u2514",inBr:"\u2518"};function q(e){return e.replace(et,"").length}function T(e,t){let n=q(e);return n>=t?e:e+" ".repeat(t-n)}function S(e,t){let n=m.tl+m.h.repeat(t+2)+m.tr,r=m.bl+m.h.repeat(t+2)+m.br;return[n,...e.map(o=>`${m.v} ${T(o,t)} ${m.v}`),r]}function k(e,t){let n=q(e);if(n>=t)return e;let r=Math.floor((t-n)/2);return" ".repeat(r)+e}var tt=100,nt=8e3,we=28;function rt(e,t){if(t.length===0||e<t[0].start_ms)return-1;let n=t.length-1;if(e>=t[n].end_ms)return n;for(let r=0;r<=n;r+=1)if(e<t[r].end_ms)return r;return n}var ot=24,it=11,ve=64,Y=["\xB7","\u2219","\u2022","\u25CF"],xe=1e3,st=(()=>{let e=[],t=Math.PI*(3-Math.sqrt(5));for(let n=0;n<ve;n++){let r=n*t%(2*Math.PI),o=Math.sqrt((n+.5)/ve),a=n*.4123*2*Math.PI%(2*Math.PI);e.push({angle:r,radius:o,phaseOffset:a})}return e})();function at(e,t){return e<=1?g(t):u(t)}function ct(e,t,n=ot,r=it,o=nt){let a=[];for(let p=0;p<r;p++)a.push(new Array(n).fill(0));let i=Math.min(1,Math.max(0,e)/xe),s=Math.min(1,Math.max(0,t)/xe),c=Math.min(i,s);if(c<=0)return new Array(r).fill("");let l=(n-1)/2,f=(r-1)/2,b=(n-2)/2,ie=(r-2)/2,D=e/o*2*Math.PI;for(let p of st){let E=.5+.5*Math.sin(D+p.phaseOffset),I=1-p.radius*.35,x=E*I*c;if(x<.12)continue;let w=Math.round(l+p.radius*b*Math.cos(p.angle)),C=Math.round(f+p.radius*ie*Math.sin(p.angle));w<0||w>=n||C<0||C>=r||x>a[C][w]&&(a[C][w]=x)}let se=[],Ge=.88/Y.length;for(let p=0;p<r;p++){let E="";for(let I=0;I<n;I++){let x=a[p][I];if(x<.12){E+=" ";continue}let w=Math.min(Y.length-1,Math.floor((x-.12)/Ge));E+=at(w,Y[w])}se.push(E)}return se}var Q=60,J=50,Se=J+2;function ut(e){return`${Math.max(0,Math.floor(e))}s`}function lt(e,t,n){return` ${g("\u2740")} ${v("SESSION_ACTIVE")} ${t}s \xB7 ${e} \xB7 ${d(n)}`}function dt(e){let t=` ${m.inTl}${m.h.repeat(Se)}${m.inTr} `,n=` ${m.inBl}${m.h.repeat(Se)}${m.inBr} `,r=e.map(o=>{let a=k(o,J);return` ${m.v} ${T(a,J)} ${m.v} `});return[t,...r,n]}function ft(e){let t=e.toLowerCase().trim();return/\binhale\b/.test(t)?"INHALING . . .":/\bexhale\b/.test(t)?"EXHALING . . .":/\bhold\b/.test(t)?"HOLDING . . .":`${t.replace(/^\d+\s+/,"").trim().toUpperCase()} . . .`}function mt(e,t){let n=rt(t,e);if(n<0)return"";let r=ft(e[n].label),o=`[ ${v(u(r))} ]`;return k(o,Q)}function pt(e,t,n){let r=Math.max(0,Math.min(.999,e/t));return Math.min(n,Math.floor(r*n)+1)}function gt(e,t,n,r){let o=`${d("TIME_REMAINING")} ${u(`-${ut(e/1e3)}`)}`;if(!r)return` ${o}`;let a=pt(t,n,r),i=`${d("ROUND")} ${u(`${a} / ${r}`)}`,s=Math.floor(Q/2);return T(` ${o}`,s)+i}function ht(e,t){let n=Math.min(1,Math.max(0,e/t)),r=Math.round(n*we),o=we-r,a=`${u("\u2588".repeat(r))}${d("\u2591".repeat(o))}`,i=`${Math.round(n*100)}%`;return` ${d("PROGRESS_SEQUENCE")} [${a}] ${d(i)}`}var bt="\x1B[?25l",Re="\x1B[?25h",yt=e=>`\x1B[${e}A`,wt="\x1B[H",vt="\x1B[2K",xt="\r",St="\x1B[?1049h",$e="\x1B[?1049l",Rt=25;function Ee(e,t,n){let r=Math.max(0,n-t),o=dt(ct(t,r)),a=["",lt(e.displayName,e.duration,e.voice),"",...o,"",mt(e.cues,t),"",gt(r,t,n,e.rounds),"",ht(t,n),""];return{lines:S(a,Q)}}function Ie(e,t,n){let r="";n||(r+=yt(Rt));for(let o of t.lines)r+=`${xt}${vt}${o}
3
+ `;e.write(r)}async function _e(e){let t=e.out??process.stdout,n=e.now??Date.now,r=e.startedAt??n(),o=e.duration*1e3;t.write(St+wt+bt);let a=!0,i=!1,s=()=>{if(i)return;let f=n()-r,b=Ee(e,f,o);Ie(t,b,a),a=!1};s();let c=setInterval(s,tt),l=()=>{i=!0,clearInterval(c),t.write(Re+$e),process.exit(130)};process.once("SIGINT",l);try{await e.donePromise}finally{i=!0,clearInterval(c),process.removeListener("SIGINT",l);let f=Ee(e,o,o);Ie(t,f,!1),t.write(Re+$e)}}function ke(){return!!process.stdout.isTTY&&!process.env.NO_COLOR&&!process.env.CI}var $t=54;function Z(e,t=$t){return S(e,t)}function Et(e=new Date){let t=e.getHours();return t<5?"Late night":t<12?"Good morning":t<18?"Good afternoon":t<22?"Good evening":"Late night"}function Ce(e,t=new Date){let n=Et(t),r=(e??"").trim(),o=r.length>0?r:"there";return`${n}, ${o}.`}function P(e,t){let n=t?u("\u25B8 "):" ",r=t?v(u(e.label)):e.label,o=e.detail?" "+d("\xB7 "+e.detail):"";return` ${n}${r}${o}`}function It(e){let t=u("\u2713"),n=d(e.label.toUpperCase().padEnd(8)),r=u(e.value);return` ${t} ${n} ${r}`}function ee(e){return e.length===0?[]:[...e.map(It),""]}var Te=" \u2191\u2193 to move \u23CE to select esc to cancel",_t=" \u2191\u2193 to move \u23CE to select esc to back",te=[30,45,60,90],O=[{id:"ellie",description:"warm, even pace"},{id:"sage",description:"grounded, low"},{id:"ada",description:"clear, neutral"}];function kt(e,t=[]){return Z(["",...ee(t),` ${g("\u25C6")} you're not signed in.`,""," sign in to track your progress, build a streak,"," and personalize your sessions.","",P({label:"SIGN IN"},e===0),P({label:"MAYBE LATER",detail:"anonymous"},e===1),"",d(Te),""])}function Ct(e,t,n=[],r=te){return Z(["",...ee(n),` ${t}`," What's the cadence for today?","",...r.map((o,a)=>P({label:`${o} seconds`},a===e)),"",d(Te),""])}function Tt(e,t=[]){return Z(["",...ee(t)," Pick your guide.","",...O.map((n,r)=>P({label:n.id,detail:n.description},r===e)),"",d(_t),""])}var N=e=>`\x1B[${e}A`,X="\x1B[2K",Pt="\x1B[?25l",Ot="\x1B[?25h";function Nt(e,t,n){let r="";n>0&&(r+=N(n));for(let o of t)r+=`\r${X}${o}
4
4
  `;if(n>t.length){let o=n-t.length;for(let a=0;a<o;a++)r+=`\r${X}
5
- `;r+=N(o)}e.write(r)}function Mt(e,t=te){let n=t.indexOf(e);if(n>=0)return n;let r=t.indexOf(60);return r>=0?r:0}function Dt(e){let t=O.findIndex(n=>n.id===e);return t>=0?t:0}async function z(e,t,n,r,o,a){let i=n,s=()=>{let c=o(i);Nt(e.out,c,t.height),t.height=c.length};for(s();;){let c=await e.keys.next();if(c.done)return{cancel:!0};let l=c.value;if(l.name==="ctrl-c")return{cancel:!0};if(l.name==="escape")return{back:!0};if(l.name==="up"||l.name==="char"&&l.char==="k"){i=(i-1+r)%r,s();continue}if(l.name==="down"||l.name==="tab"||l.name==="char"&&l.char==="j"){i=(i+1)%r,s();continue}if(l.name==="return")return{result:a(i)}}}async function Pe(e){let t=e.io??At();t.setRawMode?.(!0),t.out.write(Pt);let n={height:0};try{let r="already_authed",o=[];if(e.showAuthWedge){let i=await z(t,n,0,2,s=>Tt(s,o),s=>s===0?"signin":"later");if("cancel"in i||"back"in i)return null;i.result==="signin"?(e.signIn&&await e.signIn(),r="signed_in",o.push({label:"auth",value:"signed in"})):(r="maybe_later",o.push({label:"auth",value:"continuing as guest"}))}let a=e.availableDurations?.length?e.availableDurations:te;for(;;){let i=await z(t,n,Mt(e.defaultDuration,a),a.length,c=>kt(c,e.greeting,o,a),c=>a[c]);if("cancel"in i||"back"in i)return null;o.push({label:"cadence",value:`${i.result} seconds`});let s=await z(t,n,Dt(e.defaultVoice),O.length,c=>Ct(c,o),c=>O[c].id);if("cancel"in s)return null;if("back"in s){o.pop();continue}return{duration:i.result,voice:s.result,authChoice:r}}}finally{if(t.setRawMode?.(!1),t.out.write(Ot),e.clearOnExit&&n.height>0){let r=N(n.height);for(let o=0;o<n.height;o++)r+=`\r${X}
6
- `;r+=N(n.height),t.out.write(r)}await t.keys.return?.()}}function Oe(){return!!process.stdout.isTTY&&!!process.stdin.isTTY&&!process.env.NO_COLOR&&!process.env.CI}function At(){let e=process.stdin;return{out:process.stdout,setRawMode:n=>{e.isTTY&&e.setRawMode(n)},keys:Lt(e)}}function Lt(e){e.resume();let t=[],n=[],r=!1,o=i=>{let s=Buffer.isBuffer(i)?i:Buffer.from(i),c=ne(s);for(let l of c){let f=n.shift();f?f(l):t.push(l)}},a=()=>{for(r=!0;n.length;)n.shift()(null)};return e.on("data",o),e.once("end",a),{async next(){return t.length?{value:t.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise(i=>{n.push(s=>{i(s===null?{value:void 0,done:!0}:{value:s,done:!1})})})},async return(){return e.off("data",o),e.off("end",a),e.pause(),{value:void 0,done:!0}}}}function ne(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===3){t.push({name:"ctrl-c"}),n+=1;continue}if(r===13||r===10){t.push({name:"return"}),n+=1;continue}if(r===9){t.push({name:"tab"}),n+=1;continue}if(r===27){if(e[n+1]===91){let o=e[n+2];o===65?t.push({name:"up"}):o===66?t.push({name:"down"}):t.push({name:"escape"}),n+=3;continue}t.push({name:"escape"}),n+=1;continue}if(r>=32&&r<127){t.push({name:"char",char:String.fromCharCode(r)}),n+=1;continue}n+=1}return t}var Ne=["Most fatigue is unfinished arousal.","Calm is a learnable skill.","The exhale is where the parasympathetic switches on.","If you don't pause, your body picks the moment for you.","Rest is a posture you practice, not a place you go.","You can think yourself into anxiety. Breath is the way back.","Stillness is not a reward. It's a tool.","The shortest path to your next deep-work session is one slow exhale.","Recovery is a feature, not an absence of work.","Discomfort is data. So is calm.","Sixty seconds well spent beats six hours fighting yourself.","Your nervous system runs the show. Be a good operator.","The body is not the enemy of focus. It's the substrate.","There is no app version of slowing down.","You don't ship better code by gripping harder.","Breathe in for what is. Out for what was.","The vagus nerve doesn't care how busy your calendar is.","Forty-five seconds. Then back to the work.","The interval between thoughts is where insight lives.","The breath is the only autonomic system you can drive."];function Me(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e)):0;return Ne[t%Ne.length]}var De=60,Bt=28,Ft=18;function R(e,t){return` ${d(e.padEnd(Ft))} ${t}`}function Ae(e,t,n){return`${e} ${e===1?t:n}`}function Ht(e){let t=` ${g("\u2740")} ${v("SUMMARY_REPORT")}`,n=R("PROTOCOL",u(e.protocolDisplayName)),r=R("DURATION",u(`${e.duration}s`)),o=R("GUIDE",u(e.voice)),a=e.rounds!=null?R("ROUNDS",u(String(e.rounds))):null,i=R("TODAY",u(Ae(e.sessionsToday,"session","sessions"))),s=e.streakDays!=null?R("STREAK",u(Ae(e.streakDays,"day","days"))):null,c=u("\u2588".repeat(Bt)),l=` ${d("INTEGRATION_SYNC")} [${c}] ${u("100%")}`,f=Me(e.totalSessions),b=T(d(`"${f}"`),De);return S(["",t,"",n,r,o,a,"",i,s,"",l,"",b,""].filter(D=>D!==null),De)}function Le(e,t=process.stdout){let n=Ht(e);for(let r of n)t.write(r+`
5
+ `;r+=N(o)}e.write(r)}function Mt(e,t=te){let n=t.indexOf(e);if(n>=0)return n;let r=t.indexOf(60);return r>=0?r:0}function Dt(e){let t=O.findIndex(n=>n.id===e);return t>=0?t:0}async function z(e,t,n,r,o,a){let i=n,s=()=>{let c=o(i);Nt(e.out,c,t.height),t.height=c.length};for(s();;){let c=await e.keys.next();if(c.done)return{cancel:!0};let l=c.value;if(l.name==="ctrl-c")return{cancel:!0};if(l.name==="escape")return{back:!0};if(l.name==="up"||l.name==="char"&&l.char==="k"){i=(i-1+r)%r,s();continue}if(l.name==="down"||l.name==="tab"||l.name==="char"&&l.char==="j"){i=(i+1)%r,s();continue}if(l.name==="return")return{result:a(i)}}}async function Pe(e){let t=e.io??At();t.setRawMode?.(!0),t.out.write(Pt);let n={height:0};try{let r="already_authed",o=[];if(e.showAuthWedge){let i=await z(t,n,0,2,s=>kt(s,o),s=>s===0?"signin":"later");if("cancel"in i||"back"in i)return null;i.result==="signin"?(e.signIn&&await e.signIn(),r="signed_in",o.push({label:"auth",value:"signed in"})):(r="maybe_later",o.push({label:"auth",value:"continuing as guest"}))}let a=e.availableDurations?.length?e.availableDurations:te;for(;;){let i=await z(t,n,Mt(e.defaultDuration,a),a.length,c=>Ct(c,e.greeting,o,a),c=>a[c]);if("cancel"in i||"back"in i)return null;o.push({label:"cadence",value:`${i.result} seconds`});let s=await z(t,n,Dt(e.defaultVoice),O.length,c=>Tt(c,o),c=>O[c].id);if("cancel"in s)return null;if("back"in s){o.pop();continue}return{duration:i.result,voice:s.result,authChoice:r}}}finally{if(t.setRawMode?.(!1),t.out.write(Ot),e.clearOnExit&&n.height>0){let r=N(n.height);for(let o=0;o<n.height;o++)r+=`\r${X}
6
+ `;r+=N(n.height),t.out.write(r)}await t.keys.return?.()}}function Oe(){return!!process.stdout.isTTY&&!!process.stdin.isTTY&&!process.env.NO_COLOR&&!process.env.CI}function At(){let e=process.stdin;return{out:process.stdout,setRawMode:n=>{e.isTTY&&e.setRawMode(n)},keys:Lt(e)}}function Lt(e){e.resume();let t=[],n=[],r=!1,o=i=>{let s=Buffer.isBuffer(i)?i:Buffer.from(i),c=ne(s);for(let l of c){let f=n.shift();f?f(l):t.push(l)}},a=()=>{for(r=!0;n.length;)n.shift()(null)};return e.on("data",o),e.once("end",a),{async next(){return t.length?{value:t.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise(i=>{n.push(s=>{i(s===null?{value:void 0,done:!0}:{value:s,done:!1})})})},async return(){return e.off("data",o),e.off("end",a),e.pause(),{value:void 0,done:!0}}}}function ne(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===3){t.push({name:"ctrl-c"}),n+=1;continue}if(r===13||r===10){t.push({name:"return"}),n+=1;continue}if(r===9){t.push({name:"tab"}),n+=1;continue}if(r===27){if(e[n+1]===91){let o=e[n+2];o===65?t.push({name:"up"}):o===66?t.push({name:"down"}):t.push({name:"escape"}),n+=3;continue}t.push({name:"escape"}),n+=1;continue}if(r>=32&&r<127){t.push({name:"char",char:String.fromCharCode(r)}),n+=1;continue}n+=1}return t}var Ne=["Most fatigue is unfinished arousal.","Calm is a learnable skill.","The exhale is where the parasympathetic switches on.","If you don't pause, your body picks the moment for you.","Rest is a posture you practice, not a place you go.","You can think yourself into anxiety. Breath is the way back.","Stillness is not a reward. It's a tool.","The shortest path to your next deep-work session is one slow exhale.","Recovery is a feature, not an absence of work.","Discomfort is data. So is calm.","Sixty seconds well spent beats six hours fighting yourself.","Your nervous system runs the show. Be a good operator.","The body is not the enemy of focus. It's the substrate.","There is no app version of slowing down.","You don't ship better code by gripping harder.","Breathe in for what is. Out for what was.","The vagus nerve doesn't care how busy your calendar is.","Forty-five seconds. Then back to the work.","The interval between thoughts is where insight lives.","The breath is the only autonomic system you can drive."];function Me(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e)):0;return Ne[t%Ne.length]}var De=60,Bt=28,Ft=18;function R(e,t){return` ${d(e.padEnd(Ft))} ${t}`}function Ae(e,t,n){return`${e} ${e===1?t:n}`}function Ht(e){let t=` ${g("\u2740")} ${v("SUMMARY_REPORT")}`,n=R("PROTOCOL",u(e.protocolDisplayName)),r=R("DURATION",u(`${e.duration}s`)),o=R("GUIDE",u(e.voice)),a=e.rounds!=null?R("ROUNDS",u(String(e.rounds))):null,i=R("TODAY",u(Ae(e.sessionsToday,"session","sessions"))),s=e.streakDays!=null?R("STREAK",u(Ae(e.streakDays,"day","days"))):null,c=u("\u2588".repeat(Bt)),l=` ${d("INTEGRATION_SYNC")} [${c}] ${u("100%")}`,f=Me(e.totalSessions),b=k(d(`"${f}"`),De);return S(["",t,"",n,r,o,a,"",i,s,"",l,"",b,""].filter(D=>D!==null),De)}function Le(e,t=process.stdout){let n=Ht(e);for(let r of n)t.write(r+`
7
7
  `);return n.length}function Kt(){let e=g("\u25C6"),t=`[${u("r")}] repeat`,n=`[${u("n")}] new session`,r=`[${u("x")}] exit`;return` ${e} ${t} ${d("\xB7")} ${n} ${d("\xB7")} ${r}`}var Be=2;async function Fe(e){e.setRawMode?.(!0),e.out.write(`
8
8
  `+Kt()+`
9
9
  `);try{for(;;){let t=await e.keys.next();if(t.done)return"exit";let n=t.value;if(n.name==="ctrl-c"||n.name==="escape")return"exit";if(n.name==="char"){let r=(n.char??"").toLowerCase();if(r==="r")return"repeat";if(r==="n")return"new";if(r==="x"||r==="q")return"exit"}}}finally{e.setRawMode?.(!1),await e.keys.return?.()}}function He(){let e=process.stdin;return{out:process.stdout,setRawMode:n=>{e.isTTY&&e.setRawMode(n)},keys:Ut(e)}}function Ut(e){e.resume();let t=[],n=[],r=!1,o=i=>{let s=Buffer.isBuffer(i)?i:Buffer.from(i),c=ne(s);for(let l of c){let f=n.shift();f?f(l):t.push(l)}},a=()=>{for(r=!0;n.length;)n.shift()(null)};return e.on("data",o),e.once("end",a),{async next(){return t.length?{value:t.shift(),done:!1}:r?{value:void 0,done:!0}:new Promise(i=>{n.push(s=>{i(s===null?{value:void 0,done:!0}:{value:s,done:!1})})})},async return(){return e.off("data",o),e.off("end",a),e.pause(),{value:void 0,done:!0}}}}import{existsSync as Wt,mkdirSync as Vt,writeFileSync as Gt}from"fs";import{homedir as jt,platform as qt}from"os";import{join as M}from"path";var Ke="welcomed";function re(){let e=jt();return qt()==="win32"?M(e,"AppData","Roaming","flowe"):M(e,".config","flowe")}function Yt(){return["","flowe-cli installed.","","Try it:"," flowe reset interactive picker (pick duration + protocol)"," flowe reset 60 quick 60-second reset, random protocol"," flowe protocols list all 12 protocols","","Docs: https://cli.flowe.ai/docs/",""].join(`
10
10
  `)}function Jt(e=re()){return Wt(M(e,Ke))}function Qt(e=re()){Vt(e,{recursive:!0}),Gt(M(e,Ke),"","utf-8")}function Ue(e=process.stderr){try{let t=re();if(Jt(t))return;e.write(Yt()),Qt(t)}catch{}}var We=e=>`\x1B[${e}A`,Xt="\x1B[2K";function Zt(e,t){if(t<=0)return;let n=We(t);for(let r=0;r<t;r++)n+=`\r${Xt}
11
11
  `;n+=We(t),e.write(n)}function en(e){switch(e){case"auth_required":return 2;case"agent_busy":return 3;case"network_error":case"offline":return 4;default:return 1}}function $(e){let t=e,n=t?.message||String(e);process.stderr.write(`flowe: ${n}
12
- `),process.exit(en(t?.code))}function oe(e){let t=typeof e=="number"?e:parseInt(e,10);if(t===30||t===45||t===60||t===90)return t;throw Object.assign(new Error("duration must be 30, 45, 60, or 90"),{code:"invalid_duration"})}function tn(e){if(A.includes(e))return e;throw Object.assign(new Error(`type must be one of: ${A.join(", ")}`),{code:"invalid_duration"})}function nn(e){if(e==="sage"||e==="ada"||e==="ellie")return e;throw Object.assign(new Error("voice must be sage, ada, or ellie"),{code:"invalid_duration"})}function rn(e){let t=fe();if(t.includes(e))return e;throw Object.assign(new Error(`unknown protocol "${e}" \u2014 available: ${t.join(", ")}`),{code:"invalid_duration"})}async function on(e=2e3){let t=K().catch(()=>null),n=new Promise(r=>setTimeout(()=>r(null),e));return Promise.race([t,n])}async function Ve(e,t){let n=_(),r=await H();r&&!n.user_first_name&&(await on(),n=_());let o=ke(n.user_first_name),a=60;if(e)try{a=oe(e)}catch{}let i=t?F(t):void 0,s=await Pe({defaultDuration:a,defaultVoice:n.voice,greeting:o,showAuthWedge:!r,availableDurations:i,signIn:async()=>{let{runLogin:c}=await import("./login-FRWDEJ6B.js");await c(),await K()},clearOnExit:!0});return s?{duration:s.duration,voice:s.voice,family:t}:null}async function sn(e,t){if(t){let r=F(t);if(e===void 0&&r.length===1)return{duration:r[0],family:t};if(e===void 0)throw Object.assign(new Error(`protocol "${t}" supports multiple durations (${r.join(", ")}s) \u2014 pass one as: flowe reset <duration> --protocol ${t}`),{code:"invalid_duration"});let o=oe(e);if(!r.includes(o))throw Object.assign(new Error(`protocol "${t}" has no ${o}s variant \u2014 available: ${r.join(", ")}s`),{code:"invalid_duration"});return{duration:o,family:t}}return{duration:oe(e??60)}}async function an(){Ue();let e=zt("flowe");e.command("reset [duration]","Run a micro-reset (30, 45, 60, or 90 seconds)").option("--trigger <trigger>","why this reset fired",{default:"user_requested"}).option("-q, --quick","skip the interactive picker and run with the given duration").option("--protocol <family>","restrict to a specific protocol family (e.g., physiological_sigh, box_breath)").action(async(t,n)=>{try{let r=n.trigger,o=n.protocol?rn(n.protocol):void 0,i=!n.quick&&Oe()?await Ve(t,o):await sn(t,o);if(!i)return;for(;;){i.voice&&L(i.voice);let s=await ge(i.duration,r,i.family),c=me();if(Te()&&c){await _e({duration:s.duration_seconds,voice:s.voice,displayName:s.protocol_display_name,cues:s.cues,rounds:s.rounds,donePromise:c}),B();let l=Le({protocolDisplayName:s.protocol_display_name,duration:s.duration_seconds,voice:s.voice,rounds:s.rounds,sessionsToday:ce(),totalSessions:le(),streakDays:ue()});if(n.quick)return;let f=await Fe(He());if(f==="exit")return;if(Zt(process.stdout,l+Be),f==="repeat")continue;if(f==="new"){let b=await Ve(void 0,i.family);if(!b)return;i=b;continue}return}process.stdout.write(`${s.message_for_user}
12
+ `),process.exit(en(t?.code))}function oe(e){let t=typeof e=="number"?e:parseInt(e,10);if(t===30||t===45||t===60||t===90)return t;throw Object.assign(new Error("duration must be 30, 45, 60, or 90"),{code:"invalid_duration"})}function tn(e){if(A.includes(e))return e;throw Object.assign(new Error(`type must be one of: ${A.join(", ")}`),{code:"invalid_duration"})}function nn(e){if(e==="sage"||e==="ada"||e==="ellie")return e;throw Object.assign(new Error("voice must be sage, ada, or ellie"),{code:"invalid_duration"})}function rn(e){let t=fe();if(t.includes(e))return e;throw Object.assign(new Error(`unknown protocol "${e}" \u2014 available: ${t.join(", ")}`),{code:"invalid_duration"})}async function on(e=2e3){let t=K().catch(()=>null),n=new Promise(r=>setTimeout(()=>r(null),e));return Promise.race([t,n])}async function Ve(e,t){let n=_(),r=await H();r&&!n.user_first_name&&(await on(),n=_());let o=Ce(n.user_first_name),a=60;if(e)try{a=oe(e)}catch{}let i=t?F(t):void 0,s=await Pe({defaultDuration:a,defaultVoice:n.voice,greeting:o,showAuthWedge:!r,availableDurations:i,signIn:async()=>{let{runLogin:c}=await import("./login-FRWDEJ6B.js");await c(),await K()},clearOnExit:!0});return s?{duration:s.duration,voice:s.voice,family:t}:null}async function sn(e,t){if(t){let r=F(t);if(e===void 0&&r.length===1)return{duration:r[0],family:t};if(e===void 0)throw Object.assign(new Error(`protocol "${t}" supports multiple durations (${r.join(", ")}s) \u2014 pass one as: flowe reset <duration> --protocol ${t}`),{code:"invalid_duration"});let o=oe(e);if(!r.includes(o))throw Object.assign(new Error(`protocol "${t}" has no ${o}s variant \u2014 available: ${r.join(", ")}s`),{code:"invalid_duration"});return{duration:o,family:t}}return{duration:oe(e??60)}}async function an(){Ue();let e=zt("flowe");e.command("reset [duration]","Run a micro-reset (30, 45, 60, or 90 seconds)").option("--trigger <trigger>","why this reset fired",{default:"user_requested"}).option("-q, --quick","skip the interactive picker and run with the given duration").option("--protocol <family>","restrict to a specific protocol family (e.g., physiological_sigh, box_breath)").action(async(t,n)=>{try{let r=n.trigger,o=n.protocol?rn(n.protocol):void 0,i=!n.quick&&Oe()?await Ve(t,o):await sn(t,o);if(!i)return;for(;;){i.voice&&L(i.voice);let s=await ge(i.duration,r,i.family),c=me();if(ke()&&c){await _e({duration:s.duration_seconds,voice:s.voice,displayName:s.protocol_display_name,cues:s.cues,rounds:s.rounds,donePromise:c}),B();let l=Le({protocolDisplayName:s.protocol_display_name,duration:s.duration_seconds,voice:s.voice,rounds:s.rounds,sessionsToday:ce(),totalSessions:le(),streakDays:ue()});if(n.quick)return;let f=await Fe(He());if(f==="exit")return;if(Zt(process.stdout,l+Be),f==="repeat")continue;if(f==="new"){let b=await Ve(void 0,i.family);if(!b)return;i=b;continue}return}process.stdout.write(`${s.message_for_user}
13
13
  `);for(let l of s.cues)process.stdout.write(` \xB7 ${l.label}
14
14
  `);c&&(await c,B());return}}catch(r){$(r)}}),e.command("nsdr [type]","Start an NSDR session (default: quick_reset; or pass a Core 8 type)").action(async t=>{try{let n=t?tn(t):"quick_reset",r=await he(n);process.stdout.write(`${r.message_for_user}
15
15
  `)}catch(n){$(n)}}),e.command("status","Show config and queue state").action(()=>{let t=_();process.stdout.write(ye()+`
@@ -29,4 +29,9 @@ available: sage, ada, ellie
29
29
  `)}),e.command("install-mcp","Print MCP config snippet for Claude Code / Cursor").action(()=>{let t={mcpServers:{flowe:{command:"flowe",args:["mcp"]}}};process.stdout.write(JSON.stringify(t,null,2)+`
30
30
  `),process.stdout.write(`
31
31
  # add the above to ~/.config/claude/mcp.json (or your client's equivalent)
32
+ `)}),e.command("install-skill","Install the Claude Code skill so Claude proactively triggers resets during long thinking pauses").option("--print","print SKILL.md to stdout instead of writing a file").option("--force","overwrite an existing skill file").option("--target <path>","write to a custom path instead of ~/.claude/skills/flowe/SKILL.md").action(async t=>{let{installSkill:n,readBundledSkill:r,defaultTarget:o}=await import("./install-skill-5UWJTC26.js");if(t.print){process.stdout.write(r());return}let a=n({target:t.target,force:t.force});a.written||(process.stderr.write(`skill already installed at ${a.target}
33
+ use --force to overwrite, or --target <path> to install elsewhere.
34
+ `),process.exit(0)),process.stdout.write(`installed: ${a.target}
35
+ `),t.target||process.stdout.write(`default location: ${o()}
36
+ restart Claude Code (or open a new session) and Claude will fire flowe resets during long thinking pauses.
32
37
  `)}),e.command("mcp","Run the MCP stdio server (used by Claude Code / Cursor, not humans)").action(async()=>{let{runMcpServer:t}=await import("./mcp-server.js");await t()}),e.help(),e.version(ae());try{e.parse(process.argv,{run:!1}),await e.runMatchedCommand()}catch(t){$(t)}}an().catch($);
@@ -0,0 +1 @@
1
+ import{readFileSync as f,mkdirSync as c,writeFileSync as d,existsSync as o}from"fs";import{homedir as g}from"os";import{dirname as s,join as a,resolve as m}from"path";import{fileURLToPath as S}from"url";var u="flowe",r="SKILL.md";function p(e=import.meta.url){let t=s(S(e));for(let n=0;n<4;n++){let i=a(t,"skills",u,r);if(o(i))return i;let l=m(t,"..");if(l===t)break;t=l}throw Object.assign(new Error(`bundled ${r} not found relative to ${e}`),{code:"install_failed"})}function k(e=g()){return a(e,".claude","skills",u,r)}function x(){return f(p(),"utf-8")}function E(e={}){let t=e.target??k();return o(t)&&!e.force?{written:!1,target:t,existing:!0}:(c(s(t),{recursive:!0}),d(t,x(),"utf-8"),{written:!0,target:t})}export{p as bundledSkillPath,k as defaultTarget,E as installSkill,x as readBundledSkill};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowe-ai/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Neural resets for engineers using AI coding assistants.",
5
5
  "license": "MIT",
6
6
  "author": "flowe.ai",
@@ -34,6 +34,7 @@
34
34
  "dist/",
35
35
  "audio/",
36
36
  "scripts/preinstall.js",
37
+ "skills/",
37
38
  "protocols.json",
38
39
  "README.md",
39
40
  "LICENSE"
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: flowe
3
+ description: Run a breath-led neural reset (flowe-cli) during long agent thinking pauses to keep the user's focus and working memory from draining. Picks the protocol family based on observed signals about the user's recent state (eye strain, frustration, cognitive overload, postural tension, wind-down). Auto-trigger when you predict >30s of thinking, building, editing, or tool-call wait.
4
+ ---
5
+
6
+ # flowe
7
+
8
+ You have access to the `flowe` CLI for running short, breath-led neural resets in the user's terminal. One Bash invocation triggers a full session with audio playback. Reset durations are 30s, 45s, 60s, or 90s.
9
+
10
+ ## When to invoke
11
+
12
+ Proactively run `flowe reset` via the Bash tool when ALL of these hold:
13
+
14
+ - You anticipate a thinking, tool-call, build, or multi-file-edit pause **>30 seconds**
15
+ - You haven't already triggered a reset in the **last 5 minutes** in this session
16
+ - You're not in the middle of a destructive or time-sensitive operation (deploys, migrations, irreversible writes, anything where the user needs to watch output)
17
+ - The user hasn't said "no resets" or set `FLOWE_OPT_OUT=1`
18
+
19
+ Tell the user one short line **before** running. Example: `"Long compile incoming — running a 30s palming reset for you."` Don't ask permission. The user opted in by installing this skill.
20
+
21
+ ## Picking the protocol family
22
+
23
+ `flowe` ships 11 protocol families. Pick the one that best matches what you've observed about the user's recent state. Pass it via `--protocol`:
24
+
25
+ | Recent signals from the user | `--protocol` | Why |
26
+ |---|---|---|
27
+ | Frustrated, stuck on errors, irritation rising in messages | `physiological_sigh` | Quickest parasympathetic switch; resets the stress response in seconds |
28
+ | Long debugging session, lots of stack-trace reading | `quick_palming` (30s) / `palming` (60s) / `progressive_palming` (90s) | Eye rest, darkness, lowers visual load |
29
+ | Stressed, anxious, terse messages, tight tone | `box_breath` (45s, 60s) / `extended_box` (90s) | Regulates breath cadence; calms nervous system |
30
+ | Cognitive overload, can't pick a path forward, thrashing | `body_scan` (60s) / `full_sensory` (90s, "5-4-3-2-1" grounding) | Reconnects with the body, defragments attention |
31
+ | Long sit, no movement, postural tightness implied | `neck_rotation` (45s) / `grounded_feet` (45s) | Gentle physical reset without leaving the chair |
32
+ | Reading a hard error stack, eyes scanning rapidly | `eye_rotation` (30s) | Resets eye muscles |
33
+ | End of a long focus block, winding down | `progressive_palming` (90s) | Longer, phased relaxation |
34
+ | **No specific signal observed** | omit `--protocol` entirely | flowe picks a random protocol that fits the duration |
35
+
36
+ When in doubt, omit `--protocol` and let flowe choose.
37
+
38
+ ## Picking duration
39
+
40
+ | Predicted pause | Command shape |
41
+ |---|---|
42
+ | 30–45s | `flowe reset 30 --quick [--protocol X]` |
43
+ | 45–75s | `flowe reset 45 --quick [--protocol X]` |
44
+ | 75–120s | `flowe reset 60 --quick [--protocol X]` |
45
+ | 120s+ | `flowe reset 90 --quick [--protocol X]` |
46
+
47
+ `--quick` is **required**. Without it, `flowe` opens an interactive post-session menu and your session blocks waiting for keyboard input.
48
+
49
+ ## Examples
50
+
51
+ ```bash
52
+ # Long compile, user has been frustrated → physiological sigh, 30s
53
+ flowe reset 30 --quick --protocol physiological_sigh
54
+
55
+ # Multi-file refactor incoming (~75s), user was deep-debugging earlier → palming
56
+ flowe reset 60 --quick --protocol palming
57
+
58
+ # Big test run (~2min), no specific signal → let flowe pick
59
+ flowe reset 90 --quick
60
+
61
+ # Quick tool-call wait (~35s), eyes scanning a stack trace → eye rotation
62
+ flowe reset 30 --quick --protocol eye_rotation
63
+ ```
64
+
65
+ ## Setup
66
+
67
+ If `which flowe` returns nothing, install once:
68
+
69
+ ```bash
70
+ npm install -g @flowe-ai/cli
71
+ flowe voice ellie
72
+ ```
73
+
74
+ Voice options: `sage`, `ada`, `ellie`. Let the user pick if they ask. Default is `ellie`.
75
+
76
+ ## Cooldowns and limits
77
+
78
+ - **Minimum 5 minutes between resets.** Resetting more often than that defeats the purpose; the user needs time to actually use the focus you just gave them back.
79
+ - **Skip resets in Q&A / code review conversations.** No agent waits = no reason to fire.
80
+ - **Skip resets during the first 60 seconds of a new conversation.** The user is still ramping in; let them.
81
+
82
+ ## Tuning
83
+
84
+ To disable auto-trigger entirely, set `FLOWE_OPT_OUT=1` in your shell environment.
85
+
86
+ To change cadence, durations, or behavior, edit this file directly at `~/.claude/skills/flowe/SKILL.md`. Your changes won't be overwritten unless you re-run `flowe install-skill --force`.