A macOS CLI tool for spawning isolated LLM coding agents in container environments.
Headjack gives each AI coding agent its own VM-isolated container with a dedicated git worktree, enabling safe parallel development across multiple branches. Run Claude Code, Gemini CLI, or Codex CLI simultaneously on different features without conflicts.
- Isolation - Each agent runs in its own container with a separate filesystem
- Branch-based Workflows - One instance per git branch with dedicated worktrees
- Session Persistence - Attach and detach from long-running agent sessions
- Multi-agent Support - Claude Code, Gemini CLI, and Codex CLI
- Secure Authentication - Credentials stored in macOS Keychain
brew install jmgilman/tap/headjack# Authenticate your agent
hjk auth claude
# Start an agent on a feature branch
hjk run feat/auth --agent claude "Implement JWT authentication"
# List running instances
hjk ps
# Attach to an existing session
hjk attach feat/authFull documentation is available at headjack.gilman.io.
- Getting Started Tutorial - Installation and first agent
- CLI Reference - Complete command documentation
- Architecture - How Headjack works
- macOS
- Podman (default) or Apple Virtualization
- Git
