Run a team of coding agents on your Mac. Shifu tells you which one needs you.
Claude Code, Codex, Kimi, Antigravity, opencode, Pi and more, each in its own real terminal, in one window.
Download preview · Quick start · Docs · 中文
Shifu 0.4.6 with demo sessions: the projects, terminal output and states are staged.
- What needs you comes first. When an agent stops for an approval or a reply, it moves to “Waiting for you” at the top of the sidebar. ⌘J jumps to the next one, approvals first.
- Real terminals, untouched. Each agent runs its own CLI with its own controls. Shifu adds status hooks, not a layer on top.
- Closing the window stops nothing. A dedicated tmux server owns the sessions. Reopen Shifu and your tasks and split layouts come back.
- Stays on your Mac. No account, no telemetry. See Privacy.
Works with Claude Code · Codex · Kimi · CodeBuddy · Antigravity · opencode · Pi, plus optional StepFun and Qwen Code. Your own CLI can be added in agents.json.
Early version. Primarily used on Apple Silicon Macs, available as an Apple Silicon preview package (signed with Apple's Developer ID and notarized by Apple) or source build. Before the first conversation Shifu asks once how agents may act, with each agent's own settings preselected. Only if you choose no-confirmation mode do Claude, Codex, CodeBuddy, Kimi, Qwen Code and opencode edit files and run commands without individual approval (upgrades keep their existing setting, see permission mode). Read the launch instructions and known issues before installing.
Download, copy to ~/Applications, open, tick your projects and press Start: four steps to your first conversation. No Rust or tmux needed (the app carries its own tmux), and no need to install or sign in to an agent first: most agents install from the first-run screen; Claude and Codex can sign in from the first screen; other agents follow their own setup (StepFun and Qwen need an API key first, see the StepFun and Qwen guides). The window follows your system language by default; pick English or 中文 under Shifu → Language, and the CLI follows too.
Paste this into Claude Code or Codex:
Install Shifu (https://github.com/Nalu-Lab/shifu) for me. Read README.md and docs/INSTALL.md first.
1. Confirm this is an Apple Silicon Mac and check which agents I have installed. Do not install tmux (the app carries its own); a missing or signed-out agent needs nothing up front: most agents install from Shifu's first screen; Claude and Codex can sign in from the first screen; other agents follow their own setup (StepFun and Qwen need an API key first, see their guides).
2. Download the ZIP and SHA256SUMS from release remote-v0.4.16-preview.1 (https://github.com/Nalu-Lab/shifu/releases/tag/remote-v0.4.16-preview.1), not any other release. Verify the download and extracted-file checksums. Use the packaged app and CLI by default; do not install Rust or build from source.
3. Follow the package instructions: copy (do not move) Shifu.app into ~/Applications (create the folder if it does not exist) and keep the extracted folder. The app carries its matching CLI for conversation status, notifications and the project manager, so nothing else is needed. Ask me whether I want shifu in a terminal; if so, install the package's bin/shifu to ~/.cargo/bin/shifu, add ~/.cargo/bin to the current shell PATH, verify shifu --help, and explain the full-path option for new terminals. For an existing installation, explain the brief quit needed for the upgrade and preserve the old app, CLI and sessions. Do not overwrite a running app.
4. Tell me that the package is notarized by Apple, so macOS only asks once whether to open it, and that: Before your first conversation, Shifu asks once how agents may act, with Agent's own settings preselected; change it any time under Permissions in the new-task form. Leave system security prompts to me. Configure StepFun, computer use, a remote relay or background follow-up only if I request them.
5. When it opens, the first screen finds agents and projects: let me tick the projects and decide on the No confirmation switch (off by default, which is Agent's own settings) before pressing Start. On the first Codex launch, let me review its hooks before deciding whether to trust them.
- Download the ZIP and
SHA256SUMSfrom release remote-v0.4.16-preview.1. In the download folder, runshasum -a 256 -c SHA256SUMSand extract the ZIP once it saysOK. - Copy (do not move)
Shifu.appto~/Applications: select it in Finder and press ⌘C, then ⌘V in~/Applications; or runditto Shifu.app ~/Applications/Shifu.appin the extracted folder. If that folder does not exist yet, create it:mkdir -p ~/Applications, or press ⇧⌘H in Finder to open your home folder and make a new folder namedApplications. Keep the extracted folder: installing the optional terminalshifuverifies all of it. - Open Shifu. The package is notarized by Apple, so macOS asks only once whether to open it.
- The first screen finds the agents and projects on this Mac: tick your projects and press Start to get one task per project, with the first conversation open. If an agent is missing, press Install on that screen to run its installer in a Shifu terminal tab (on a Mac without Node.js, Shifu first downloads its own copy from nodejs.org into
~/.shifu/runtimefor agents installed with npm, with no admin password; a few only have an install link); Claude and Codex can sign in from the first screen with Sign In; other agents follow their own setup (StepFun and Qwen need an API key first, see the StepFun and Qwen guides). Or press Skip and use Add Project on the empty page later.
- Why your own
~/Applicationsrather than/Applications: the app updates itself in place, and in/Applicationsan update may ask for an administrator password; a separately installed terminalshifualso looks in~/Applications/Shifu.appfor the remote gateway. - Codex asks you to review its hooks on first launch; read them before deciding whether to trust them.
- Shifu → Setup Checklist… shows what is missing at any time. Remote setup and pairing is only for connecting another Mac.
Use shifu in a terminal (optional)
The app carries its matching CLI (Shifu.app/Contents/Resources/bin/shifu) for conversation status, notifications and the project manager, so nothing else is needed. Install a copy only to type shifu in a terminal, from the extracted package folder; the folder must be complete (Shifu.app copied out, not moved) for the checksum below to pass.
Verify on its own first, and continue only when every line says OK:
shasum -a 256 -c SHA256SUMSThen install the CLI. This block verifies again and changes nothing if verification fails; an existing web folder is renamed as a backup, not deleted:
shasum -a 256 -c SHA256SUMS && (
set -e
mkdir -p "$HOME/.cargo/bin"
install -m 755 bin/shifu "$HOME/.cargo/bin/shifu"
if [ -e "$HOME/.cargo/bin/web" ]; then mv "$HOME/.cargo/bin/web" "$HOME/.cargo/bin/web.before-$(date +%Y%m%d%H%M%S)"; fi
ditto bin/web "$HOME/.cargo/bin/web" # runtime for shifu web
)
export PATH="$HOME/.cargo/bin:$PATH"- The terminal CLI uses your own tmux if you have one, otherwise the one inside
Shifu.app; nothing to install. - The PATH command applies to the current terminal. In a new terminal without that PATH setting, use
"$HOME/.cargo/bin/shifu"or add that directory to your shell configuration. - CLI only:
shifuopens the workbench,shifu new claude ~/projstarts an agent,shifu lslists sessions,shifu agentsshows which agent CLIs this Mac has (add your own CLI in~/.shifu/app/agents.json, see docs/AGENTS.md), andshifu jumpopens a waiting conversation.
Upgrading
From 0.4.4 on, Shifu updates itself: Shifu → Check for Updates…, plus a quiet check once a day after opening; Update and Restart does the rest while agent conversations keep running in tmux. The CLI inside the app and an installed Computer Use helper come along. 0.4.3 and earlier need one last manual download (Option B above), then update in the app from then on; 0.4.4 and earlier also need tmux installed separately, which the app carries from 0.4.5 on. Coming from 0.4.6 or earlier, the Computer Use helper needs Accessibility and Screen Recording granted once more. See Upgrading in the install guide.
| You… | Shifu… |
|---|---|
| Create a task and pick an agent, folder and model | Starts a session in its own tmux server and listens for that agent's state |
| Let an agent work until it stops for approval or a reply | Marks it in the sidebar and lists it under “Waiting for you” |
| Press ⌘J, or click a waiting conversation | Opens its task and activates the original terminal |
| Drag a tab to the side or bottom of another panel | Puts terminals side by side or above each other, each keeping its own controls |
| Click a file path in a terminal | Opens it in Shifu, the default app or Finder; URI-encoded names, Markdown and terminal file labels, quoted names with spaces or brackets and wrapped paths all work |
| Quit Shifu and reopen it | Finds the agents still running and restores tasks and split layouts |
The CLI works on its own too: shifu opens the workbench, shifu new claude ~/proj starts an agent, shifu ls lists sessions and shifu jump goes to the one that is waiting. Design notes in Architecture (Chinese).
Shortcuts
| Key | Does |
|---|---|
| Cmd+N | New task |
| Cmd+T | Add an agent to the current task |
| Cmd+W | Close the current panel (the agent keeps running) |
| Cmd+J | Jump to a waiting conversation, approvals first |
| Cmd+, | Appearance |
| Double-click a tab | Rename the agent; leave it empty to go back to the topic name |
| × on a tab | Hide the tab while the agent keeps running, or end it; ending a running agent asks again |
| Try | You'll see |
|---|---|
| Open two agents in one task, then drag one tab to the right edge | The two agents' terminals side by side |
| Click another conversation under “Waiting for you” | Its task opens and its terminal becomes active |
| Click “+” at the top left, then switch agents | One form for the project, agent, model and thinking level; the choices come from what is installed on this Mac |
Recorded with an earlier version, in Chinese, with example sessions, terminal content and quotas.
Conversation search, quotas and process usage live in the same window. The rest is optional and set up only when you want it:
Remote Macs, phone, browser and Computer Use, background follow-up and more
| What you want to do | Where to start |
|---|---|
| Enter another Mac's agent terminals from local Shifu | Remote setup and pairing, using your own HTTPS relay; remote sessions are grouped by task and searchable too (update the remote gateway for grouping) |
| Drive a remote Mac without opening a window | shifu remote lists sessions, sends messages, answers prompts and waits for an agent to finish; shifu remote mcp gives the same tools to Claude Code, Codex and other agents. CLI and MCP |
| Return to a running session from your phone | Phone access, with a separately installed local service and private network |
| Let agents inspect and operate local windows | shifu computer, an independent macOS helper |
| Let agents inspect pages, operate elements and manage tabs | shifu browser, the pinned official Playwright CLI; supports isolated browsers and explicit attachment to existing Chrome |
| Attach existing Chrome task tabs after one-time enablement | Chrome bridge, up to three exact bindings, no per-page click, with global pause |
| Let several agents research the web at once | shifu web: headless pages sized to free memory, queued when full, released by the agent when done |
| Keep long tasks running | The cup menu, with display modes, timers and closed-lid operation |
| See the overall state or relay a message | The project manager in the sidebar; relaying still requires your explicit instruction |
| View daily analysis | Daily Analysis in the sidebar, with your own data sources; scheduling and missed-report catch-up |
| Follow up on existing Codex sessions while away | Bounded background follow-up, a script requiring reviewed goals, authorization and a deadline; also included in the preview package |
| Add input to a working conversation and track actual batch outcomes | A durable input queue and receipt-based task progress, with stalled outcomes reported to the original controller. Setup and limits; needs the matching app and CLI |
| Record Git worktree handoffs or restore an exited session | workspace / resume |
| Use Bailian Token Plan with Qwen Code | Qwen setup, requiring your own Qwen CLI and key |
| Use a Step Plan subscription with StepFun | StepFun setup, with Node/Pi and your own key |
| Add an animal companion | Click “+” next to My Bots in the sidebar. Choose a companion, or use Random Animal before deciding whether to add it |
Guides marked (Chinese) are written in Chinese only.
| Topic | Guides |
|---|---|
| Install and update | Install guide · Updates · macOS permissions across updates |
| Other Macs and your phone | Remote setup and pairing · Phone access (Chinese) |
| Agents | Agent table and your own CLIs · Qwen Code · StepFun |
| Browser and Computer Use | shifu computer (Chinese) · shifu browser (Chinese) · Chrome bridge · shifu web (Chinese) |
| Long-running work | Cup menu (Chinese) · Background follow-up · Workspaces and session recovery · Daily analysis · Progress page |
| Development | Contributing · Architecture (Chinese) · First-run design notes (Chinese) · Releasing · Build caches · Changelog |
Shifu provides no public hosted account and collects no telemetry. State, tasks and layouts stay on your Mac in ~/.shifu/app (~/.shifu for the CLI). It uses its own tmux socket (shifu-app, shifu for the CLI) and leaves your usual tmux alone.
What Shifu touches for each agent, quotas, remote and background follow-up
- Hooks for Claude Code, Codex and CodeBuddy are passed as launch arguments to the processes Shifu starts. Shifu does not change your
~/.claude/settings.jsonor~/.codex/config.toml. - Kimi: Kimi only reads its own config file, so Shifu writes hooks into
~/.kimi-code/config.toml. Your own hooks stay, and the file is backed up toconfig.toml.before-shifubefore the first write. Kimi sessions started outside Shifu call these hooks too, but they do nothing when the session was not started by Shifu. - Qwen Code: configuration and sessions use an isolated
SHIFU_HOME/qwendirectory. Credentials come from the environment, an optional user-managed local file or a compatible vault; key values are not written into generated settings. Setup. - opencode: the status plugin lives in
SHIFU_HOME/opencodeand is loaded throughOPENCODE_CONFIG_CONTENT, merged with your config;~/.config/opencodeand a project's.opencode/are not edited. Pi: your ownpi, extensions and models, plus one--extension(Shifu's status extension inSHIFU_HOME/pi). - Antigravity: writes a
shifu-statusgroup in~/.gemini/config/hooks.json, keeping other groups. An existing file is backed up tohooks.json.before-shifubefore its first update. Its tool hook approves calls only for an Antigravity that Shifu started in no-confirmation mode; elsewhere, including Antigravity run outside Shifu, it stays neutral and Antigravity asks as usual. - Quotas: Claude's come from the data Claude hands to its statusLine (your own statusLine still shows as before); Codex's and CodeBuddy's are read from local session logs. Kimi's are queried using Kimi Code's current local login token without storing a separate copy. Antigravity usage comes from the signed-in
agyCLI. - The local phone gateway listens on
127.0.0.1; the new remote module can use your own HTTPS relay, with terminal data and requests in an end-to-end encrypted channel. Use a relay whose web client you trust. Connection guide. - Optional background follow-up sends necessary conversation and artifact content to the current Codex model. State, dispatched messages and receipts remain in the private run directory. See operation and stopping boundaries.
- Only used on macOS (Apple Silicon). Linux and Windows are untried; notifications and drag and drop use macOS interfaces.
- Expired Kimi Code credentials prevent quota refreshes. Shifu keeps the last result until running Kimi refreshes its login.
- Phone access from outside the Mac requires a separately configured private network.
- Two optional local data sources are wired in: the progress page reads each project's
GOALS.mdand WorkBuddy's local tasks, and new-reply notifications first check a local judgement log from a tool called Jev. Without those files they are skipped.
When many agents work at once, how does a person get called only when they are really needed?
| If you like… | You could |
|---|---|
| Terminals and xterm.js | Search inside a terminal |
| Wiring up agents | Gemini CLI, Cursor CLI and others: adapt their hooks so their state shows in the sidebar |
| Cross-platform work | Notifications, drag and drop and packaging on Linux |
| Interaction design | How to order “Waiting for you”, when to notify and when not to interrupt |
Issues and pull requests are welcome; CONTRIBUTING.md describes how work moves from an issue to main.
Build from source
Requires Rust and Node 20.19 or 22.12+.
brew install tmux
git clone https://github.com/Nalu-Lab/shifu && cd shifu
cargo install --path .
cd app && npm install
npm run build:desktop -- --debug
# Open the app path printed by the build log in the managed .noindex cacheDevelopment
cargo test && cargo clippy -- -D warnings # CLI and hooks
cargo build --release && bash scripts/smoke.sh # smoke test: own socket, temp folder, fake agents
python3 tests/test_autopilot.py # isolated controller fixtures; no live dispatch
cd app && npm test && npm run build # frontend tests and type check
cd app/src-tauri && cargo test # app backend
cd app && npm run tauri dev # dev modeDeveloper build caches default to 8 GiB / 3 idle days; see build-cache documentation.
Set SHIFU_APP_HOME and SHIFU_APP_SOCKET while developing so test data stays apart from the agents you are using. The README screenshots come from python3 site/tools/readme_shot.py en|zh, which stages demo sessions in an isolated copy of the installed app.
MIT © Yutai Lin. Third-party code and artwork are credited in THIRD_PARTY_NOTICES.md.
The original SHIFU process plugin remains at process-plugin-final.
OntoPoc is an ontology tool for MCP / Claude: draft and check ontology definitions from business tables. Docs.