macOS Shell Version License Status
Turn scattered shell commands into structured workflows.
π View case study: mcamner.github.io/macos-scripts/case.html
Stop memorizing commands. Start running workflows.
install.shsupports--dry-run,--uninstall, and--yes(non-interactive)tools/scripts/install-godmode.shinstalls one bounded MQ/CodeGraph prompt for Codex and Clauderelease.shvalidates VERSION, README badge, and CHANGELOG before every releasemqlaunch doctorsupports--jsonoutput β machine-readable health reportmqlaunch selftestruns launcher smoke checks and shell syntax lintmqlaunch release-checkgates every release on arepo-signalpublish-readiness score- HAL bridge supports read-only audit, release brief, repo status, and CI status
- All
.shfiles passbash -nsyntax check β verified by CI andscripts/install-smoke.sh - GitHub Pages has smoke-test coverage via CI
This project is built for macOS with zsh/bash. The doctor command checks
the local tools used by the workflows, including git, brew, node,
python, and jq.
Install the same repo-aware /godmode prompt for Codex and Claude:
./tools/scripts/install-godmode.sh --dry-run ./tools/scripts/install-godmode.sh
The prompt reads bounded mqobsidian context and uses CodeGraph-first only when the current repository already has an index. It does not initialize, rebuild, install, or sync CodeGraph automatically.
Piping a remote script straight into bash runs code you have not seen.
Download it, read it, then run it:
curl -fsSL \ https://raw.githubusercontent.com/MCamner/macos-scripts/main/install.sh \ -o install.sh less install.sh # review what it does bash install.sh --dry-run # preview changes without modifying your system bash install.sh
Only if you already trust the source. Note: fetching the script and any checksum from the same host gives no real integrity guarantee against a compromised source β prefer Option 1 or the clone below.
curl -fsSL \
https://raw.githubusercontent.com/MCamner/macos-scripts/main/install.sh \
| bashgit clone https://github.com/MCamner/macos-scripts.git
cd macos-scripts
./install.shUninstall later with:
./install.sh --uninstall
mqlaunch doctor
This will:
- verify your environment
- check required dependencies
- validate your setup
- highlight issues with clear fixes
mqlaunch
- browse workflows via the interactive menu
- or run commands directly (
perf,system,dev,tools)
Use mqlaunch when you want a menu, and direct commands when you already know
the workflow:
mqlaunch # browse menus mqlaunch palette # fuzzy command search mqlaunch pulse # operator cockpit: six areas in one view mqlaunch pulse attention # only what needs attention mqlaunch pulse --json # the same run as an mq.pulse.v1 document mqlaunch next # the single next action, from Pulse's attention list mqlaunch system check # system health report mqlaunch workflows boot # project boot workflow mqlaunch workflows validate # workflow command-surface health check mqlaunch workflows save # save workspace snapshot mqlaunch release-check # release readiness gate mqlaunch repos status # MQ ecosystem repo status mqlaunch stack status # canonical stack truth status via mq-agent mqlaunch route report --json # show verified routing outcomes via mq-agent
Instead of:
top df -h ps aux | sort -nrk 3 | head ./tools/scripts/system-check.sh
Run:
mqlaunch perf
mqlaunch hal brief # compact repo status brief mqlaunch hal audit # publish quality + README score mqlaunch review # delegate diff review to mq-agent/mq-mcp mqlaunch fix "explain this shell error" mqlaunch srm ask "what is indexed in this repo memory?"
Most environments don't lack tools β they lack structure.
This project turns:
useful chaos β usable system
One command β structured workflows β repeatable execution
- single entrypoint:
mqlaunch - organized workflows (Dev, System, Performance, Git, Release, Tools)
- works as interactive menu and direct CLI
- built-in AI for questions, code generation, and error fixes
mqlaunch # interactive menu mqlaunch perf # performance overview mqlaunch system check # system health mqlaunch dev # dev workflows mqlaunch git # git menu mqlaunch release # release menu mqlaunch ask "your question" # AI repo assistant mqlaunch srm ask "your question" # Semantic Repository Memory assistant mqlaunch fix "error or task" # AI generates copy-paste shell commands mqlaunch atlas # AI REPL session mqlaunch review # review current diff via mq-agent -> mq-mcp mqlaunch risk-review # risk review via mq-agent -> mq-mcp mqlaunch architecture # show mq-mcp architecture memory mqlaunch repo-health # repo-signal + mq-mcp contract health mqlaunch stack status # canonical stack truth status via mq-agent mqlaunch route inspect "task" # explain the recommended model route mqlaunch mcp-status # mq-mcp status and tool count mqlaunch hal # open HAL menu mqlaunch hal "your request" # local Ollama-powered safe command router mqlaunch hal repos # list HAL-known repos mqlaunch hal raw "your request" # show parsed JSON intent mqlaunch hal doctor # summarize mqlaunch doctor --json with local HAL mqlaunch hal fix-doctor # create safe fix plan from HAL Doctor Summary mqlaunch hal session # show local HAL session memory mqlaunch hal last # show latest HAL memory item mqlaunch hal remember "note" # save a local HAL note mqlaunch hal timeline # show HAL session memory as compact timeline mqlaunch hal context # show mqobsidian context-pack status mqlaunch obsidian status # read-only mqobsidian consumer status mqlaunch obsidian inbox # read-only memory inbox listing mqlaunch obsidian views # open a manifest-defined mqobsidian view mqlaunch obsidian regenerate-views # option 13 handler; planned until producer exists mqlaunch obsidian promote --dry-run # delegate promotion preview to mq-agent mqlaunch hal brief # compact repo status brief mqlaunch hal release-brief # release readiness brief mqlaunch hal audit # publish quality + README score via repo-signal mqlaunch hal repo-status # read-only git repo status mqlaunch hal ci # GitHub Actions status mqlaunch doctor # environment check mqlaunch doctor --json # machine-readable JSON health report mqlaunch workflows validate # workflow files, docs and routing check mqlaunch selftest # smoke tests + shell lint mqlaunch markdownlint # lint Markdown in the current repo mqlaunch release-check # release readiness check mqlaunch repos wiki-status # local docs + GitHub Wiki freshness mqlaunch demo # guided demo
π Full command reference: docs/COMMANDS.md
Git safe merge is a Class C local mutating action: explicit confirmation required, no push. See docs/safety/gitmerge-safe.md.
HAL command surface: docs/hal-command-surface.md
HAL gallery: docs/hal-gallery.md
HAL overview page: docs/hal.html
HAL menu screenshot: docs/screenshots/hal-menu.png
Structured prompt browser and composer for architecture, review, research, and content work β built on your local Obsidian vault.
mq b2 # open interactive TUI mq b2 list # browse all 43 prompts mq b2 route "ta fram blueprint fΓΆr nytt API" mq b2 compose 02.11 "design the payment service"
Navigate with j/k, search with /, compose with c, quit with q.
Full reference: docs/B2_TUI.md
- Command reference β full
mqlaunchcommand surface - Runtime authority β dispatcher ownership, compatibility policy, and allowed responsibilities
- Runtime authority map β current live, compatibility, deprecated, and test-only path inventory
- Command registry β canonical inventory of top-level commands, validated against dispatch in CI
- B2 TUI reference β B2 Atlas Prompt OS terminal interface
- Terminal guide β launchers, menus, themes, and bridges
- Tools guide β helper scripts and utility workflows
- Automation guide β login, shortcuts, and workflows
- System guide β macOS tweaks, monitoring, and performance
- Skills β local maintenance skills for this repo
- Roadmap β current design boundary and next priorities
Ask questions about the repo directly in the terminal:
mqlaunch ask "how does command routing work?" mqlaunch ask "what does doctor.sh check?"
The repo assistant uses Semantic Repository Memory by default:
MQ_REPO_VECTOR_STORE_ID=vs_your_repo_store_id
Query a specific Semantic Repository Memory store with the Responses API:
mqlaunch srm inspect mqlaunch srm ask "what repo is indexed here?" SRM_VECTOR_STORE_ID=vs_your_semantic_memory_store_id \ mqlaunch srm search "vector store upload flow"
Start an interactive session with Atlas β a senior systems engineer embedded in mqlaunch:
mqlaunch atlas
atlas> why is my push being blocked?
atlas> explain the release flow
atlas> exit
Atlas answers inline without opening a browser.
Get copy-paste ready shell commands for errors and tasks:
mqlaunch fix "ERROR: CHANGELOG does not contain version 0.1.9" mqlaunch fix "write a function that checks if a port is in use" mqlaunch fix "add option 13 'View stash' to the git menu"
Output is always runnable β cat heredocs, sed, mkdir β no theory:
# Add changelog section for 0.1.9 cat >> CHANGELOG.md << 'EOF' ## [0.1.9] - 2026εΉ΄05ζ07ζ₯ ### Changed * ... EOF
Copy, paste, run. Uses repo context from the vector store.
Auto Release handles the full release cycle in one flow:
mqlaunch release
# β select option 11: Auto ReleaseSteps:
- Auto-generate changelog section from commits since last tag
- Dry run β validates VERSION, README badge, and CHANGELOG
- Live release β bumps version, tags, updates files
- Git push + push tags
- Create GitHub release
Run the release check before every push:
mqlaunch release-check
The release check includes a repo-signal publish-readiness gate. Override the
threshold with:
MQ_REPO_SIGNAL_FAIL_UNDER=14 mqlaunch release-check
Set a name that appears in every menu header:
mqlaunch nickname-set "your name"Stored in ~/.mqlaunch_nickname.
mq scan
Ranks CPU and memory offenders, highlights repeat offenders, and gives practical recommendations for what to close or restart.
mqlaunch doctor mqlaunch workflows validate
- checks required tools (git, brew, node, python, jq)
- validates repo state (branch, dirty tree, required files)
- evaluates workflow readiness (Git, Release, Dev, System)
- highlights issues and gives actionable recommendations
mqlaunch selftest
Runs launcher smoke checks, v1 compatibility checks, and shell lint for supported bash/sh scripts.
mqlaunch demo
macos-scripts/
βββ bin/ # CLI entrypoints
βββ terminal/ # menus, launchers, themes
βββ tools/ # scripts and utilities
βββ system/ # macOS helpers
βββ automation/ # workflows
βββ ai-prompts/ # AI assistant prompts
βββ ui/ # terminal UI
βββ docs/ # screenshots and documentation
βββ backups/ # workspace snapshots
- keep it simple
- structure > more tools
- optimize for real usage
- make workflows repeatable
- reduce cognitive load
See how macos-scripts is designed as a structured CLI system:
π mcamner.github.io/macos-scripts/case.html
Instead of remembering 5β10 system commands during troubleshooting:
mqlaunch system check
β full system overview in one step
Current focus is documented in ROADMAP.md. The main boundary is:
mqlaunch shows menu β delegates β mq-agent orchestrates β mq-mcp executes
Near-term priorities:
- release gate integration
- plugin-style extensions
- remote execution support
- improved onboarding
PRs and issues are welcome.
Good first contributions:
- add or improve a workflow under
automation/,tools/, orsystem/ - improve command docs in docs/COMMANDS.md
- add smoke coverage under
tests/ - polish terminal menu labels, spacing, or discoverability
Before opening a PR, run:
mqlaunch selftest mqlaunch release-check
Core scripts run locally on your machine.
AI-assisted commands (ask, fix, atlas, srm) may send prompts, selected
repository context, or error text to the configured AI provider. Do not use
AI commands with secrets, private credentials, or sensitive files unless you
understand what is being sent.
Never commit API keys, tokens, or credentials. Use environment variables or ignored local files for sensitive values.
MIT