# Hare — full description Each project folder has a personal to-do list and sortable Feishu docx/wiki links, synchronized across devices. Open its project panel beside the terminal or full-screen on mobile. Connected users can create a cloud document named after the folder. > Hare (Chinese name: 狡兔) is an open-source, self-hosted web console that positions itself as an ADE (Agentic Development Environment). It gathers the Claude Code, Codex and OpenCode sessions running on many dev machines (in zmx) into one place. MIT licensed. Source: https://github.com/Tigerdwgth/Hare > The name comes from the Chinese proverb 狡兔三窟, "A cunning hare has three burrows" (Zhanguo Ce, Strategies of the Warring States): the agents live in many burrows (sessions on many machines) and Hare is the single way in. > Project history: development started in February 2026 (GitHub repository created 2026-02-26); called VibeAnything until renamed Hare on 2026-11-29, when the public git history was restarted. This file is the plain-Markdown version of the project site https://tigerdwgth.github.io/Hare/en/ . Every statement is taken from the repository (README.md, docs/, package.json, bin/cli.js, lib/messaging/) at version 4.3.0 and was checked on 2026-11-30. A Chinese version is at https://tigerdwgth.github.io/Hare/llms-full.zh.txt . ## What Hare is Hare is a web console (a desktop page at `/` and a mobile PWA at `/m`) for people who run several coding agents at once. The agents — Claude Code, Codex, OpenCode — run in terminal sessions on one or more dev machines: sessions are hosted in zmx (https://zmx.sh). Hare shows all of those sessions in one list with a status light per session, opens any session as a full terminal in the browser, lets the agents message each other and assign work through MCP tools and a command line, and notifies the user through Web Push and a Feishu group bot when a session needs attention. "ADE" stands for Agentic Development Environment. Hare uses the term for a development environment whose interface is organised around a person directing several coding agents (watching their status, giving them work, stepping in when they need a decision) rather than around a person writing code, as an IDE is. ## The problem it solves Agent sessions end up scattered: a few on a laptop, a few on a workstation, a few on a GPU server, each inside its own terminal session. To see which agent is still working, which has finished and which is blocked on a permission prompt, you would attach to every machine and every session in turn. Hare puts that state on one page and on your phone, and adds the plumbing for agents on different machines to coordinate. ## Terms - **relay** — the central server, one Node.js process (`packages/server/`). Handles login, session ownership and sharing, pins, the message inbox, the task board, migration orchestration and notifications, and forwards data between browsers and dev machines. Everything sent to a browser is filtered per user first. - **daemon** — a background process on every dev machine (`lib/`, `hooks/`, `bin/`). Scans local zmx sessions, including sessions created by hand, opens PTY terminals for the browser, turns agent hook events into a session status, reports CPU / memory / GPU load, and offers MCP tools and a CLI to agents through a local unix socket. It connects out to the relay over WebSocket and does not listen on a network port. - **session** — a terminal session, usually with one agent or a plain shell in it. Sessions stay in zmx when the daemon restarts. - **terminal backend** — the program hosting the sessions: zmx, with one daemon process per session. Details: docs/terminal-backends.md. - **status hook** — a callback fired by the agent (prompt submitted, tool called, turn stopped, permission requested). Claude Code and Codex use hooks, OpenCode uses a plugin; all are installed by `hare --install-status-hooks`. - **session reference** — sessions are addressed as `machineId/sessionId`, for example `gpubox1/train-rover`. ## Session states - **Working** — the agent is running. - **Done · waiting for you** — the turn has finished and the agent is waiting for input. - **Needs your confirmation** — the session stopped at a permission request or a question dialog (`AskUserQuestion`, `ExitPlanMode`, Codex `request_user_input`), or the agent asked the user a question with `hare_ask`. ## Features ### Sessions and terminals - Multi-machine session list with cross-machine project folders: one folder can hold sessions from any number of machines, folders nest, and each user's folder tree is stored on the relay. A renamed zmx session keeps its socket name and carries the new name as a label. Choose a dev machine in the new-session form, which remembers your last choice. Files has its own remembered machine selection. Unfiled sessions form one flat list on desktop and mobile, ordered by recent activity, with a machine label on every row. Administrators can still group by owner. Folders appear directly after pins and before the unfiled list, each with its own collapse control and count. Create folders with the folder icon beside New at the top. - Full terminal in the browser, attached to the session in zmx. Pasted screenshots and dropped files are uploaded to the machine the session runs on and the path is typed into the terminal. CJK input methods are supported. - Ownership and sharing: every session belongs to one user; regular users see only their own sessions and sessions shared with them; each machine can have a default owner. - Pins: folders at any depth carry their subtrees to the top, before pinned sessions. Folder pin order is adjustable; pins are stored per user on the relay and synced across devices. - Git badges: each session row shows the repository, branch and worktree it is working in. - Project docs panel: read the project's Markdown / HTML documents next to the terminal, refreshed when files change; a button types the document path into the terminal. The panel has no text editor. A configured Feishu/Lark application lets users bind Markdown to their own docx documents and review sync conflicts. Cloud image import is currently blocked by the official content API; see docs/feishu-doc-sync.md. - Open local Markdown and HTML in a project folder, highlight text, and discuss it with people and agent sessions on desktop or mobile. - HTML dashboards: agent-generated HTML dashboards open like a static site served from the dev machine through the relay (relative assets, fetch of data files, ES modules, links between pages), in the panel or a new tab. Pages run in a CSP sandbox with an opaque origin behind short-lived preview links, and reload when a file they loaded changes. - Mobile interface `/m`, installable as a PWA, with a key bar (`/clear`, `/compact`, paste, arrow keys and others). - Interface language: English or Simplified Chinese, chosen on first use, switchable in Settings, stored with the account. ### Status and notifications - Status lights for all three agents. - Notifications to the session owner when a session needs confirmation (`permission`), finishes (`done`), or an agent asks a question (`ask`): Web Push system notifications and Feishu group-bot cards. A notification contains only the session name, state and machine name. The same notification kind for the same session is sent at most once per 30 seconds; each kind can be turned off per user. - Pixel town: every session is a pixel character that moves according to its state (pixel art inspired by Pixel Agents by Pablo De Lucca, MIT License). - macOS menu bar light (`packages/menubar-macos/`, Swift): shows only a light and session names for your own sessions, never conversation content. ### Multi-agent collaboration - Session messaging: agents message sessions on other machines and wait for replies. A message goes into the relay inbox and is pasted into the target agent's terminal only when the target is idle; while the target is running or stopped at a confirmation prompt the message stays queued. Replies are pushed back into the sender's session. Delivery is at-most-once. Messages are kept in relay memory only. Open the envelope icon (with an unread count) in the desktop SESSIONS or mobile session-list toolbar for all messages; use a session badge or its message menu item for that session’s history. - Questions to the human: `hare_ask` / `hare msg ask` asks a question with 0 or 2–6 options (question up to 2000 characters); the Dashboard and phone show buttons; the answer is delivered back to the asking session. - Task board: work items across machines and agents with the states todo, in_progress, in_review, done, canceled and priorities P0–P3. Agents create, claim, hand over and review tasks. Sessions can be marked as workers; automatic assignment only goes to idle worker sessions. Tasks are persisted in `tasks.jsonl` on the relay. - Cross-machine migration: moves an agent conversation to another machine. Uncommitted and unpushed changes travel along and are restored in a new git worktree on the target (branch `hare/migrate/`); the source session is closed and the conversation archived for 30 days. An agent cannot migrate the session it runs in. - Load awareness: dev machines report CPU, memory and GPU memory; `hare machines --suggest new|task|migrate` recommends a machine. ### Operations and accounts - Crash recovery: After a reboot, the daemon restores lost zmx agent sessions recorded in its ledger. It recreates each session in zmx under its original name and working directory, preserves its dashboard owner and resumes the recorded conversation. - Usage statistics: a usage tab sums the spending of the three agents by machine, user, harness or model, with machine multiselect, date ranges, daily stacked trends and expandable machine details on desktop and mobile; data is collected on each dev machine with ccusage (https://ccusage.com) and reported to the relay. - Codex auto-continue: Codex sessions created from the Dashboard receive `continue` automatically after a capacity error or a 429 rate limit (configurable). - Optional local Claude Code hooks: dangerous-command guard, Python auto-format, a check before `git commit`, relative-path fix for the Write tool. - Accounts: an administrator creates users; new dev machines join with a one-time invite code (30 minutes by default). ## Architecture ``` dev machine A ─┐ terminal sessions (zmx): claude / codex / opencode / shell dev machine B ─┼─ daemon ──WebSocket──▶ relay (central server) ◀── browser: desktop / and mobile /m dev machine C ─┘ ├ hooks/status.js agent status events ◀── macOS menu bar light ├ MCP server + CLI messages / tasks / migration ──▶ Web Push / Feishu group bot └ load reports, conversation bindings, uploads ``` | Part | Location | Responsibility | |---|---|---| | daemon | `lib/`, `hooks/`, `bin/` | One per dev machine: session scan, PTY terminals, hook events to status, load reports, MCP tools and CLI over a local socket | | relay | `packages/server/` | Login, ownership and sharing, pins, message inbox (memory only), task board (`tasks.jsonl`), migration orchestration, notifications | | front end | `packages/server/frontend/` | React; desktop `/` and mobile `/m` | | menu bar | `packages/menubar-macos/` | Swift macOS app showing a status light and session names | ## Requirements - Node.js >= 22.18 and a zmx on every dev machine. - Daemon service management: launchd (macOS) or a systemd user unit (Linux). - Not published to npm. Installed with `install.sh`, which sets up Node (a private copy when the one on PATH is older than 22.18) and zmx 1.0.2. It never uses sudo or edits shell profiles. Downloads of Node, zmx and Hare release bundles are verified with SHA-256; `--ref` source archives have no checksum and rely on HTTPS. ## Install ### Let your agent install Hare Replace the bracketed fields and send this prompt to any agent you use: Claude Code, Codex, OpenCode, or another. ```text Please install Hare (https://github.com/Tigerdwgth/Hare) for me, following docs/install.md. Set up the relay on [relay machine and SSH access], create administrator [admin username], and make the Dashboard available at [full URL reachable by the browser and dev machines]. Connect every machine in [dev machine list and SSH access for each]; for a single-machine setup, use the same machine for both roles. Install on remote machines over SSH. Run hare doctor on every dev machine, then log into the Dashboard in a browser and confirm they are all online. Stay with the installation from start to finish, fix problems as they arise, and give me the access URL and verification results. If you find a Hare compatibility bug, file an issue on the project's GitHub with reproduction steps and redacted logs, removing passwords, tokens and private machine details. ``` ### Manual installation Relay (one machine that every dev machine and browser can reach): ```bash curl -fsSL https://raw.githubusercontent.com/Tigerdwgth/Hare/main/install.sh | sh -s -- --ref main --no-zmx hare server init --admin alice # data directory ~/.hare/relay, first administrator, launchd / systemd user service, prints the address ``` Each dev machine: ```bash hare invite --server http://relay.example.com:3000 --user alice # on any machine with hare; prints the next line curl -fsSL https://raw.githubusercontent.com/Tigerdwgth/Hare/main/install.sh | sh -s -- --ref main --server http://relay.example.com:3000 --code ``` The second line installs and then runs `hare join`: join the relay with the one-time code, check the terminal backend, hand the daemon to launchd / systemd, install status hooks and MCP tools for Claude Code / Codex / OpenCode, and confirm that the relay sees the machine online. Every step can be re-run; finished steps are skipped. Checks and upgrades: ```bash hare doctor # Node, node-pty, zmx, service, relay reachability and token, hooks / MCP, disk; a fix for each (--json) hare upgrade --ref main # atomic switch, restart (sessions keep running), rollback when the new daemon does not reconnect in time ``` `--ref main` installs the main branch from source and runs `npm ci`. No release bundle has been published yet; once one is, leaving out `--ref` installs the latest release, which carries every dependency. Mirrors for slow networks: `HARE_NODE_MIRROR`, `HARE_NPM_REGISTRY`, `HARE_GITHUB_PROXY`, or the standard `https_proxy`. Installed under `~/.local/share/hare`; configuration and state stay in `~/.hare`. Details: `docs/install.md`. Relay environment variables: `PORT` (default 3000), `HOST` (default 0.0.0.0), `DB_PATH` (default `packages/server/users.db`; `server init` sets `~/.hare/relay/users.db`; `jwt-secret`, `tasks.jsonl`, `migrations.jsonl` live next to it), `JWT_SECRET` (generated on first start if unset), `SSL_CERT` / `SSL_KEY` (HTTPS when both files exist), `MACHINE_TOKENS` (legacy machine credentials). Open `http://relay.example.com:3000` (mobile: `/m`). Web Push and clipboard reading need https (`SSL_CERT` / `SSL_KEY`, or a TLS reverse proxy such as `tailscale serve`). The README recommends keeping the relay and dev machines inside one Tailscale network with no public port. ## Commands ```bash hare # setup wizard (Claude Code hooks + manual relay address) hare --remove # remove this project's hooks, delete ~/.hare hare --daemon start|stop|status hare service install|uninstall|status hare --install-status-hooks hare --install-messaging # --remove-messaging to uninstall hare msg whoami|ls|send|read|wait|inbox|reply|ask hare task ls|show|new|claim|note|done|review|handoff|release|cancel|approve|reject|suggest|worker|wait hare machines [--suggest new|task|migrate] hare agents restore [--dry-run] [--session ] hare agents migrate … hare invite --server --user [--machine-id ] [--label ] [--ttl ] hare join --server --code [--machine-id ] [--label ] [--no-service] [--no-hooks] [--no-messaging] [--join-only] hare setup hare doctor [--json] hare upgrade [--version | --ref | --bundle-url ] [--timeout ] hare server init --admin [--port 3000] [--host 0.0.0.0] [--data-dir ] [--no-service] hare --server start|stop|status sudo hare --deploy dashboard hare --usage-report hare --usage-schedule install # macOS: hourly via launchd hare --crontab install # Linux: hourly report, daemon autostart, watchdog ``` The `msg`, `task`, `machines` and `agents` commands accept `--json`. ## MCP tools Registered by `hare --install-messaging` (server entry `bin/hare-mcp.js`, built on `@modelcontextprotocol/sdk`). All tools act with the identity of the calling session's owner and only reach sessions that owner may access. | Tool | CLI equivalent | What it does | |---|---|---| | `hare_whoami` | `hare msg whoami` | Returns the caller's own session reference, owner and pane | | `hare_list_sessions` | `hare msg ls` | Lists reachable sessions with agent type, phase (running / idle / waiting / unknown) and working directory | | `hare_send` | `hare msg send` | Sends a message (up to 8000 characters) to 1–10 sessions | | `hare_read_output` | `hare msg read` | Reads recent pane output of another session as plain text, redacted on the target machine (best effort) | | `hare_wait` | `hare msg wait` | Waits for a reply, a session state change or a task change; at most 50 seconds per MCP call | | `hare_inbox` | `hare msg inbox` | Lists messages addressed to the caller and replies to its messages | | `hare_reply` | `hare msg reply` | Replies to a message addressed to the caller | | `hare_ask` | `hare msg ask` | Asks the session owner a question with optional answer options | | `hare_task_list` | `hare task ls` | Lists tasks on the owner's board | | `hare_task_get` | `hare task show` | Returns one task with its recent events | | `hare_task_create` | `hare task new` | Creates a task, optionally assigning it immediately | | `hare_task_fanout` | `hare task fanout` | Creates a batch of related tasks and dispatches children as their dependencies finish | | `hare_spawn { taskId, name }` | `hare task spawn T-42 --name "Fix login page"` | Assigns an idle worker or launches one within the owner's quota. The required name describes the work in a few words and applies only to a new session. Reused workers keep their address. | | `hare_task_claim` | `hare task claim` | Claims a todo task (one winner under concurrent claims) | | `hare_task_update` | `hare task note` / `done` / `review` / `handoff` / `release` | Records progress, completes, submits for review, hands over or releases a task | | `hare_task_review` | `hare task approve` / `reject` | Gives a reviewer verdict | | `hare_suggest_target` | `hare machines --suggest` | Recommends a target machine by CPU, memory, GPU headroom and running sessions | | `hare_migrate` | `hare agents migrate` | Migrates an idle agent conversation of the owner to another machine | ## Data and privacy - Everything runs on machines the user deploys; there is no hosted service. - Relay storage: `users.db` (accounts, ownership and sharing, pins, notification settings and push keys), `tasks.jsonl`, `migrations.jsonl`. Agent-to-agent messages are held in memory only. - Dev machine config: `~/.hare/config.json`, mode 0600 (`HARE_HOME` changes the directory). - External services are contacted only when notifications are enabled: the browser vendor's push service for Web Push, and the Feishu webhook the user enters. - When an agent reads another session's output, credentials with recognisable prefixes are redacted on the target machine before the text leaves it; redaction is best-effort. ## Limitations (as of 2026-11-30) - Not on npm; use the install script. - Hare manages zmx sessions. External batch jobs (for example `codex exec`) do not take part. - When an agent reads a zmx session's output, long lines come back wrapped as on screen. - Reboot recovery of zmx sessions only recreates sessions that had an agent conversation. Upgrading zmx can end every running zmx session; the tested version is pinned at 1.0.2. - The dashboard is in English and Simplified Chinese (chosen on first use, switchable in Settings, stored with the account); most repository documents and the command-line output are in Chinese. - Agent-to-agent messages are not persisted; queued messages expire after at most 24 hours. - Web Push requires https; push on Android Chrome requires that the relay can reach `fcm.googleapis.com`. - The menu bar light is macOS only. - No version handshake between dev machines: after a code update each dev machine has to be synced and its daemon restarted by hand. - Hare is not an IDE and has no code editor. ## Comparison by category | Aspect | Hare | Plain tmux (ssh + attach) | Single-machine agent terminal managers (category) | |---|---|---|---| | Scope | zmx sessions on many machines, one list | One machine; one ssh per machine | Usually the one computer the tool runs on | | Access | Browser (desktop, mobile PWA), macOS menu bar | Terminal | Usually a desktop app or local terminal UI | | Agent status | From agent hooks, three states | Window activity and bell alerts only | Varies by product | | Agent-to-agent communication | MCP tools and CLI, across machines | None built in | Varies, generally local only | | Assigning work | Task board | None | Varies | | Away from the desk | Mobile PWA, Web Push, Feishu bot | ssh client on a phone | Varies | | Continue on another machine | Conversation migration with uncommitted changes | None | Generally out of scope | | Setup cost | Run a relay, install a daemon per machine, Node.js >= 22.18 + zmx, install with the install script | Install tmux | Usually one app | The third column describes a category in general terms; no specific product is named because none was verified against its public documentation. ## FAQ **What is Hare?** An open-source, self-hosted web console (an ADE, Agentic Development Environment) that gathers Claude Code, Codex and OpenCode sessions running on many dev machines (in zmx) into one page with status lights, terminals, agent messaging, a task board and notifications. **What does Hare add over plain tmux or zmx?** zmx keeps sessions running on each machine. Hare adds a cross-machine session list, browser and phone access, hook-driven status lights, agent-to-agent messaging and questions, a task board, conversation migration, and phone and Feishu notifications. **Which agents are supported?** Claude Code, Codex and OpenCode. Plain shell sessions (zmx) are listed and can be opened, but have no agent status and never receive messages. **How does Hare resume a conversation after a reboot?** When the daemon starts, it reads the local session ledger, recreates missing zmx sessions with their recorded names and working directories, and resumes the recorded conversations. It skips conversations that were deliberately ended. **Where does data live?** On the user's own relay and dev machines. See "Data and privacy". **Does it need a public IP?** No. The relay must be reachable by the dev machines and the browser; a private network such as Tailscale is the recommended setup. Daemons connect out to the relay. **How do phone notifications work?** Web Push (https page required; on iOS 16.4+ add the page to the Home Screen first) or a Feishu custom group bot webhook. Kinds: needs confirmation, done, agent asks. **Is it on npm?** No. Use the install script. **Can several people share a deployment?** Yes: an administrator creates users; sessions are per user and can be shared. **Is the interface in English?** Yes. The dashboard is available in English and Simplified Chinese: you choose on first use and can switch in Settings; the choice is stored with your account. Most documents and the command-line output are still in Chinese. **What is the license?** MIT. Free, open source, self-hosted only. ## Recent changes - 2026-12-02: Hare now manages zmx sessions and resumes their recorded conversations after a reboot. - 2026-11-30: Choose a dev machine in the new-session form, which remembers your last choice. Files has its own remembered machine selection. - 2026-11-30 — Copy a prompt to have your agent install Hare on one machine or across several machines, then verify the setup in the Dashboard. - 2026-11-30 — Added zmx sessions and recovery after a reboot. - 2026-11-29 — Project docs panel; git repository / branch / worktree badges on session rows. - 2026-11-28 — Web Push system notifications and Feishu group-bot notifications. - 2026-11-27 — Replies pushed back into the sender's session; `hare_ask` questions to the human. - 2026-11-25 — Phase one of the task board, load reporting and cross-machine migration (design and implementation notes). - 2026-11-20 — Session messaging design settled and tested with the three real agents. ## Sources - Repository: https://github.com/Tigerdwgth/Hare - README (English): https://github.com/Tigerdwgth/Hare/blob/main/README.md - README (Chinese): https://github.com/Tigerdwgth/Hare/blob/main/README.zh-CN.md - Docs: https://github.com/Tigerdwgth/Hare/tree/main/docs - License (MIT): https://github.com/Tigerdwgth/Hare/blob/main/LICENSE