/harlan-agent-kit:hogwild [task on Hogwild]from harlan-agent-kit
Operates the Hogwild home server: SSH host selection, sudo account, running services, repos, routes, configs, and tool installation. Use for any task touching Hogwild over SSH.
Ships in harlan-agent-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Hogwild is one Ubuntu host on the LAN and the tailnet. It runs the Harlan GitHub Agent, the GitHub runner supervisor, three public sites behind one Cloudflare tunnel, AdGuard DNS, and Jellyfin.
hw CLIContext sync installs hw in ~/.local/bin for noninteractive shells.
It runs the installed planner and picks the correct account.
Run pnpm sync:context if the command is missing.
If sync is unavailable, run node --experimental-strip-types scripts/hw.ts from this Skill directory.
hw status # host, services, containers, Agent unit
hw logs agent -n 100 # or runner, caddy, tunnel, adguard, jellyfin, docker, status, dragon
hw install fd-find --link fd=fdfind # apt as admin, link as the Agent
hw caddy check # or reload: validate first, then reload
hw runners # live runners.conf against the repo copy, job containers
hw pending # open host items from hogwild/README.md
hw run admin 'sudo iptables -S DOCKER-USER'
hw run agent 'ls ~/.local/bin'
hw --help lists every command. Reach for ssh directly only when hw run does not fit.
| Command | Account | Use it for |
|---|---|---|
ssh hogwild | harlan | Agent state, config, checkouts under ~/pkg and ~/sites, systemctl --user, tool links in ~/.local/bin. No sudo, no docker. |
ssh hogwild-admin | harlan-admin | sudo, apt, docker, system systemctl, /etc, /opt, /var/lib. Cannot read /home/harlan. |
If the task needs both, run two commands. Never grant harlan sudo or docker. Never SSH as root. The Agent runs public issue text under harlan; root there is the attack path the split closed on 2026-09-11.
The desktop zsh aliases hogwild, hogwild-lan, hogwild-admin, hogwild-admin-lan use the same key ~/.ssh/id_ed25519_hogwild.
| Service | Unit | Account | Listens | Source |
|---|---|---|---|---|
| Harlan GitHub Agent | harlan-github-agent.service (user unit, linger) | harlan | 127.0.0.1:3210 dashboard, :3211 webhook | ~/.local/share/harlan-github-agent/service |
| GitHub runner supervisor | hogwild-github-runner.service | github-runner | none; one Docker container per job | /var/lib/github-runner |
| Status site | hogwild-status.service | hogwild-status | 127.0.0.1:9100 | /opt/hogwild-status/current |
| Dragon deck | chasing-the-ai-dragon.service | dragon-deck | 127.0.0.1:3031 | /opt/chasing-the-ai-dragon/current |
| Caddy | caddy.service | caddy | 127.0.0.1:8080 | /etc/caddy/Caddyfile, routes in /etc/caddy/routes/*.caddy |
| Cloudflare tunnel | cloudflared.service | cloudflared | outbound only | /etc/cloudflared/config.yml |
| AdGuard Home | adguardhome.service | adguardhome | DNS :53 on the LAN and tailnet addresses, admin :5380 on every interface, ufw blocks it from the LAN | /opt/AdGuardHome, config in /var/lib/adguardhome |
| Jellyfin | jellyfin.service | jellyfin | :8096, ufw allows the LAN and the tailnet | /srv/jellyfin |
| Docker | docker.service | root | published ports bind loopback | /etc/docker/daemon.json, DOCKER-USER rules from hogwild-docker-user.service |
Public routes go internet, Cloudflare tunnel, Caddy :8080, then the loopback port above:
hogwild.harlanzw.com, the status sitedragon.harlanzw.com, the deckagent.harlanzw.com, the Agent dashboard behind Basic auth; /webhook reaches the signed webhook listener| Part | Repo | Local checkout | Deploy |
|---|---|---|---|
| Agent service code | harlan-zw/harlan-agent-kit packages/harlan-github-agent | ~/pkg/harlan-agent-kit | pnpm service:hogwild:update from the repo root |
| Agent context, worktrunk, env files | same repo, scripts/ | same | pnpm sync:context:hogwild, pnpm service:hogwild:sync-env, pnpm service:hogwild:sync-worktrunk |
| Agent config | not in git | hogwild:~/.config/harlan-github-agent/config.yml | edit, then request durable Restart |
| Agent state | not in git | hogwild:~/.local/share/harlan-github-agent/state.sqlite, journal.sqlite, worktrees/ | back up before a migration |
| Runner supervisor, runners.conf, Dockerfile, host hardening | harlan-zw/hogwild-gh-runner (private) github-runner/ | ~/pkg/hogwild-gh-runner | install steps in its README |
| Host security layout, Docker rules, pending items | same repo, hogwild/ | same | hogwild/README.md |
| Status site | harlan-zw/hogwild.harlanzw.com | ~/pkg/hogwild.harlanzw.com | GitHub Actions deploy job to hogwild-deploy |
| Caddy routes | scripts/30-agent.caddy for the agent route; others live only on the host | sudo systemctl reload caddy |
A deploy reads ~/.config/harlan-github-agent/config.yml with the new revision before it restarts anything. If the new revision rejects the file, the deploy stops and the running revision keeps serving. Run the same check by hand with harlan-github-agent check-config --config <path>.
The live runners.conf is /var/lib/github-runner/config/runners.conf. Change it in the repo first, then install it.
harlan holds a primary checkout for every repository the Agent works on. They live under /home/harlan/pkg and /home/harlan/sites and must stay clean on main. The Agent creates its worktrees under ~/.local/share/harlan-github-agent/worktrees/.
Not every checkout is mapped. config.yml lists the active repositories and the observe-only external_repositories. Read the file for the current list: ssh hogwild 'rg -n "^ - github:" ~/.config/harlan-github-agent/config.yml'.
If a new repository joins, clone it as harlan into the matching directory, then add a repositories entry and request durable Restart.
Before email work, read email-usage. Before browser work, read browser. Discover accounts on Hogwild. Its Himalaya configuration intentionally has no send backend. Desktop Chrome profiles do not imply signed-in sessions on Hogwild. Never copy desktop credentials or browser sessions to the server.
ssh hogwild-admin 'sudo apt-get install -y <package>'.ssh hogwild 'ln -sf "$(command -v fdfind)" ~/.local/bin/fd'.hogwild-gh-runner/hogwild/README.md.Tools in hogwild:~/.local/bin today: node, pnpm, bun, uv, gh, wt, rg, fd, ripast, opencode, codex, wrangler, cf, sentry-cli, nuxtseo, himalaya, dev-browser. No claude; the Agent uses opencode.
Prefer the control CLI from the desktop over raw systemctl:
harlan-github-agent control status
harlan-github-agent control pause
harlan-github-agent control restart
If a change needs the process to pick up new groups or a new Node, restart the user manager as admin. That kills in-flight Agent work, so pause first and get Harlan's say so:
ssh hogwild-admin 'sudo systemctl restart [email protected]'
Use hw logs agent -n 200 for unit logs.
The launcher reads the default configuration and password file.
Desktop reads ~/.config/harlan-github-agent/control-url.
Context sync creates it with the Hogwild URL if missing.
It preserves an existing target. Hogwild uses loopback.
Explicit connection arguments win.
Use the Service Skill for connection recovery and Review reads.
For routine configuration changes, request durable Restart.
Never restart the user unit directly while Agents run.
ufw allows SSH, DNS, and Jellyfin from the LAN, and everything on tailscale0. Docker bypasses ufw, so hogwild-docker-user.service fills DOCKER-USER: containers cannot reach the LAN, the tailnet, or link-local; the LAN cannot open published ports. daemon.json binds published ports to loopback. After ufw reload, restart Docker. Verify with sudo iptables -S DOCKER-USER.
harlan to sudo or docker.~/pkg or ~/sites on the host. The Agent owns them.sudo systemctl stop hogwild-github-runner.service, then sudo reboot.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/adversarial-reviewReview one pull request adversarially, hand permitted defects to Repair, verify the remote head, and publish the Harlan Agent Kit bot status. Use for rigorous pre-merge PR review./agent-feedbackImprove one Agent skill from explicit Review feedback. Use only for the agent-feedback Routine./agent-retroWeekly retro of Harlan GitHub Agent sessions. Group transcripts by goal, find repeated and wasted work, and rank fixes to the controller, prompts, skills, or model. Use for agent retro, session review, agent efficiency, or self-improvement runs.npx claudepluginhub harlan-zw/harlan-agent-kit --plugin harlan-agent-kitOther plugins' skills for the same job