A CLI tool for orchestrating Claude Code agents through git worktrees.
Initialize the current project for claudectl. Must be run in a git repository with Claude Code installed.
Create a new git worktree for the specified task.
Arguments:
<task-name>: Name of the task/branch (e.g.,feat/new-feature)
List all active task worktrees with their status.
Remove a task worktree and clean up associated files.
Arguments:
<task-name>: Name of the task to remove
Generate or manage shell completions.
Options:
--verify: Check if completions are installed and working--install: Install completions automatically
Arguments:
[shell]: Target shell (bash, zsh, fish, powershell, elvish)
Repair shell completions and fix common configuration issues.
Options:
--force: Force repair even if completions appear working
--debug: Enable debug logging output
npm install -g claudectlShell completions are installed automatically. If they don't work:
# Verify installation
claudectl completions --verify
# Repair if needed
claudectl repair- Download the binary from releases
- Install completions manually:
# Generate completions for your shell
claudectl completions zsh > ~/.zsh_completion.d/_claudectl
# Add to your shell config
echo 'fpath+=~/.zsh_completion.d' >> ~/.zshrc
echo 'autoload -U compinit && compinit' >> ~/.zshrcClaudectl includes smart shell completions that:
- Complete command names and options
- Dynamically complete task names for
claudectl rm - Work across bash, zsh, fish, PowerShell, and elvish
If completions aren't working:
- Check installation:
claudectl completions --verify - Repair automatically:
claudectl repair - Manual repair:
npm run setup - Reinstall completely:
npm uninstall -g claudectl && npm install -g claudectl
- Completions not loading: Restart your terminal or run
exec $SHELL - Permission errors: Check that completion directories are writable
- Mixed installations: Remove old completion files before reinstalling
- Dynamic task completion not working: Ensure you're in a claudectl-initialized repository
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests with
cargo test - Submit a pull request
MIT - see LICENSE file for details.