qianshuixia/Shoal
概要
Local workbench for running Claude Code, Codex and Antigravity CLI side by side on Windows. Native interactive sessions in one web UI or a Tauri desktop app: hooks show which agent is working and which is waiting for you, finished turns become review cards, and a task can be handed off to another CLI with an auto-generated handoff card.
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- +4
- 15日間
- +9
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルShoal
English | 简体中文
A local workbench for running Claude Code, Codex CLI and Antigravity CLI (agy) side by side on Windows and macOS. One web page (or the Tauri desktop app) hosts their native interactive sessions (node-pty, on ConPTY on Windows), color-codes tasks, and uses hooks to tell whether each session is working or waiting for you. Release history: CHANGELOG.md. Requirements and design: docs/v1-spec.en.md (简体中文, Inspector spec: docs/inspector-spec.md, Peer collab spec: docs/collab-spec.md).
[!WARNING] All three CLIs start with full permissions (approval prompts skipped; Codex with its sandbox off), so agents can edit files and run commands without asking. Only use Shoal in project directories you trust; see "Permissions" below.
[!NOTE] The UI is Chinese-only for now. UI labels below are given in English with the original Chinese in brackets, e.g. Awaiting review (「待验收」), so you can find them on screen.
Progress: M3 (switching agents and forwarding). When an agent finishes a turn, its last reply becomes a result card and the task moves to Awaiting review (「待验收」); you can write feedback to keep it going, or approve it. When a CLI runs out of quota, or you want someone else on the task, you can hand it to another CLI, which receives an automatically compiled handoff card; result cards can be forwarded to other tasks. Projects, tasks, sessions and cards persist in <stateDir>/state.json; after a server restart, old tasks show as Exited (「已退出」) and can be resumed by hand.
Install
Installers are on the Releases page. The desktop app brings its own Node, so you do not need Node, npm or a clone of this repo. It only hosts the agent CLIs, so you need at least one of them.
Windows:
- Download
Shoal_<version>_x64-setup.exeand run it. The installer is not code-signed, so SmartScreen may warn: click More info, then Run anyway. - Install and sign in to at least one CLI: Claude Code, Codex CLI or agy.
macOS 13.5 or later:
Download the
.dmgfor your chip:Shoal_<version>_aarch64.dmgfor Apple silicon (M1 and later),Shoal_<version>_x64.dmgfor Intel. Apple menu > About This Mac shows it (Chip on Apple silicon, Processor on Intel). You do not need the.app.tar.gzfiles.Open the
.dmgand drag Shoal into Applications.The app is not notarized by Apple, so before you open it the first time, run this in Terminal:
xattr -cr /Applications/Shoal.appIf you would rather not use Terminal, open Shoal once, then go to System Settings > Privacy & Security and click Open Anyway. If macOS says the app is damaged, use the Terminal command.
Install and sign in to at least one CLI: Claude Code, Codex CLI or agy. Shoal reads your login shell's
PATH, so Shoal can find any CLI that Terminal can, even when started from Finder or the Dock. If Shoal was already open when you installed the CLI, restart it.
Running from source
Requirements: Windows, or macOS 13.5 or later; Node 24 (runs .ts directly); and the CLIs you want to use, installed and signed in.
npm install
npm run build
npm start # serves http://127.0.0.1:47800; open it in a browser
One-click start / stop (Windows only; on macOS run npm start, open http://127.0.0.1:47800 in a browser, and stop it with Ctrl+C): double-click start.cmd or stop.cmd in the repo root, or run in PowerShell:
scripts\workbench.ps1 start|stop|restart|status [-Port <n>] [-Force] [-NoBrowser]
start: runsnpm installifnode_modulesis missing, rebuilds the frontend if its sources are newer thanweb/dist, then starts the server in the background in a separate hidden console and opens the browser once it is ready (-NoBrowserskips that). If the server is already running it only reports that and does not restart. Closing the window you started it from does not affect the server.stop: ends the server together with the agent processes it started. If agent sessions are still running it asks first (-Forceskips the prompt); you can resume them from the panel later.status: shows the PID, start time and number of running sessions; exits with code 3 when not running.- Logs:
<stateDir>\server.logandserver.err.log; the previous run's are kept asserver.prev.logandserver.err.prev.log, so the reason for a crash survives a restart. If the port is taken by another program, the error names it.
Desktop app (Tauri 2 shell in desktop/): opens the workbench in a WebView2 (Windows) or WKWebView (macOS) window. The installer is self-contained: it carries its own Node runtime (pinned in scripts/stage-desktop.mjs), the server, the built web UI and the production node_modules, so the machine needs no clone, Node or npm. Only the agent CLIs you want (Claude Code, Codex CLI, agy) have to be installed and signed in.
npm run desktop:build # needs Rust; produces desktop\src-tauri\target\release\bundle\nsis\Shoal_<version>_x64-setup.exe
# on macOS: bundle/macos/Shoal.app and bundle/dmg/Shoal_<version>_<aarch64|x64>.dmg (this machine's architecture)
build-desktop.cmd # the same build with a version bump first: patch by default, or minor / major / x.y.z / keep
build-desktop.cmd mac # macOS .dmg from Windows: built on GitHub's macOS runners, downloaded here; arm64 (default) / x64 / all
build-desktop.cmd (or node scripts/build-desktop.mjs) writes the new version to tauri.conf.json, Cargo.toml and Cargo.lock, builds, and opens the installer folder; if the build fails it puts the old version back. It does not commit or tag.
A .dmg can only be built on a Mac, so build-desktop.cmd mac (or node scripts/build-mac.mjs) has .github/workflows/mac-build.yml build it and downloads the image to desktop\src-tauri\target\release\bundle\mac-ci. It builds HEAD as pushed to GitHub, so push the branch first; uncommitted changes are not in it, and the version is the one at that commit. A run already going for that commit, or a finished one whose images can still be downloaded, is reused. It needs the GitHub CLI (gh) signed in with an account that may run workflows in the repo.
The build first runs scripts/stage-desktop.mjs, which downloads the pinned Node for the build target (node.exe on Windows, node on macOS, each checked against its SHA-256), builds web/dist, keeps only the target's node-pty prebuilds and stages everything in desktop/bundle (installed as resources\app, or Shoal.app/Contents/Resources/app on macOS). Run it once by hand before npm run desktop:dev or cargo check. To build the Intel app on Apple silicon, run rustup target add x86_64-apple-darwin, then npx tauri build --target x86_64-apple-darwin in desktop/src-tauri.
To install what you built, see "Install" above.
On launch, if the server is not running the shell starts
server/main.tson the bundled Node (node.exeon Windows) in the background (on failure the window shows the reason and a Retry button); if it is already running it connects directly. While the desktop window stays open, a background watchdog automatically restarts the bundled server if it ever exits unexpectedly, and the page reconnects on its own. The port is also read fromWORKBENCH_PORT, and the state directory follows the same rules as the server (below). InheritedNODE_OPTIONSandNODE_PATHare dropped.Closing the window hides it to the system tray by default (configurable in Settings between minimize to tray and quit immediately); click the tray icon (or Dock icon on macOS) or relaunch to bring it back. Choosing Quit in the tray (or
Cmd+Q/ Quit Shoal in the macOS menu bar) stops the server too (whether the shell orstartlaunched it). Quit from the Dock or logging out cannot be held back, so it stops the server without asking. If agents are still running it asks first; Quit all (「全部退出」) follows the same path asCtrl+Con the server, and you can resume the sessions from the panel later. If the shell crashes or is killed, the server and agents keep running. The tray menu also has Show, Open in browser and Reload.Ctrl+W,Ctrl+F,Ctrl+R,F5,Ctrl+Pand similar keys go to the page and the terminal instead of being caught by the browser; use Reload in the tray to refresh. Web links in the terminal open in the default browser.Hooks of sessions started by the desktop app run on the bundled Node, so they work without Node on
PATH(and via PATH-resolved wrappers in<stateDir>/bin, so spaces in the install path are supported). On macOS an app started from Finder or the Dock does not get the terminal'sPATH, so the server reads it once from the login shell ($SHELL -ilc) at startup and adds/opt/homebrew/bin,/usr/local/binand~/.local/bin;claude,codexandagyinstalled there are found (WORKBENCH_SKIP_SHELL_ENV=1skips the shell). Settings stored in browser local storage, such as zoom, collapsed projects and privacy mode, are not shared with Chrome.--port <n>orWORKBENCH_PORTchanges the port;WORKBENCH_STATE_DIRchanges the state directory (default~/Library/Application Support/Shoalon macOS and%LOCALAPPDATA%\Shoalon Windows; while that has nostate.jsonbut%LOCALAPPDATA%\agent-workbenchfrom before the rename exists, the old one keeps being used; it holds the hook config andevents.jsonl, which moves toevents.1.jsonlonce it passes 10 MB).The server only listens on
127.0.0.1and checks Host and Origin; hook callbacks use a token generated randomly at each start.Frontend development: run the server with
npm start(notnode --watch, since a restart kills every running agent); withWORKBENCH_DEV=1,npm run dev:web(Vite, port 5173) is allowed.Project, task and session metadata is written to
<stateDir>/state.json; after a server restart old tasks show as Exited and are not resumed silently (to avoid burning quota unasked), while sessions that were still running when the server stopped surface a top recovery banner with one-click Resume all (「一键全部续接」) or Dismiss (「忽略」). A corrupt file is renamed tostate.json.corrupt-<timestamp>and the server starts from an empty state.
Every push to main, including documentation changes, queues a desktop release. CI advances the patch version past the source version and existing release tags, writes it to tauri.conf.json, Cargo.toml and Cargo.lock, and commits it back to main. It then builds the Windows installer and publishes the Release from that commit; macOS runners then build the Apple silicon and Intel .dmg files from the same commit and add them to that Release. A failed macOS build leaves the Windows release in place, and re-running the failed jobs retries only those. The automatic version commit does not trigger another build. Pushes to other branches run .github/workflows/mac-build.yml, which runs the unit and e2e tests on macOS, builds the app for both architectures and starts the Apple silicon build to check that it brings up its bundled server. It publishes nothing.
Usage
- New project (「新建项目」): enter a name and an existing directory (or click Browse… (「浏览…」) to pick one on this machine).
- Removing a project: hover the project name and click the trash icon to the left of
+. After you confirm, the project and all its tasks (archived ones included) are removed from the workbench and running sessions are ended; the project directory, CLI conversation logs and token stats are kept (marked Deleted (「已删除」) in the stats). Tasks and result cards in the workbench cannot be restored; you can add the same directory again with New project. - Three ways to create a task:
+to the right of a project: pick an agent and it starts right away, no dialog; the agent you last used in that project is listed first.Alt+N: creates a task right away in the project of the focused session, with the agent you used last.- New task (「新建任务」) at the top of the sidebar: the full dialog, where you choose the project and agent and can write the initial request.
- Titles: if left empty, a task with a request takes its first line; a task without one starts as "New task N" (「新任务 N」), and the first thing you send in the terminal (except commands starting with
/) becomes its title. Rename with the pencil button on the task row (shown on hover) or next to the panel title, or double-click the title (Enter saves, Esc cancels); a title you changed by hand is never replaced automatically. - Settings: the sliders icon at the far right of the top bar:
- 「用 AI 自动起任务标题」 (AI task titles; off by default, stored by the workbench server, so it applies to every window); hover the
?next to it for the details. When it is on, the first request still gives the task its first-line title at once, and in the background Claude (Haiku) or Codex (default model at lowest reasoning effort) runs one short headless call that writes a shorter, more descriptive title (agytasks keep their first-line title so headlessagy -pis never invoked). This uses a little of that agent's quota and is not counted in the token statistics. A title you typed or changed is never replaced, and a failed call or one over 60 seconds keeps the first-line title. - 「Antigravity 默认模型档位」: picks the default
--modeltier passed when launching newagysessions. - 「Antigravity CLI 输出与排版优化」 (see docs/agy-output-optimization.md): click 「一键优化」 → 「确定」 to back up existing configs (
.shoal.bak) and non-destructively configureverbosity: "low"+tokyo nightin~/.gemini/antigravity-cli/settings.json, install thealways_onclean terminal formatting & stage-heartbeat rule (~/.gemini/config/rules/shoal-output-style.md), and register the bundled zero-dependencyfast-toolsEager MCP server (hooks/fast-tools.mjs) while preserving your existing model, permissions, and MCP servers.
- 「用 AI 自动起任务标题」 (AI task titles; off by default, stored by the workbench server, so it applies to every window); hover the
- Pasting images:
Ctrl+VorAlt+V(on macOSCmd+VorCtrl+V) pastes an image from the clipboard (the CLI reads the system clipboard itself). Files copied in Explorer or Finder (videos, documents and so on) paste as their full paths withCtrl+V(Cmd+Von macOS), quoted if they contain spaces and separated by spaces (same as Windows Terminal). Dropping an image file saves it to<stateDir>\attachments\and pastes the path (claude and codex treat it as an image attachment; agy only gets the path text). Claude Code's image paste key ischat:imagePaste(defaultalt+von Windows,ctrl+von macOS); if you changed that binding, pasting images stops working. - Links in the terminal: text, code, Markdown, image, video, audio and PDF files inside a registered project open directly in the right-hand Files (「文件」) panel (jumping to the target line when
#L12or:12:3is present, with External open 「外部打开」 available for VS Code). Files outside registered projects, folders and oversized/binary files open in VS Code or the default viewer (programs and shortcuts are only selected in Explorer or Finder, never run). Web links open in a new tab. SetWORKBENCH_EDITORto the path of another editor. - Copy on select: drag to select, double-click a word or triple-click a line in the terminal, and the text is copied to the system clipboard when you release the mouse (like Windows Terminal's copyOnSelect); a single click copies nothing. When the CLI has mouse mode on, hold
Shiftwhile dragging; withoutShiftthe CLI does its own selection, and text it sends back via OSC 52 is written to the clipboard as well. - Clicking with the mouse: Claude Code's fullscreen mode (
/tui fullscreen, or"tui": "fullscreen"in settings) turns on mouse mode, so option menus can be clicked and the wheel goes to Claude. Claude counts "the process went away within 10 seconds of a fullscreen start" as a crash, and after two of those that version turns fullscreen off by itself (fullscreenAutoDisabledappears in~/.claude.json), after which clicks stop working; run/tui fullscreenin Claude once to get it back. When the workbench deletes or archives a Claude task that just started, or stops normally, it waits until the process is 10 seconds old before ending it;stop/restartkill it outright, though, so a freshly started Claude still gets one count. - Click a project name to collapse or expand it; the state is saved in this browser. A collapsed project shows how many tasks need you and how many await review (「N 个在等你」「N 待验收」) next to its name, and jumping there with
Alt+`expands it. - Active / All (「活跃 / 全部」) at the top of the sidebar: Active focuses strictly on currently live active or unapproved review tasks (working / ready / needs you / awaiting review, including exited review tasks and parents with open delegations) and hides approved, exited, archived tasks, empty project groups, and history footers, with a one-click 「查看全部」 fallback when empty; All (default) keeps at most the 2 most recently active exited tasks visible per project and folds older ones behind 「展开其余 N 个已退出」. Expanding or collapsing exited tasks applies locally to that project without changing the global filter, and Archive exited (「归档已退出 (N)」) archives all non-review exited tasks of that project in one click.
- Search:
Alt+Kor the magnifier button at the top of the sidebar filters tasks by title or project name;↑/↓to move,Enterto open,Escto close. Running tasks come first; picking an archived task restores it and opens it. - Auto-archive: an approved task whose session has exited moves to 「已归档」 after 1 day without activity (
WORKBENCH_AUTO_ARCHIVE_DAYS,0disables), and an unapprovedactiveexited task moves after 14 days without activity (WORKBENCH_AUTO_ARCHIVE_INACTIVE_DAYS,0disables); tasks awaiting review (待验收) are never auto-archived. - Drag a project name (the whole row) to reorder projects in the sidebar: drop on the top half of a row to go before it, the bottom half to go after. The order is saved in this browser; new projects go last.
- Privacy mode: the Privacy (「隐私」) button in the top bar blurs project names, task titles, paths and review summaries (not the terminal), and hides tooltips that would show them, so screenshots are safe to share; the setting is saved in this browser.
- With two panes, the folder tag in each pane title shows that pane's project, and tasks currently on screen are marked Left (「左」) or Right (「右」) in the sidebar. Drag a task row onto a pane to open it there (dropping a task that is showing in the other pane swaps the two).
- The left edge of a task row is a state mark: solid amber dot = needs you, breathing blue dot = working, hollow ring = awaiting review (light) / ready (dim), check = approved, small gray dot = exited or archived. A task shown in a pane also has a thin bar in its task color next to the mark. The row ends with its CLI's icon in its brand colors (Claude Code / Codex / Antigravity). Icons come from lobehub/lobe-icons (MIT).
- Zoom scales the whole UI and the terminal font (80%–150%, 5% per step):
Ctrl+wheelanywhere,Ctrl+=/Ctrl+-, andCtrl+0to reset to 100%; or the−/+at the right of the top bar (scroll over them, click the percentage to reset). With a terminal focused,Ctrl+-goes to the CLI instead (it is^_, Claude Code's undo). The setting is saved in this browser. - Token stats: the Token stats (「Token 统计」) tab in the top bar (the Workbench (「工作台」) tab switches back; terminals stay connected). Data comes from the three CLIs' own conversation logs and only covers sessions started by the workbench; it is summarized hourly into
<stateDir>/usage.jsonand kept after tasks are deleted.- Range: today / last 7 days (default) / last 30 days / all / custom dates (local time, end date included).
- Total, input, output (reasoning included), cache reads, cache writes, cache hit rate and request count; the trend chart stacks by hour (ranges up to 2 days) or by day, and hovering shows exact numbers.
- Breakdowns by task, model, vendor, agent and project; deleted tasks are marked Deleted.
- Hit rate = cache reads ÷ (input + cache reads + cache writes). A Claude message is counted only once.
- Refreshes every 10 seconds while the tab is open. Not counted: the headless handoff calls made when switching agents, Claude's internal helper-model calls, and Codex sessions from before its hooks were trusted.
- Keyboard input only goes to the session in the focused panel; click a task in the sidebar to switch.
- Archiving: hover a task row and click
×to end its session process and move it to Archived (「已归档」) under the project (click to expand); if the agent is still working it asks first. Restore (「恢复」) next to an archived task moves it back to the list, then Resume (「续接」) opens the original conversation.×on an archived task deletes it for good (the task and its cards, after confirming). - Resuming: an exited task shows Resume in the sidebar, and the panel bottom has Resume last session (「续接上次会话」) and New session (「新开会话」). Resume opens the last conversation with the CLI's own resume command (claude
--resume, codexresume, agy--conversation), keeping the session ID, in the same panel; if you switched conversations with/resumeinside the CLI, resume opens the one you switched to. If the last session has no conversation log (no message was sent), the panel can only start a new session, and Resume in the sidebar asks whether to start one (a new session replaces the old session's terminal content); cancelling leaves things as they were. The old session's terminal content is replaced by the new session. - Terminal content: the last ~1 MB of each session's terminal output is saved under
scrollback/in the state directory (when the session exits, when Shoal shuts down, and every 30 seconds while it runs), so an exited task still shows its terminal after Shoal restarts. Deleting the task, resuming it or starting a new session deletes it. An older session with nothing saved shows its last reply in the panel instead, with Open transcript (「打开对话记录」) to open the CLI's own conversation file. - The 「单屏 | 双屏 | 文件」 segmented control in the top bar switches between one pane, two panes, and the right-hand Changes & Files inspector. With two panes, clicking in the sidebar replaces the focused pane; the focused pane has a thin task-color line on top of its header, and the other one dims slightly but stays readable.
Alt+1/Alt+2focus the left / right pane, andAlt+Etoggles the inspector panel. - Changes & Files inspector (
Alt+E, or click a project's Git branch chip in the sidebar): reviews agent edits and lets you browse or quick-edit project files in the right slot without squeezing a third column onto the screen. Drag the center divider to resize (double-click to reset to 50%); actions inside the inspector never resize the left terminal or cause PTY redraw flicker.- Changes (「变更」) tab: lists uncommitted files (
M/A/D/R/?with+/-line counts viagit --no-optional-locks), shows an inline unified diff by default, switches to Edit (「编辑」) in one click (Ctrl+Ssaves), and lets you discard single-file changes on hover after confirmation. - Files (「文件」) tab: lazy-loads folders on demand (exposing dotfiles such as
.env*while dimming build folders likenode_modulesand marking Git-dirty entries), supportsCtrl+Pquick search across every project file (gitignored files included, tagged 「已忽略」 and ranked after tracked ones; dependency and cache folders such asnode_modulesandtarget, nested repos and worktrees are skipped), CodeMirror syntax-highlighted editing withCtrl+Fsearch, XSS-safe Markdown preview (预览 | 源码toggle), inline preview of images, video (mp4/webm/mov and more), audio (mp3/wav/flac and more) and PDF with seekable streaming (formats the built-in player can't decode show an External open 「在外部打开」 fallback that uses the system default program), and guards for other binary or> 2 MBtext files. - Concurrent disk safety: when an agent updates an open file on disk, clean views hot-reload silently; if you have unsaved edits, your draft stays intact and a conflict bar lets you reload the disk version or overwrite with your draft.
- Changes (「变更」) tab: lists uncommitted files (
Alt+`jumps to the session that has been waiting for you longest (Chrome does not passCtrl+Tabto web pages).- Permissions: all three CLIs always start with full permissions (both new and resumed sessions) and never ask for approval: claude
--dangerously-skip-permissions, codex--dangerously-bypass-approvals-and-sandbox(which also turns off the sandbox), agy--dangerously-skip-permissions. Agents can edit files and run commands directly, so only use Shoal in project directories you trust. - Status: Starting / Ready / Working / Needs you (amber, with how long it has waited) / Awaiting review / Approved / Exited (「启动中 / 就绪 / 工作中 / 需要你 / 待验收 / 已通过 / 已退出」). Ready means a new session sits at an empty prompt and has not started work; it is not amber and does not count as needing you. An exited task that has not been reviewed still shows 「待验收」 on its row. If Codex says "Hooks need review" on first start, follow the prompt in the terminal to trust them once.
- The page title shows how many things wait for you, e.g.
(3) Shoal(needs you + awaiting review); the desktop app's taskbar title follows it, and the taskbar button flashes when the number grows while the window is in the background. - Awaiting review: when an agent finishes a turn (Stop hook), its last reply becomes a result card, the task moves to Awaiting review, and the Awaiting review counter in the top bar goes up by one; click it to jump to the task that has waited longest. The pane header shows a split pill with Approve (「通过」) and a chevron; the chevron opens a floating popover at the top right of the pane (Continue in a new session 「新会话继续…」, Forward result 「转发结果…」, and View full text 「查看原文」 for the card body) that closes on
Escor an outside click without resizing the terminal. If you keep talking in the terminal the task goes back to in progress, and a new card is made when the next turn ends.- Approve (「通过」): one click in the pane header takes the task out of Awaiting review and leaves it in the list as Approved, not counted under Needs you; talking in the terminal puts it back in progress. Approving does not archive.
- Continue in a new session (「新会话继续…」): write what should happen next in the dialog and click 「开新会话」 (
Ctrl+Enter). A new session opens in the same panel whose initial request contains the original task request, the last result and what you wrote. Use it when the context has grown long and you want to restart from the conclusions; to keep talking to the same session, type in the terminal.
- Live subscription quota: the top bar and each panel's header (next to the agent name) show used percentages for active subscription windows (e.g.
5h 48% · 7d 6%), with exact reset times in the tooltip; windows turn amber from 80%, bold at 100%, and drop out automatically once reset, persisted in<stateDir>/quota.json. Claude Code and agy (Antigravity / Gemini subscription) stream updates via theirstatusLinecommand (preserving any userstatusLineand agy's built-in status line); Codex is read from its rollout transcript at the end of each turn. - Out of quota: when claude reports it is out of quota (rate limit / billing, or a reply like "You've hit your … limit"), that turn makes no result card, a quota banner appears at the top of the panel, and the sidebar shows Out of quota (「额度用完」). There are no out-of-quota samples for codex and agy yet, so they are not detected automatically; switch agents by hand when needed.
- Switching agents: Switch agent (「换 agent」) in the panel title bar, or the button on the quota banner. Choose the CLI to take over and optionally add notes; on submit (
Ctrl+Enter) the workbench makes one short headless call with that CLI (a few seconds to about twenty, using a little quota) that reads the task request, result and feedback cards and the old session's conversation log, and writes a handoff card. It then opens a new session with the new CLI in the same panel, whose first message is the handoff card, your notes and the path to the old conversation log. If generation fails it falls back to a card excerpted from the logs and marks it Excerpted from the logs (「已按记录摘录」). Clicking Expand (「展开」) on the Handoff (「交接」) strip floats the card over the terminal without changing its height. - Forwarding: Forward result (「转发结果…」), in the popover next to Approve in the pane header, sends that result card to another task or a new one. The dialog lets you add a note (a default one is used if you leave it empty), optionally check auto reply-back after the target finishes its turn (exact 1-shot round-trip, zero chrome added to normal terminal panes), and previews the full message. Sending to an existing task is queued while the target is busy, interrupted (
Ctrl+C), holding an uncommitted draft or startup prompt, or within 5 s of typing / 1.5 s of stopping. - Lightweight cross-CLI collaboration (see docs/collab-spec.md): each primary Stop hook atomically updates
<stateDir>/collab/<projectId>/PEERS.mdandturns/<taskId>-latest.md(WORKBENCH_PEERS_FILE, mounted via--add-dirforagy), and spawned sessions get<stateDir>/bin(shoal peers,shoal send,shoal askwith a 4-hop loop breaker and per-sessionWORKBENCH_PEER_TOKEN). - Delegation across CLIs: an agent in any task can hand a whole piece of work to another CLI with
shoal delegate <claude|codex|agy>. Shoal opens that CLI in its own terminal as a child task and the main task keeps working. Each finished round of the child is pasted back to the main task, which reviews it and runsshoal done(accept and close),shoal rework(send back) orshoal cancel. Child tasks are nested under the main task in the sidebar, a "委派" overlay in the main pane shows what each child is doing, and a click opens the child beside it. Archiving the main task closes its children. The "允许主 agent 主动委派" setting (on by default) tells Claude Code, Codex and Antigravity sessions about these commands at launch, together with the "分工与评审规则" setting: by default it says, from each vendor's own docs and hands-on use, what each CLI is good and weak at, which work is worth handing to which CLI, how to get an independent second plan from another CLI, when to ask the other two for a review, and which findings block delivery. Edit it to your own split, or clear it to inject nothing.shoal delegate <agent> --reviewdispatches a reviewer whose prompt keeps it read-only for the first review and every re-check, and that returns a PASS/FAIL verdict with BLOCKING / NON-BLOCKING findings; sending it to both other CLIs makes a three-way review.shoal delegate <agent> --plandispatches a read-only advisor that drafts its own independent plan (recommendation, alternatives and trade-offs, risks) for the main task to merge with its own. Main and child tasks currently share one working directory.- Note: Antigravity's FAQ says that using third-party software to access an Antigravity login violates its Terms of Service, and that wrapping
agyinside third-party coding agents or applications is not supported under consumer plans. Shoal runs the native interactiveagyyou installed, but judge the risk for your own account.
- Note: Antigravity's FAQ says that using third-party software to access an Antigravity login violates its Terms of Service, and that wrapping
- Mobile remote control & lock-screen alerts (see docs/mobile-guide.md and docs/mobile-spec.md): self-hosted isolated mobile gateway (
47801by default, zero loopback auto-login, QR + desktop 6-digit PIN pairing, instant device revocation, zero desktop ConPTY resize, read-only Git diff drawer, and emergency touch keys). Supports same-Wi-Fi LAN, zero-account 1-click Cloudflare Quick Tunnel (trycloudflare.com), custom-domain Cloudflare Named Tunnel (+ optional Cloudflare Access JWT verification) or Tailscale Serve, Windows stay-awake lock, and sanitized webhook alerts for Feishu/Lark, Discord, Slack, Telegram, and generic HTTPS webhooks. All credentials stay strictly local in<stateDir>/mobile.json.
Testing
npm run typecheck
npm test # vitest unit tests
npm run e2e # e2e with a fake CLI; artifacts in .tmp/m1/, .tmp/m2/, .tmp/m3/, .tmp/ui-redesign/ and .tmp/token-stats/
npx vite build; if ($?) { npx playwright test -c e2e-real/playwright.real.config.ts } # smoke test with the real CLIs, uses a little quota; artifacts in .tmp/m2/real/
npx vite build; if ($?) { npx playwright test -c e2e-real/playwright.handoff.config.ts } # real-CLI agent switching (claude→codex→agy→claude); artifacts in .tmp/m3/real/
The e2e tests use test/fixtures/fake-agent.mjs to simulate an interactive CLI (needs WORKBENCH_FAKE_AGENT=1, already set in the Playwright config), and Playwright uses the local Chrome (channel: 'chrome').
License
MIT. Claude Code, Codex and Antigravity are products of Anthropic, OpenAI and Google respectively; this project is not affiliated with them.
関連プロジェクトを探す
読み込み中…