hettiger

Crannog — Git skill for Claude Code

Git community

Let coding agents work autonomously in sandboxes on macOS.

How to install Crannog

This entry records only its repository, not the path inside it, so there is no exact command to give. Open hettiger/crannog and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Crannog does

Let coding agents work autonomously in sandboxes on macOS. Each crannog is its own VM via Apple Containers, reachable only through causeways you control: git remotes for code, an allowlisting proxy for the network, optional mounts. Claude Code, Codex, OpenCode and Pi built in.

Alternatives in Git

  • Container Use — by dagger - Development environments for coding agents 3.6k ★
  • Diri — Native macOS orchestrator for coding agents — run Claude Code, Codex, Cursor, Gemini and shells in parallel ac 272 ★
  • Canopy — Ship faster with parallel Claude Code sessions — one native macOS window, git worktrees, sandboxes, auto-resum 107 ★

README

crannog

crannog lets coding agents work autonomously in sandboxes.

Like its namesake, an island dwelling in a lake, a crannog is isolated from its surroundings. Each crannog runs in its own lightweight VM. The only ways in and out are causeways you control:

  • git: code enters through plain git remotes, and the agent's commits come back the same way. Nothing else of your repository or your machine is inside.
  • a network proxy: the crannog reaches only the domains you allow, plus services on your Mac that listen on all interfaces (0.0.0.0).
  • mounts, optionally, for what you decide to share.
  • SSH, optionally, for editors and other tools on your Mac.

Claude Code, Codex, OpenCode and Pi come preinstalled, share their logins across crannogs and can call each other. They run without permission prompts: the crannog is the security boundary.

**Status:** proof of concept. Expect rough edges and breaking changes.

Requirements

  • macOS 26 or later on Apple Silicon
  • Apple Containers (container CLI, container system start has run once)
  • git

Installation

Requires [Go](https://go.dev/dl/).

curl -fsSL https://raw.githubusercontent.com/hettiger/crannog/main/install.sh | bash

This installs `crannog` and the git remote helper `git-remote-crannog` with `go install` and links both into `/usr/local/bin`, so that git clients that do not load your shell's `PATH`, such as GUI apps, find the helper, and installs the man page (`man crannog`). If `/usr/local/bin` or the man directory is not writable for you, it asks to use `sudo`, or prints the commands. It also adds one item, "crannog keychain", to your login keychain: the password of crannog's own keychain for secrets. Run it again to update. From a checkout, `make install` does the same with the checkout's code, and `make build` builds both binaries into `dist/`.

For a shorter name, add `alias cg=crannog` to your `~/.zshrc`; completion work