Skip to content

Data-Wise/flow-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

flow-cli

Version Tests Docs

ZSH workflow tools designed for ADHD brains. Start working in 10 seconds. Stay motivated with visible wins.


โšก 10-Second Start

# 1. Install
antidote install data-wise/flow-cli   # or: zinit light data-wise/flow-cli

# 2. Work
work my-project    # Start session
win "Fixed bug"    # Log win โ†’ get dopamine
finish             # Done for now

That's it. Everything else is optional.

๐Ÿ“บ See it in action (click to expand)

flow-cli demo

Or try the commands yourself:

$ work my-project
๐Ÿš€ Starting session: my-project
   ๐Ÿ“ ~/projects/my-project

$ win "Fixed the login bug"
๐Ÿ”ง fix: Fixed the login bug
   โœจ Win #1 today!

$ win "Added unit tests"
๐Ÿงช test: Added unit tests
   โœจ Win #2 today!

$ yay
โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ ๐Ÿ† Today's Wins (2)                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ ๐Ÿ”ง Fixed the login bug              โ”‚
โ”‚ ๐Ÿงช Added unit tests                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
   ๐Ÿ”ฅ 2-day streak!

$ finish
โœ… Session complete (47 min, 2 wins)

๐ŸŽฏ Why This Exists

ADHD Challenge flow-cli Solution
"Where was I?" why shows your context
"What should I do?" dash shows priorities
No visible progress win logs accomplishments
Context switching pain hop instant project switch
Starting is hard work removes friction
Multiple devices flow sync keeps wins synced

๐Ÿš€ Core Commands

Start & Stop

work myproject     # Start working (creates session)
finish "done X"    # End session (optional commit)
hop other          # Quick switch (tmux)

Stay Motivated

win "Fixed the bug"     # Log accomplishment โ†’ ๐Ÿ”ง fix
win "Deployed v2"       # Log accomplishment โ†’ ๐Ÿš€ ship
yay                     # See your wins
flow goal set 3         # Daily target

Stay Oriented

dash           # What's happening?
why            # Where was I?
pick           # Choose a project

๐Ÿง  ADHD-Friendly Features

๐Ÿ† Dopamine Hits

Every win gives you a category and emoji:

  • ๐Ÿ’ป code - "Implemented feature"
  • ๐Ÿ”ง fix - "Fixed that bug"
  • ๐Ÿš€ ship - "Deployed to prod"
  • ๐Ÿ“ docs - "Updated README"
  • ๐Ÿงช test - "Added tests"

๐Ÿ”ฅ Streak Tracking

Day 1: work โ†’ ๐ŸŒฑ 1 day
Day 3: work โ†’ ๐Ÿ”ฅ 3 days - On a roll!
Day 7: work โ†’ ๐Ÿ”ฅ๐Ÿ”ฅ Strong week!

๐Ÿ“Š Dashboard

dash              # Quick overview
dash -i           # Interactive picker
dash --watch      # Live updates

โ˜๏ธ Multi-Device Sync (v4.7.0)

Sync your wins and goals across devices via iCloud:

flow sync remote init    # Set up once
flow sync                # Auto-sync daily

Works offline, syncs when connected. Zero config after setup.


๐Ÿ”Œ Smart Dispatchers

Context-aware commands that adapt to your project:

Command What it does
cc Launch Claude Code here
cc pick Pick project โ†’ Claude
cc pick opus โœจ Pick โ†’ Opus (natural order!)
dot Manage dotfiles & secrets
dot edit .zshrc Edit dotfile with preview
r test Run R package tests
qu preview Preview Quarto doc
g push Git push with safety
flow sync Sync data across devices

Each dispatcher has built-in help: cc help, dot help, r help, etc.

โœจ New in v4.8.0: Unified grammar - both cc opus pick AND cc pick opus work identically! โœจ New in v5.0.0: Dotfile management with dot dispatcher


๐Ÿ“ฆ Installation

Homebrew (Recommended for macOS)

# Tap the repository
brew tap data-wise/tap

# Install flow-cli
brew install flow-cli

That's it! Homebrew handles everything. No plugin manager needed.

Alternative: Quick Install Script

curl -fsSL https://raw.githubusercontent.com/Data-Wise/flow-cli/main/install.sh | bash

Auto-detects your plugin manager and installs accordingly.

Install specific version:

FLOW_VERSION=v4.8.0 curl -fsSL https://raw.githubusercontent.com/Data-Wise/flow-cli/main/install.sh | bash

Installation Methods Comparison

Method Command Best For
Homebrew brew tap data-wise/tap && brew install ... macOS users โญ
Quick Install curl -fsSL .../install.sh | bash Auto-detection
Antidote Add Data-Wise/flow-cli to .zsh_plugins.txt Antidote users
Zinit zinit light Data-Wise/flow-cli Zinit users
Oh-My-Zsh Clone to $ZSH_CUSTOM/plugins/ OMZ users
Manual git clone + source Full control
๐Ÿ“‹ Manual installation commands

Antidote:

echo "Data-Wise/flow-cli" >> ~/.zsh_plugins.txt
antidote update

Zinit:

zinit light Data-Wise/flow-cli

Oh-My-Zsh:

git clone https://github.com/Data-Wise/flow-cli.git \
  ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/flow-cli
# Then add 'flow-cli' to plugins=(...) in ~/.zshrc

Manual:

git clone https://github.com/Data-Wise/flow-cli.git ~/.flow-cli
echo 'source ~/.flow-cli/flow.plugin.zsh' >> ~/.zshrc

Verify Installation

flow doctor        # Health check

Uninstall

curl -fsSL https://raw.githubusercontent.com/Data-Wise/flow-cli/main/uninstall.sh | bash

โœ… Testing

Interactive dog feeding test (yes, really):

./tests/interactive-dog-feeding.zsh
  • ๐Ÿ• Feed a virtual dog by confirming commands work
  • โญ Earn 1-5 stars
  • ๐Ÿ‘€ See expected output before running

โš™๏ธ Configuration

# In .zshrc (before sourcing plugin)
export FLOW_PROJECTS_ROOT="$HOME/projects"  # Where your projects live
export FLOW_QUIET=1                         # Skip welcome message

๐Ÿ“š Documentation


๐Ÿค Philosophy

  1. Instant response - Sub-10ms, no waiting
  2. Smart defaults - Works without config
  3. Visible progress - See your wins
  4. Low friction - Start working fast

License: MIT Docs: data-wise.github.io/flow-cli