
WorkFlow Companion
io.github.TeamDzXv1.5.0更新于 Oct 9, 2026
Claude on Windows or Linux works in your WorkFlow tasks, notes and projects via your own iCloud.
概览
让 Windows 或 Linux 上的 Claude 通过用户自己的 iCloud 读取并操作 WorkFlow 的任务、笔记和项目。
- 功能
- 提供 29 个 WorkFlow 工具,包括 workflow_queue、workflow_get_task、workflow_comment、workflow_update_task、workflow_create_task、workflow_list_notes、workflow_reply_note、workflow_list_projects、workflow_list_documents、workflow_update_document、workflow_draft_email 和 workflow_state。该 companion 不会直接修改 WorkFlow 数据,而是把命令留在用户私有 iCloud 数据库的一个区域中,由 iPhone、iPad 或 Mac 上的 WorkFlow 按应用自身的检查执行,并记录在 Command History 中。读取来自每次变更几秒后发布的快照。
- 适用场景
- 当你希望 Windows 或 Linux 电脑上的 Claude 处理 WorkFlow 的任务、笔记和项目,例如在讨论串中回复、勾选清单和更新文档时使用。它也可以无人值守运行:开启唤醒后,计划任务每两分钟检查一次队列,并为新工作启动一个 Claude Code 会话。
- 运行要求
- 通过 npx 启动的本地进程,需要 Node 18 或更高版本。iPhone、iPad 或 Mac 上需运行 WorkFlow 5.2 或更高版本并开启 companion 开关。安装时需用 WorkFlow 所用的 Apple 账户登录,并粘贴登录页面显示的令牌;令牌保存在 ~/.workflow-companion/token.txt。无人值守唤醒需要已安装并登录 Claude Code。Mac 用户被指向另一个桥接工具。
安装
在 SourceWeft 中
- 打开 控制台中的 WorkFlow Companion,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
WorkFlow Companion
This repository is where WorkFlow Companion is released and supported: downloads (
WorkFlow.mcpbfor Claude Desktop) are on the Releases page, and bugs and requests go in Issues. The package itself installs from npm. On a Mac, use the open-source workflow-agent-bridge instead. All of Opticell's free tools for Claude: opticell-mcp.
Lets Claude on Windows or Linux work in your WorkFlow tasks, notes and projects: reading the queue, replying in threads, ticking checklists, filing notes, updating documents. It works in Claude Code, Claude Desktop, or any MCP client.
Free. It needs WorkFlow 5.2 or later on an iPhone, iPad or Mac, which does the actual work. No Mac needed:
The companion never edits your WorkFlow data itself. It leaves commands in a zone of your own private iCloud database. WorkFlow applies them with the same checks as the app (read-only trial gate, email permission, the agent's signature) and lists every one in Command History. Nothing passes through Opticell's servers.
Which device answers. A Mac with WorkFlow open answers within seconds. An iPhone or iPad answers when iOS lets WorkFlow run: usually within minutes, sometimes only when you next open it, and not while WorkFlow has been swiped away in the app switcher. With both switched on, the Mac answers while it's awake and the iPhone stands by. Every command is applied exactly once, however many devices are on.
Set up
-
In WorkFlow on an iPhone or iPad: Settings → Windows Companion → Answer the Companion. On a Mac: Settings → Agent Bridge, then the Agent Bridge and Cloud Bridge switches.
-
On this computer, with Node 18 or later:
It opens https://companion.opticell-limited.com to sign in with the Apple Account WorkFlow uses on your iPhone or Mac, then asks you to paste the token that page shows.
-
Add it to Claude:
--scope usermakes it available in every project on this computer.Claude Desktop needs no terminal. Download
WorkFlow.mcpbfrom the product page and double-click it. Then sign in at https://companion.opticell-limited.com and paste the token into Settings → Extensions → WorkFlow Companion → Sign-in token.
Check it any time with npx -y @opticell/workflow-companion status.
Its name
Setup asks what Claude on this computer should be called in WorkFlow
("Companion" unless you choose, e.g. --name Server). That name is how work
reaches it rather than the Mac's own Claude:
- Assign a task to it. WorkFlow offers the name once it has heard from the companion, and the Ask sheet lets you pick it.
- Write
@Serverin a comment or a note. A mention in a shared project's thread doesn't count, because other people can write there. - What it writes is signed with its name, so a thread shows which Claude did what.
- One name, one computer. Setup refuses a name another computer already
answers to, and asks for another. Every command is checked the same way,
which covers Claude Desktop, where the name is a setting. Use
setup --takeoverwhen this computer replaces the other one. A name frees up by itself once its computer has been silent for two weeks. @Claudealways means Claude on the Mac. A companion can't take that name, and mentions match whole words only, so@Claude2never wakes the Mac.
Claude Desktop users set the name in the extension's settings.
Working on its own
With waking on, @Server from the app is enough: nobody has to be at this
computer. Turn it on once Claude Code is installed and signed in here:
- Every 2 minutes a hidden scheduled job (Task Scheduler on Windows, cron elsewhere) checks this name's queue in iCloud. That's one small call; the task list is downloaded only when it changed.
- New work starts one Claude Code session (
claude -p, no window). It reads the task, comments that it's picked it up (your phone shows "Server is on it"), does the work and replies in the thread. - What counts as new: a task newly assigned to the name, a new
@Servercomment from a person, a person's follow-up on an assigned task, or an edited note that mentions it. Its own replies never wake it. - Handled once. One session at a time; work already handled never starts another. A session that couldn't start at all (not signed in to Claude, a usage limit) is retried twice more, then says so in the thread.
- A time limit, 45 minutes by default (
--max-minutes). A session stopped by it says so in the thread. - What it may do. By default only the WorkFlow tools (
mcp__workflow): reading tasks and replying. To let it run commands on this computer, pass--allow-tools "mcp__workflow Bash Read"(any Claude Code permission rules). Anyone who can write@Serverin your WorkFlow could then run commands here, so decide that deliberately. Shared projects never reach it. - Windows: a scheduled task normally runs only while the user is logged in. To run while logged off, change the task "WorkFlow Companion wake" to "Run whether user is logged on or not" in Task Scheduler.
--workdirsets the folder sessions start in (your home folder otherwise),--modelthe Claude model,--claudethe path to Claude Code if it isn't found.--skip-existingtreats what's already queued as handled.- The log is
~/.workflow-companion/wake.log.wake-offstops it all.
Commands
Worth knowing
- Something has to be answering. A command sent while nothing is waits in
iCloud and runs when WorkFlow next looks. The tool says so, and its receipt
shows later in
workflow_state. - Reads come from a snapshot. WorkFlow publishes it a few seconds after each change, so a read straight after a write can lag slightly.
- Files don't travel yet. Attaching a file, or adding a new version of a document, has to be done in WorkFlow itself.
- The token is a password.
~/.workflow-companion/token.txtopens your WorkFlow data in iCloud. Apple replaces it on every request, and the companion saves each replacement at once. Several Claude sessions on one computer can share it: they take turns. Don't copy it to another machine. Each computer should run its ownsetup. - Keep-alive. Apple ends a sign-in left unused for somewhere between 9 and
14 hours. The companion renews it every two hours while Claude has it
running. Setup also schedules
workflow-companion keepaliveevery three hours: in Task Scheduler on Windows (it runs without a console window) or in cron elsewhere.signoutremoves that schedule;--no-scheduleskips it. - "Sign in again" means Apple ended the session (HTTP 401/421), for
example after the computer was off for a long time. Run
setupagain.
Tools
The same 29 tools as the Mac's Agent Bridge MCP server, including:
workflow_queue, workflow_get_task, workflow_comment,
workflow_set_status_line, workflow_check_subtasks, workflow_update_task,
workflow_create_task, workflow_list_notes, workflow_reply_note,
workflow_list_projects, workflow_list_documents, workflow_update_document,
workflow_draft_email and workflow_state.
© Opticell Limited · https://www.opticell-limited.com/companion
来源:README.md,提交 0bc9e4a
工具
0版本历史
1- v1.5.0最新Oct 9, 2026


