mindctl
v1.0.0
Published
๐ง Your Terminal Wellness OS โ AI-powered mental health toolkit for developers
Maintainers
Readme
๐ง mindctl โ Your Terminal Wellness OS
AI-powered mental health toolkit that lives where developers already spend their time โ the terminal.
Built for MINDCODE 2026 โ 72 hours to build tools that matter.
โก Quick Start
# Clone & install
git clone https://github.com/your-team/mindctl.git
cd mindctl/packages/cli
npm install
# Run
node bin/mindctl.js
# Or link globally
npm link
mindctl๐ฏ What Is This?
mindctl is a comprehensive mental health CLI that combines:
- ๐ค AI Therapy โ Evidence-based conversations using CBT, DBT, and mindfulness techniques
- ๐ญ Smart Mood Tracking โ Daily check-ins with AI-powered pattern analysis
- ๐ซ Breathing Exercises โ 6 animated techniques (box, 4-7-8, calm, panic, sleep, energize)
- ๐ง Meditation โ Timer with ASCII mandala, AI-guided sessions, 5-4-3-2-1 grounding
- ๐ Therapeutic Journaling โ Freeform, gratitude, dream, prompted โ with AI analysis
- ๐ง CBT Thought Records โ Identify cognitive distortions, reframe negative thoughts
- ๐ฅ Burnout Detection โ Analyze git commit patterns for burnout risk indicators
- ๐ Wellness Dashboard โ Sparkline charts, heatmaps, trend analysis
- ๐ค๏ธ Predictive Forecast โ AI-powered mood prediction using weighted behavioral data
- ๐ Correlation Engine โ Pearson correlation analysis between sleep, mood, habits, and activity
- ๐ Weekly AI Reports โ Narrative wellness summaries with weather metaphors
- ๐ Gamification โ XP, levels, achievements, streak tracking
- ๐ฑ Pixel Companion โ ASCII pet that evolves with your wellness journey (EggโDragon)
- ๐ก๏ธ Guardian Daemon โ Background monitoring with smart break reminders
- ๐ค Sleep Tracking โ Log, analyze, get AI-powered sleep hygiene tips
- ๐๏ธ Habit Tracker โ Build healthy habits with streaks and AI suggestions
- ๐ง Physical Wellness โ Water, posture, eye breaks, desk stretches, walk timer
- ๐จ Crisis Support โ Instant helplines, safety plan builder, grounding exercises
- ๐ Privacy-First โ All data stored locally with AES-256 encryption
๐ Commands
Core Wellness
| Command | Description |
|---------|-------------|
| mindctl check-in | ๐ญ AI-guided mood check-in |
| mindctl breathe | ๐ซ Animated breathing exercises |
| mindctl meditate | ๐ง Meditation timer & guided sessions |
| mindctl meditate ground | ๐ 5-4-3-2-1 grounding exercise |
AI-Powered
| Command | Description |
|---------|-------------|
| mindctl talk | ๐ฌ Open AI therapy conversation |
| mindctl talk vent | ๐จ Safe venting space |
| mindctl talk socratic | ๐ Socratic questioning |
| mindctl talk wisdom | โฆ AI wisdom quote |
| mindctl talk challenge | ๐ฏ Daily wellness challenge |
Cognitive Tools
| Command | Description |
|---------|-------------|
| mindctl think | ๐ง Full CBT thought record |
| mindctl think reframe | ๐ก Quick negative thought reframing |
| mindctl journal write | ๐ Freeform journaling |
| mindctl journal gratitude | ๐ Gratitude practice |
| mindctl journal dream | ๐ฎ Dream journal with AI analysis |
| mindctl journal analyze | ๐ AI pattern analysis |
Analytics
| Command | Description |
|---------|-------------|
| mindctl stats today | ๐ Today's wellness snapshot |
| mindctl stats week | ๐ Weekly dashboard |
| mindctl stats month | ๐
Monthly overview with heatmap |
| mindctl stats report | ๐ค AI-generated weekly narrative |
| mindctl burnout | ๐ฅ Git burnout risk analysis |
| mindctl forecast | ๐ค๏ธ Predictive mood forecast for tomorrow |
| mindctl insights | ๐ Behavioral correlation analysis |
| mindctl report | ๐ AI weekly wellness report |
Healthy Habits
| Command | Description |
|---------|-------------|
| mindctl habit add | โ Create a new habit |
| mindctl habit check | โ
Check off daily habits |
| mindctl sleep log | ๐ค Log last night's sleep |
| mindctl water | ๐ง Log water intake |
| mindctl stretch | ๐ช Guided desk stretches |
| mindctl eyes | ๐ 20-20-20 eye break |
| mindctl posture | ๐ง Posture check |
| mindctl walk | ๐ถ Walk timer |
System
| Command | Description |
|---------|-------------|
| mindctl daemon start | ๐ก๏ธ Start background guardian |
| mindctl crisis | ๐จ Crisis resources & helplines |
| mindctl crisis plan | ๐ Safety plan builder |
| mindctl config setup | โ๏ธ Configure MegaLLM API |
๐ค AI Integration (MegaLLM)
mindctl uses MegaLLM for intelligent features. Configure with:
mindctl config setupAI-powered features:
- Therapy conversations (CBT, DBT, motivational interviewing)
- Mood analysis and pattern detection
- Journal reflection and insight extraction
- Cognitive distortion identification
- Burnout risk assessment
- Sleep coaching
- Personalized meditation scripts
- Daily challenges and wisdom
- Weekly wellness narratives
- Predictive mood forecasting (weighted algorithm + AI)
- Behavioral correlation analysis (Pearson r + significance testing)
- Weekly narrative reports (weather-metaphor storytelling)
Safety guardrails:
- Crisis detection with automatic helpline display
- Never diagnoses medical conditions
- Reminds users it's not a replacement for professional therapy
- Warm, validating, non-judgmental tone
All features work offline with intelligent fallback responses.
๐ฑ Meet Pixel
Your terminal companion evolves with your wellness journey:
Lv 1-4: ๐ฅ Egg โ Just starting
Lv 5-14: ๐ฑ Kitten โ Building habits
Lv 15-29: ๐ธ Cat โ Consistent practice
Lv 30-49: ๐ฆ Lion โ Wellness warrior
Lv 50+: ๐ Dragon โ LegendaryPixel reacts to your activities, gets sad when you're away, and celebrates your milestones!
๐ Achievements
- ๐ First Breath โ Complete first breathing exercise
- ๐ Week Warrior โ 7-day streak
- ๐ Thought Detective โ First CBT thought record
- ๐ Vulnerability โ Write 20 journal entries
- ๐ Zen Master โ 10 meditation sessions
- ๐ Centurion โ 100 total sessions
- ...and many more!
๐ Privacy
- 100% local โ All data stored in
~/.mindctl/mindctl.db - No cloud โ No telemetry, no tracking, no data sharing
- Encrypted journals โ AES-256-GCM encryption
- Your data โ Export anytime, delete anytime
๐ ๏ธ Tech Stack
- Runtime: Node.js 18+
- CLI Framework: Commander.js
- Database: better-sqlite3
- AI: MegaLLM API (OpenAI-compatible)
- UI: Chalk, Gradient-string, Boxen, Ora, Inquirer
- Privacy: AES-256-GCM encryption
๐ Project Structure
packages/cli/
โโโ bin/mindctl.js # Entry point
โโโ src/
โ โโโ index.js # CLI command registration
โ โโโ ai.js # MegaLLM AI engine
โ โโโ db.js # SQLite database layer
โ โโโ companion.js # Pixel companion system
โ โโโ commands/
โ โ โโโ checkin.js # Mood check-in
โ โ โโโ breathe.js # Breathing exercises
โ โ โโโ journal.js # Journaling system
โ โ โโโ think.js # CBT thought records
โ โ โโโ talk.js # AI therapy chat
โ โ โโโ burnout.js # Git burnout analysis
โ โ โโโ stats.js # Analytics dashboard
โ โ โโโ meditate.js # Meditation & grounding
โ โ โโโ crisis.js # Crisis support
โ โ โโโ sleep.js # Sleep tracking
โ โ โโโ habit.js # Habit tracker
โ โ โโโ wellness.js # Physical wellness
โ โ โโโ daemon.js # Background guardian
โ โ โโโ config.js # Configuration
โ โ โโโ forecast.js # Predictive mood forecast
โ โ โโโ insights.js # Correlation engine
โ โ โโโ report.js # Weekly AI report
โ โโโ ui/
โ โโโ theme.js # Colors, gradients, charts
โ โโโ animations.js # Terminal animations
โ โโโ banner.js # ASCII art & help
โโโ package.json๐ MINDCODE 2026 Tracks Covered
| Track | Coverage | |-------|----------| | Track 1 โ Pattern Archaeologists | Git burnout detection, typing patterns | | Track 2 โ Conversation Architects | AI therapy, CBT, Socratic questioning | | Track 3 โ Interface Alchemists | Mood-reactive terminal, animations, companion | | Track 5 โ Quantified Self | Sleep, mood, habits โ all correlated by AI | | Track 6 โ Wildcard | It's a CLI! With an evolving pet! That does therapy! |
๐ฅ Team
Built with โค๏ธ for MINDCODE 2026.
๐ License
MIT โ See LICENSE for details.
"The mental health crisis won't wait. Neither will we."
