Dead simple agent management over SSH. For humans and agents alike.
skulk spins up Claude Code agents on a remote server — each in its own tmux session and git worktree, fully isolated, zero conflicts.
$ skulk new auth-refactor "Refactor the auth middleware to use JWT"
Created agent 'auth-refactor' on dev-server.
Prompt delivered to skulk-auth-refactor.
$ skulk new fix-pagination "Fix the off-by-one error in /api/users pagination"
Created agent 'fix-pagination' on dev-server.
Prompt delivered to skulk-fix-pagination.
$ skulk list
NAME STATUS UPTIME WORKTREE
auth-refactor detached 3m ~/myproject-worktrees/skulk-auth-refactor
fix-pagination idle 1m ~/myproject-worktrees/skulk-fix-pagination
Two agents. Two branches. Two worktrees. Running simultaneously on one machine.
I wanted my agents to keep working when my laptop is closed. skulk runs them on a remote server in tmux sessions, each in its own git worktree. I check in from my laptop, or from my phone when the agent is launched with --remote-control, read the diffs, ship what's good.
Works as a CLI, in scripts, or driven by another Claude Code session through the plugin.
Local machine: macOS or Linux with an OpenSSH client.
Remote server: Debian-based Linux (Ubuntu, Debian, etc.) with SSH access and key-based auth. skulk init installs everything else (tmux, git, Claude Code). Other distros may work but are not officially supported yet.
Localhost mode: Set host = "localhost" in .skulk/config.toml to run agents on the same machine without SSH.
curl -sSL https://raw.githubusercontent.com/frantufro/skulk/main/install.sh | shOr via Homebrew (macOS and Linux):
brew install frantufro/tap/skulkOr build and install from source:
git clone https://github.com/frantufro/skulk.git
cd skulk
cargo install --path .Run skulk init in your project directory. The interactive wizard will:
- Detect your git remote and default branch
- Ask for your SSH host and test connectivity
- Generate a
.skulk/config.tomlfile - Optionally set up the remote server (install tools, clone repo, create worktree directory)
skulk initThe generated config looks like:
host = "your-server"
session_prefix = "my-project-"
base_path = "~/my-project"
worktree_base = "~/my-project-worktrees"
default_branch = "main"| Field | Description |
|---|---|
host |
SSH host (must be reachable via ssh your-server), or localhost / 127.0.0.1 / ::1 to run commands on the local machine without SSH |
session_prefix |
Prefix for tmux sessions and git branches |
base_path |
Path to the main git clone on the remote |
worktree_base |
Directory where agent worktrees are created |
default_branch |
Branch on origin that new worktrees start from and diff, git-log and ship compare against (default: main) |
harness |
Agent harness to use: claude (default) or opencode |
The config file is searched upward from your current directory, so you can place it at your project root.
# Create an agent and give it a task
skulk new fix-bug "Fix the null pointer exception in UserService.java"
# Create an agent without a prompt (starts Claude Code, you connect and interact manually)
skulk new explore
# Load the prompt from a local task file
skulk new big-feature --from ./tasks/refactor.md
# Load the prompt from a GitHub issue on the current repo
skulk new fix-123 --github 123
# Spin up an agent on a specific model
skulk new big-refactor --model opus "Untangle the auth middleware"
# Create an agent reachable from the Claude Code mobile/web app
skulk new mobile-task --remote-control "Fix the login bug"
# Pass arbitrary extra flags through to Claude Code.
# Note the inner single quotes around Bash(...): --claude-args is typed into
# the remote shell by tmux, so shell metacharacters (parens, globs, $, ;, …)
# must be pre-quoted to reach Claude literally.
skulk new scoped --claude-args "--allowed-tools 'Bash(gh pr:*)'" "Triage open PRs"By default skulk launches Claude Code without --remote-control. skulk's own commands (connect, logs, send) talk to the agent through tmux directly, and leaving --remote-control on triggers an upstream idle-death bug (anthropics/claude-code#32982) that kills agents after ~20 minutes of inactivity. Only opt in when you want to drive an agent from the Claude Code mobile/web app, and don't use it for long autonomous tasks.
# See what's running
skulk list
# Detailed view of one agent (status, commits ahead, files changed, uptime)
skulk status fix-bug
# View an agent's terminal output
skulk logs fix-bug
# Follow output in real time (like tail -f)
skulk logs fix-bug --follow
# View scrollback history
skulk logs fix-bug --lines 500
# Output of another tmux window, e.g. a dev server the init hook started
skulk logs fix-bug --window server --follow
# Review the work so far
skulk diff fix-bug --stat # summary of files changed
skulk diff fix-bug # full diff
skulk git-log fix-bug # commits on the agent's branch
# Attach to an agent's live tmux session (interactive)
skulk connect fix-bug
# Detach with Ctrl+B then D
# Send a follow-up prompt to a running agent
skulk send fix-bug "Actually, also add a test for the edge case"
# Or send a longer prompt from a file
skulk send fix-bug --from ./followup.md
# Block until the agent finishes its current turn (useful in scripts)
skulk wait fix-bug
skulk wait --all --timeout 600 # wait for every agent, cap at 10 min# Push the agent's branch to origin
skulk push fix-bug
# Push and open a PR with a Claude-authored description
skulk ship fix-bug# Archive an agent — kill its tmux session but keep the worktree and branch
skulk archive fix-bug
# Bring an archived or crashed agent back with a fresh Claude session
skulk restart fix-bug
# Update the base clone on the remote (fast-forward origin/main → base_path)
skulk pull
# Destroy a specific agent (session + worktree + branch)
skulk destroy fix-bug
# Destroy all agents at once
skulk destroy-all
# Clean up orphaned resources (sessions without worktrees, etc.)
skulk gc
# Preview what gc would clean without actually doing it
skulk gc --dry-run| Command | Description |
|---|---|
| Setup | |
skulk init |
Interactive setup wizard — generates config and optionally provisions the remote server |
skulk doctor |
Health check — verify SSH, tools, base clone, and worktree directory |
skulk pull |
Fetch and fast-forward the base clone's default branch; refuses, and says why, when it can't fast-forward |
| Create | |
skulk new <name> |
Create a new agent with its own worktree (--from, --github, --model, --claude-args, --remote-control) |
| Observe | |
skulk list |
List all agents with status, uptime, and worktree path |
skulk status <name> |
Detailed single-agent view: status, commits ahead, files changed, uptime |
skulk logs <name> |
View an agent's terminal output (-f to follow, -l for scrollback, -w <window> for another window of its session) |
skulk wait <name> |
Block until the agent is idle (--all for all agents, --timeout <secs> to cap the wait) |
skulk events |
Stream fleet changes over one SSH session until the connection drops (see skulk events) |
| Interact | |
skulk connect <name> |
Attach to an agent's live tmux session |
skulk disconnect <name> |
Detach all clients from an agent's session |
skulk send <name> <prompt> |
Send a prompt to a running agent (--from to read from a file) |
skulk put <name> <file> [<dest>] |
Copy a local file into the agent's worktree and print its absolute remote path. Default destination is tmp/bzworkspace-uploads/<file name>, numbered (image-1.png, …) when taken; an explicit <dest> (relative to the worktree) is overwritten. Refuses paths that leave the worktree through a symlink |
skulk get <name> <path> [<dest>] |
Copy a file (or a directory with --recursive) out of the agent's worktree. A file goes to <dest> or into it when it is a directory; a directory's contents go into <dest>; the default is the current directory under the same name. --list reports files and sizes without copying. Refuses .., absolute paths and symlinks leading outside the worktree; symlinks that stay inside are copied as regular files. Capped at 200 MB (200,000,000 bytes) per call (--max-mb) |
skulk exec <name> -- <cmd> [args…] |
Run a one-off command (e.g. bin/rails db:migrate) in the agent's worktree with its session's environment (SKULK_*, the worktree's .env, and the env of .claude/settings.local.json). Each argument reaches the command verbatim, and .env is read as KEY=VALUE data, not run as shell code. Output streams and skulk exits with the command's code (a failure to reach the host or to start the command is reported as a skulk error, exit 1, instead); --json returns {"v":1,"agent","exit_code","timed_out","stdout","stderr","stdout_truncated","stderr_truncated"} with each stream capped at 1 MiB, and a failing command is not a skulk error. --timeout <secs> kills the command and its children (TERM, then KILL within 5s if any survive) and reports exit code 124. Needs bash on the remote |
skulk restart-window <name> <window> |
Restart one window of the agent's session (e.g. the dev server in server) with the command it was created with — see Init Hook |
| Review | |
skulk diff <name> |
Show git diff against origin/<default_branch> (--stat, --name-only) |
skulk git-log <name> |
Show commits on the agent's branch not in origin/<default_branch>; --json adds per-commit details, --limit N caps them |
skulk transcript <name> |
Dump full tmux scrollback (--output to write to a file) |
| Ship | |
skulk push <name> |
Push the agent's branch to origin |
skulk ship <name> |
Push and open a PR with a Claude-authored description |
| Lifecycle | |
skulk archive <name> |
Kill tmux session but keep worktree and branch intact |
skulk restart <name> |
Restart an archived or crashed agent in its existing worktree |
skulk destroy <name> |
Destroy an agent (session, worktree, and branch) |
skulk destroy-all |
Destroy all agents at once |
skulk gc |
Clean up orphaned tmux sessions, worktrees, and branches. Scoped to the project's session_prefix; preserves running and archived agents. |
skulk completions <shell> |
Print a shell completion script (bash, zsh, or fish) to stdout |
skulk runs an optional setup script inside each agent's tmux session before Claude starts — useful for docker compose up, migrations, dependency installs, mock services, etc.
Convention: put the script at .skulk/init.sh in your repo. Override the path with init_script = "scripts/setup-agent.sh" in .skulk/config.toml if you prefer.
Project env file: .skulk/.env lives locally (gitignored — skulk init adds the entry automatically) and almost always contains secrets. On skulk new, skulk copies it to the agent's worktree at <worktree>/.env so dotenv-aware project tooling picks it up, and skulk also sources it before running init.sh so both the script and Claude itself see the same vars (e.g. $DATABASE_URL for migrations, $GITHUB_TOKEN for tools Claude uses).
⚠️ Security: shipping.skulk/.envsends your local secrets to the remote server. Review what's in it before runningskulk new, especially on shared hosts.
Env vars passed to init.sh:
| Variable | Example |
|---|---|
SKULK_AGENT_NAME |
auth-refactor |
SKULK_SESSION |
my-project-auth-refactor |
SKULK_BRANCH |
my-project-auth-refactor |
SKULK_WORKTREE |
absolute path to the worktree |
Failure handling — hard fail: if init.sh exits non-zero, Claude does not start. The tmux session stays open with the error visible — run skulk connect <name> to investigate. For per-step opt-outs, use the usual shell idiom: risky_command || true.
Long-running services in their own window: to keep a dev server running next to the agent, have init.sh open it in a separate tmux window with the command, so tmux remembers what to restart:
tmux new-window -d -t "$SKULK_SESSION" -n server "cd '$SKULK_WORKTREE' && bin/dev"
# optional: keep the window and its last output when the server exits
tmux set-option -w -t "$SKULK_SESSION:=server" remain-on-exit onThen skulk logs <name> --window server shows its output (--follow and --lines work too), and skulk restart-window <name> server restarts it without re-running init.sh. restart-window runs tmux respawn-window -k, which re-runs the window's original command — a window opened as a plain shell with bin/dev typed into it via send-keys comes back as an empty shell. Don't name the window agent: that's the window Claude runs in.
App URL: if init.sh starts a dev server, have it write the app's URL to tmp/dev-server-url in the worktree (first line only). skulk status --json and skulk list --json report it as url (null when the file is missing). Change the path with url_file = "log/app-url" in .skulk/config.toml.
mkdir -p "$SKULK_WORKTREE/tmp"
echo "http://localhost:$PORT" > "$SKULK_WORKTREE/tmp/dev-server-url"Per-agent MCP config: Claude Code keeps project MCP overrides per repository, not per worktree, so init.sh can't repoint a project MCP server (for example, one served by your app on this agent's port) for a single agent. Instead, set mcp_config = "tmp/mcp.json" in .skulk/config.toml and have init.sh write that file in the worktree. When the file exists at launch, skulk starts Claude with --mcp-config tmp/mcp.json; when it doesn't, Claude starts as usual. Claude Code only: other harnesses ignore it, with a warning.
mkdir -p "$SKULK_WORKTREE/tmp"
printf '{"mcpServers":{"my-app":{"type":"http","url":"http://localhost:%s/mcp"}}}\n' "$PORT" \
> "$SKULK_WORKTREE/tmp/mcp.json"skulk init writes .skulk/init.sh.example — rename it to .skulk/init.sh and customize to enable.
skulk ships a Claude Code plugin that teaches Claude how to drive skulk
directly. Install it and your Claude Code session becomes an orchestrator:
ask it to spin up agents on a list of tasks, check in on the fleet, review
their diffs, and ship the ones that are ready — it'll run the right skulk
commands for you.
Install via the plugin marketplace. Type these as slash commands inside a Claude Code session:
/plugin marketplace add frantufro/claude-plugins
/plugin install skulk@frantufro-plugins
The plugin contributes a skulk-agent-management skill that covers the
full agent lifecycle (create, monitor, interact, review, ship, clean up).
The same skill is available to OpenCode through npm:
npx @frantufro/skulk installThat writes the skulk-agent-management skill into
~/.config/opencode/skills/, and downloads the skulk binary into
~/.local/bin when skulk is absent from your PATH. The download's SHA-256
is checked against the checksum published with the release before anything is
installed. Once the binary is in place, skulk update handles upgrades.
Options:
| Flag | Effect |
|---|---|
--project |
install into ./.opencode/skills for one repository |
--force |
overwrite a modified SKILL.md without asking |
--skip-existing |
keep a modified SKILL.md and exit successfully |
--no-binary |
install the skill alone |
The skill this installs is the one the Claude Code plugin contributes, packed
verbatim from claude-plugin/skills/. Whichever program loads the skill, the
harness setting still decides what runs on the remote, so an OpenCode session
can drive Claude Code agents and a Claude Code session can drive OpenCode ones.
By default, skulk uses Claude Code as the agent harness. You can switch to OpenCode by setting the harness field in .skulk/config.toml:
harness = "opencode"If omitted, harness defaults to "claude".
OpenCode must be installed on the remote server before using the opencode harness. Follow the OpenCode installation guide for your remote's OS, or run this one-liner for Linux (Debian-based):
curl -fsSL https://opencode.ai/install | bashVerify the installation by running opencode --version over SSH on the remote.
skulk waitlimitation: OpenCode does not have an equivalent to Claude Code'sUserPromptSubmitevent, soskulk waitmay return early right after sending a prompt, before the agent finishes its turn.--modelflag format: When using OpenCode, the--modelflag requires theprovider/modelformat (e.g.anthropic/claude-opus-4-7), not just the model name.--remote-controlignored: The--remote-controlflag is Claude-only and will be ignored when using the OpenCode harness.
Local Remote Server
───── ─────────────
skulk init ──────SSH──► Tests connectivity
Installs tmux, git, claude (if missing)
Clones repo to base_path
Creates worktree_base directory
skulk new auth ──SSH──► git fetch origin <default_branch>
git worktree add <worktree_base>/<prefix>auth origin/<default_branch>
tmux new-session -d -s <prefix>auth
(starts claude in the worktree)
skulk send auth ──SSH──► tmux send-keys "your prompt" Enter
(captures pane before/after to verify delivery)
skulk connect auth ──SSH──► tmux attach -t <prefix>auth
(interactive terminal, Ctrl+B D to detach)
skulk destroy auth ──SSH──► tmux kill-session -t <prefix>auth
git worktree remove <prefix>auth
git branch -D <prefix>auth
Each agent is a tmux session running Claude Code inside its own git worktree. Worktrees share the same .git directory as the base clone but have independent working trees and branches — so agents can edit files simultaneously without stepping on each other.
Skulk ships tab completion for bash, zsh, and fish. Completions cover every subcommand and flag, and also tab-complete live agent names for commands that take one — skulk destroy <Tab> suggests the agents currently running on your remote.
Pick your shell and source the output from your shell's config:
bash — add to ~/.bashrc:
source <(skulk completions bash)zsh — add to ~/.zshrc (after compinit):
source <(skulk completions zsh)fish — write once into fish's completions dir:
skulk completions fish > ~/.config/fish/completions/skulk.fishDynamic agent-name completion shells out to skulk list at Tab time. If .skulk/config.toml isn't set up yet, or the remote is unreachable, it silently returns nothing and falls back to static completion — so it's safe to source unconditionally.
Names may contain letters (upper or lowercase), digits, hyphens, underscores, and forward slashes. 1-100 characters. Cannot start with - or /, end with /, or contain //.
skulk new my-feature # valid
skulk new fix-123 # valid
skulk new My_Feature # valid
skulk new feat/add-thing # valid
skulk new -bad-name # invalid (leading hyphen)
| Flag | Scope | Description |
|---|---|---|
--no-color |
Global | Disable colored output (also respects NO_COLOR env var) |
--json / --human |
Global | Machine-readable JSON or human text output; overrides output_format in the config (see JSON Output) |
--config <PATH> |
Global | Use this config file, or the project directory holding .skulk/config.toml, instead of searching upward from the current directory |
--from <FILE> |
new, send |
Load the prompt from a local text file instead of the positional argument |
--github <ISSUE_ID> |
new |
Load the prompt from a GitHub issue (title, body, comments) via gh on the remote. Mutually exclusive with --from. |
--remote-control |
new |
Launch Claude with --remote-control so the agent is accessible from the Claude Code mobile/web app. Off by default because of an upstream idle-death bug (anthropics/claude-code#32982) that kills agents after ~20 min of inactivity — see Quick Start |
--model <NAME> |
new |
Pass --model <name> through to Claude Code (e.g. opus, sonnet, claude-opus-4-7). Restricted to [A-Za-z0-9._-]. |
--claude-args <ARGS> |
new |
Extra flags appended to the Claude Code launch command. Typed into the remote shell by tmux, so shell metacharacters are re-evaluated — pre-quote for the inner shell (e.g. --claude-args "--allowed-tools 'Bash(gh pr:*)'"). |
--stat |
diff |
Summary of changed files (insertions/deletions), mutually exclusive with --name-only |
--name-only |
diff |
Paths of changed files only |
--follow, -f |
logs |
Stream output in real time |
--lines, -l |
logs |
Number of scrollback lines to show |
--window <WINDOW>, -w |
logs |
Read this tmux window of the agent's session (e.g. server) instead of the agent's own window |
--output <FILE>, -o |
transcript |
Write transcript to this file instead of stdout |
--recursive, -r |
get |
Copy a directory and everything under it |
--list |
get |
List the files (path relative to the worktree, bytes) instead of copying |
--max-mb <MB> |
get |
Refuse when the files total more than this many megabytes, where 1 MB = 1,000,000 bytes (default: 200) |
--all |
wait |
Wait for every running agent instead of one. An agent that times out does not stop the wait for the others; skulk exits 1 at the end if any timed out |
--timeout <SECS> |
wait |
Maximum seconds to wait before giving up (default: 1800; applies per agent with --all) |
--force |
pull |
Hard-reset to origin/main instead of fast-forward |
--force |
destroy, destroy-all |
Skip the confirmation prompt |
--dry-run |
gc |
Preview what would be cleaned |
With --json (or output_format = "json" in the config), each command prints
one JSON object on stdout when it succeeds. Every object carries "v": 1, the
schema version, which changes only when a payload changes in a way that breaks
consumers.
skulk --json --config ~/code/my-project list
# {"agents":[{"branch":"skulk-fix-bug","name":"fix-bug","status":"idle",...}],"v":1}On failure, skulk exits non-zero, prints nothing on stdout, and prints one error object on stderr:
{"v":1,"error":"skulk destroy: No agent 'ghost' found.","code":"not_found"}code is one of validation, not_found, ssh_exec, ssh_failed,
diagnostic, update_failed, output (writing to stdout failed), config
(the config file could not be found or loaded), or json_serialization (a
result could not be encoded; it never reaches stdout).
| Command | Success payload (besides v) |
|---|---|
list |
agents: array of {name, status, branch, uptime_secs, session_created_epoch, url, idle_since} |
status |
name, status, branch, uptime_secs, session_created_epoch, queried_at, url, idle_since |
new, replay |
ok, agent, branch, session, worktree, harness, model, remote_control, prompt (delivered / not_submitted / failed / none), warnings, plus the base fields |
send |
ok, agent, prompt (delivered / not_submitted) |
restart |
ok, agent, branch, session, worktree, harness, model, remote_control |
archive |
ok, agent, branch, worktree, reason, warnings |
destroy |
ok, agent, cleaned: list of session / worktree / branch |
destroy-all |
ok, agents: names of the destroyed agents |
push |
ok, agent, branch, remote, output |
pull |
ok, base_path, branch, force, output; without --force, also base, base_sha, base_updated |
ship |
ok, agent, pr_url, warnings, plus the base fields |
put |
ok, agent, path (absolute path of the file on the remote) |
get |
agent, files (array of path relative to the worktree and bytes), dest (absolute local path, null with --list) |
wait |
ok, agent, status, or reason on timeout |
diff |
agent, diff, warnings, plus the base fields |
git-log |
agent, commits, warnings, plus the base fields |
gc, logs, restart-window |
command-specific fields |
idle_since in list and status is when an idle agent went idle, as a UTC
timestamp such as 2026-11-24T10:31:02Z, and null for an agent that is not
idle.
destroy and destroy-all need --force with --json, since nobody is there
to answer the confirmation prompt. If they leave anything behind, they fail
with a diagnostic error naming what is left. A wait that times out is
the one failure reported on stdout: {"ok": false, "reason": "timeout", ...}
with exit code 1. wait --all prints one line per agent and exits 1 if any of
them timed out.
prompt: "not_submitted" (from new, replay and send) means the prompt
reached the agent's input box but the harness never took the Enter, even after
skulk pressed it again. ok stays true and the exit code is 0. The agent is
idle: skulk puts its marker back to idle, so skulk wait returns at once,
and the prompt text is still in its input box. To recover:
- Check with
skulk logs <name>, then attach withskulk connect <name>and press Enter. - Do not just repeat
skulk sendwith the same prompt. It types into the same input box, after the text already there, so the agent would get it twice. Clear the box first (attach and press Ctrl+C in Claude Code). - For a new agent, you can also start over:
skulk destroy <name>, thenskulk newagain orskulk replay <name>(stored prompts outlivedestroy).
new, replay, diff, git-log and ship first run git fetch origin <default_branch> in the base clone, then use the commit
origin/<default_branch> points at as the base: new agents branch from it,
and diffs and logs compare against it. If the fetch fails or takes more than
15 seconds, the command carries on with the last fetched
origin/<default_branch> and adds a warning. It never falls back to the local
branch. Any fetch attempt from the last 30 seconds, failed or not, is reused
along with its warning, so diff --stat then diff fetches once, and an
unreachable origin costs one timeout rather than one per command.
While at it, they fast-forward the base clone's local <default_branch> when
it is behind. They leave it alone, with a warning, when it has commits of its
own, has uncommitted changes while checked out, is checked out in another
worktree, or does not exist. Updates are serialized per base clone with
flock, or a lock directory where flock is missing (macOS); while another
command holds the lock, the update is skipped silently. skulk pull does the
same, but always fetches, waits for the lock, and fails instead of warning.
The base fields in JSON results are base (the ref used, e.g.
"origin/main"), base_sha (the commit it pointed at), and base_updated
({"from": "<sha>", "to": "<sha>"} when the local branch was fast-forwarded,
otherwise null). Warnings go in warnings, and on stderr in human mode.
skulk --json doctor prints one object with the checklist:
{"v":1,"ok":false,"checks":[{"id":"config","label":"Config","value":"/p/.skulk/config.toml","status":"ok","note":null},{"id":"tmux","label":"tmux","value":"missing","status":"fail","note":"tmux is not installed on host.\n..."}]}idis stable:config,skulk,ssh,tmux,harness,gh,base_clone,worktree_dir.labelis for display (the harness check is labelled with the configured binary name).statusisok,warn,failorskip.skipappears only when thesshcheck fails: the remote checks (tmux,harness,gh,base_clone,worktree_dir) did not run. A skipped check hasvalue: nullandnote: "skipped: SSH check failed", and the object always hasok: false.okisfalsewhen any check has statusfail; warnings alone leave ittrue.noteisnullwhen there is nothing to add.- Exception to the failure rule above: when any check fails,
doctorexits non-zero but still prints this same object on stdout (withok: false), so consumers can show which checks failed. The error object goes to stderr only.
skulk --json events runs until the connection drops and prints one JSON
object per line. It holds a single SSH session, in which a remote loop checks
tmux, the worktrees and the Stop/UserPromptSubmit marker files every second
(or as soon as a marker changes, when inotifywait is installed).
{"v":1,"ts":"2026-11-24T10:31:02Z","type":"snapshot","agents":[{"name":"fix-bug","state":"working","url":null,"idle_since":null}]}
{"v":1,"ts":"2026-11-24T10:33:40Z","type":"idle_state","agent":"fix-bug","from":"working","to":"idle","url":null,"idle_since":"2026-11-24T10:33:39Z"}
{"v":1,"ts":"2026-11-24T10:35:12Z","type":"agent.created","agent":"auth-refactor","state":"working","url":null}
{"v":1,"ts":"2026-11-24T10:50:00Z","type":"agent.gone","agent":"explore","reason":"archived"}
{"v":1,"ts":"2026-11-24T10:50:30Z","type":"heartbeat"}snapshotcomes first and lists every agent, archived ones asstopped.stateisworking,idleorstopped.urlis the app URL fromurl_file, ornull.idle_since(insnapshotandidle_state) is when the agent went idle, in UTC: the time its idle marker was last written. It isnullunless the state isidle.agent.createdwaits until the new agent's session is up, so it doesn't flash asstopped. A worktree that has no session after 5s is announced asstopped.agent.gonehasreasonarchived(byskulk archive),crashed(the session ended without an archive, for 3s), ordestroyed(the agent has been missing for 3s). An agent already reportedarchivedorcrashedgets no secondagent.gonewhen its worktree is later destroyed: treat those as final. Restarting an archived or crashed agent shows up asidle_statefromstopped.heartbeatarrives every 30s.
If the remote can't list worktrees (for example a git failure in
base_path), skulk skips that check instead of reporting every agent
destroyed. When the connection closes, nothing arrives from the remote for
20s, or the worktree listing fails for 20s straight, skulk prints an error
object on stderr and exits non-zero, so a supervisor can restart it. Without --json, it prints the same changes as plain text and
skips heartbeats.
Breaking change in the
v: 1contract:listused to print a bare JSON array. It now prints{"v": 1, "agents": [...]}. Read.agentsinstead of the top-level array.
skulk classifies common SSH failures and surfaces actionable suggestions instead of raw stderr:
- Connection refused / timed out — check that SSH is running and reachable on the remote
- Could not resolve hostname — check your
~/.ssh/configor DNS - Host key verification failed — accept the host key first
- Permission denied — check your SSH key, agent, or
~/.ssh/config - Agent not found — the named agent doesn't exist; run
skulk listto see what's running - Base clone missing / remote tools missing — run
skulk initto provision the remote, orskulk doctorto diagnose an existing setup
Run skulk doctor any time for a full health check (SSH reachability, required tools on the remote, base clone, worktree directory).
Destructive operations (destroy, destroy-all) require confirmation unless --force is passed, and exit non-zero if any session, worktree or branch could not be removed. If agent creation fails partway through (e.g., tmux session can't start), the worktree is rolled back automatically.
Contributions welcome. See CONTRIBUTING.md for the ground rules, project layout, and release workflow.