Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Claude Flow wrapper with tmux and git worktree integration
Jump to setup instructionsFetched from the repository for this visit.
A convenient command-line tool for launching Claude Flow SPARC sessions with integrated git worktree management and tmux support.
--window optionMake the script executable:
chmod +x cf
Place it in your PATH:
# Example: copy to a directory in your PATH
cp cf ~/.local/bin/cf
# or
sudo cp cf /usr/local/bin/cf
Run it - it will automatically initialize claude-flow if needed:
cf
# Interactive mode - opens editor for prompt
cf
# Interactive mode with NAME (uses config defaults)
cf auth
# Direct prompt mode
cf auth --prompt "Build a REST API for user authentication"
# Show help
cf --help
# Create feature branch and worktree (explicit)
cf --worktree auth --prompt "Implement user authentication"
# With config enabled (CF_ENABLE_WORKTREE="true"), use NAME directly
cf auth --prompt "Implement user authentication"
# This creates:
# - Branch: feature/auth
# - Worktree: ./worktrees/auth/
# - Runs claude-flow in the worktree directory
# Run in new tmux window (explicit)
cf --window api --prompt "Build REST API endpoints"
# With config enabled (CF_ENABLE_TMUX="true"), use NAME directly
cf api --prompt "Build REST API endpoints"
# Combine with worktree
cf --window auth --worktree auth --prompt "User authentication system"
Create a configuration file at one of these locations:
./.cf/config (project-specific)~/.cf/config (user-specific)~/.config/cf/config (XDG config directory)# ~/.cf/config
CF_EDITOR="code" # Override default editor
CF_WORKTREE_DIR="./workspace" # Change worktree location
CF_BRANCH_PREFIX="feat/" # Change branch prefix
CF_ENABLE_TMUX="true" # Enable tmux integration by default
CF_ENABLE_WORKTREE="true" # Enable worktree integration by default
CF_BASE_BRANCH="main" # Base branch for new worktrees (default: current HEAD)
The tool respects your editor preference in this order:
CF_EDITOR from config file$EDITOR environment variablevi (fallback)# Set editor via environment variable
export EDITOR=nano
# Or via config file
echo 'CF_EDITOR="code --wait"' > ~/.cf/config
# Start a new feature (explicit flags)
cf --worktree user-profile --window profile --prompt "Build user profile management"
# With config enabled (CF_ENABLE_TMUX="true" CF_ENABLE_WORKTREE="true")
cf user-profile --prompt "Build user profile management"
# Quick iteration (interactive)
cf user-profile
# Code review preparation
cf review --prompt "Prepare code for review, add tests and documentation"
# Architecture planning
cf architecture --prompt "Design microservices architecture for e-commerce platform"
# Debugging
cf bugfix --prompt "Fix authentication timeout issue"
# Documentation
cf docs --prompt "Generate API documentation for user endpoints"
# Testing
cf tests --prompt "Create comprehensive test suite for payment processing"
"command not found: cf"
chmod +x cf"❌ Missing required dependencies"
--window option"❌ Error: Failed to open editor"
export EDITOR=nano"❌ Not in a tmux session"
tmux--window option"❌ Not in a git repository"
git init--worktree optionConfig file not loading
chmod 644 ~/.cf/configEditor not working
CF_EDITOR="code --wait"# Use custom worktree location
echo 'CF_WORKTREE_DIR="../features"' > .cf/config
echo 'CF_ENABLE_WORKTREE="true"' >> .cf/config
cf api --prompt "Build API endpoints"
# Creates: ../features/api/
# Custom branch prefix
echo 'CF_BRANCH_PREFIX="task/"' > .cf/config
echo 'CF_ENABLE_WORKTREE="true"' >> .cf/config
cf 123 --prompt "Implement task #123"
# Creates: task/123 branch
# Specify base branch for new worktrees
echo 'CF_BASE_BRANCH="develop"' >> .cf/config
cf feature-x --prompt "New feature"
# Creates: feature/feature-x branch from develop
# Use with different editors
CF_EDITOR="vim" cf quick-edit
CF_EDITOR="emacs" cf emacs-session
CF_EDITOR="code --wait" cf vscode-session
When you enable the integration options in your config file, the workflow becomes much simpler:
# ~/.cf/config
CF_ENABLE_TMUX="true"
CF_ENABLE_WORKTREE="true"
CF_EDITOR="code --wait"
CF_WORKTREE_DIR="./features"
CF_BASE_BRANCH="main"
With this configuration:
# Simple NAME-based workflow
cf auth # Interactive: tmux window + worktree
cf auth --prompt "Build auth system" # Direct: tmux window + worktree + prompt
# Still supports explicit overrides
cf --window special-auth auth # Uses "special-auth" for tmux window
cf --worktree different-auth auth # Uses "different-auth" for worktree
claude-flow sparc with the promptThis tool is designed to be simple and focused. When contributing:
MIT License - Feel free to use and modify as needed.
GitHub checked 15h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.