Skip to content

GilmanLab/headjack

Repository files navigation

Headjack

Headjack Banner

A macOS CLI tool for spawning isolated LLM coding agents in container environments.

Overview

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.

Features

  • 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

Installation

brew install jmgilman/tap/headjack

Quick Start

# 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/auth

Documentation

Full documentation is available at headjack.gilman.io.

Requirements

  • macOS
  • Podman (default) or Apple Virtualization
  • Git

License

MIT

About

Headjack is a small, opinionated tool for launching CLI-based coding agents in isolated environments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages