当前位置: 首页 > Skill >

Coding Agent Orchestrator

Coding Agent Orchestrator

Coding Agent Orchestrator

控制 Varie Workstation 会话(Claude Code 多会话编排)。使用场景:(1)处理/开始/恢复编程项目,(2)检查...

1.0.1 2026.11.26 389
获取Skill文件查看使用说明
作 者:沈澄 许可证: 更新时间:2026.11.26
本文目录展开

Workstation Control

Control Varie Workstation coding sessions via wctl.

Step 0: Check Pending Prompts (ALWAYS DO THIS FIRST)

Before ANY routing or session work, check if a session is waiting for user input:

cat ~/.openclaw/workspace/pending-prompts.json 2>/dev/null || echo '{"prompts":[]}'

If prompts array is non-empty AND the user's message looks like a response (a number, "approve", "yes", "no", "reject", short answer, or references a project in the pending list): → This is a reply to a pending prompt. Go directly to "Responding to Session Prompts" section below.

If prompts array is empty OR user's message is clearly a new request (mentions a different project, asks to start/create something, etc.): → Continue to Smart Routing below.

Smart Routing (Main Workflow)

When the user mentions working on a project (e.g., "work on my-api", "resume frontend work", "start auth refactor"), follow this decision tree silently — do NOT ask the user unless you hit an ambiguous case:

Step 1: Check daemon + list sessions

wctl list

(If daemon not running, tell user to start the Workstation app.)

Step 2: Match project

Look at the repo field in each worker. Match the user's project mention against repo names (fuzzy — "frontend" matches "my-frontend-app", "api" matches "backend-api-service").

If session exists and task context aligns (user's request fits the current taskId/workContext): → wctl dispatch <session-id> "<user's message>"

If session exists but task context doesn't align (user wants to work on something different in the same repo): → Ask: "There's already a session for {repo} working on {taskId}. Should I send this to that session, or create a fresh one?"

If no session exists for the project: → Go to Step 3.

If multiple repos match (e.g., "api" could be frontend-api or backend-api): → Ask which one.

Step 3: Auto-create session (no matching session found)

wctl discover

Find the project path from the discovered list, then:

wctl create <repo> <path> <task-id>

Derive task-id from the user's message (e.g., "work on auth refactor" → task-id: auth-refactor). Keep it short, lowercase, hyphenated.

After creation, confirm: "Started new session for {repo} ({task-id})."

If project not found in discover results, ask the user for the repo path.

Commands Reference

Command Use
wctl status --human Check daemon alive
wctl list List sessions (JSON, for parsing)
wctl list --human List sessions (readable, for user)
wctl dispatch <id> "<msg>" Send message to existing session
wctl dispatch-answers <id> <a1> <a2>... Send multi-question answers. Use next:N for multi-select
wctl create <repo> <path> [task] Create new session
wctl escape <id> Send Escape key (cancel prompt/menu)
wctl interrupt <id> Send Ctrl+C (stop running process)
wctl enter <id> Send Enter key (confirm/dismiss)
wctl screenshot <id> Screenshot a session (focus + capture)
wctl screenshot --screen Screenshot main display
wctl set-remote-mode on|off Enable/disable remote mode (bridge auto-focus for screenshots)
wctl discover Scan for project repos

Session Control (Escape / Interrupt)

When the user wants to stop, cancel, or interrupt a session:

User says Command
"stop session X", "cancel", "kill it", "abort" wctl interrupt <id> (sends Ctrl+C)
"escape", "go back", "cancel prompt", "dismiss" wctl escape <id> (sends Escape key)
"press enter", "confirm", "continue", "submit" wctl enter <id> (sends Enter key)

Strategy: If unsure, try escape first (safe — cancels UI prompts). If still stuck, use interrupt (harder — sends SIGINT).

Screenshots

To show the user what a session looks like:

# 1. Capture the session
wctl screenshot <session-id>
# Returns: { "status": "ok", "imagePath": "/path/to/screenshot.png" }

# 2. Send to user using the built-in message tool

To deliver the screenshot, use your built-in message tool (not bash) with action: "send" and mediaUrl pointing to the captured image path. The message tool is session-bound — it automatically targets the channel and user you're currently chatting with. No need to specify channel or target manually.

If the message tool is unavailable, fall back to the CLI:

openclaw message send --media <imagePath> --channel <channel> --target <target>

Replace <channel> and <target> with the values from the current conversation (e.g., telegram + the user's chat ID, or whatsapp + their phone number).

For full screen (e.g., to see Chrome, other apps): wctl screenshot --screen

When to use: User says "show me", "screenshot", "what does it look like", "what's happening in session X".

Always send the image via openclaw message send --media after capturing — wctl only saves the file locally.

Critical Rules

  1. dispatch for existing sessions — always. It types directly into the terminal. Never use wctl route (it may restart Claude and disrupt work).
  2. Never prepend claude to messages — just pass the user's message as-is to dispatch.
  3. Add --human when showing output to user — JSON otherwise for your own parsing.
  4. Ask when unsure — if you can't confidently match the user's message to exactly one session/project, ask to confirm. Wrong dispatches disrupt real coding work. Autonomy is good, but correctness matters more.
  5. Never guess or hallucinate — don't invent project names, session IDs, or options. Always check wctl list and pending-prompts.json for ground truth.
  6. Use "Chat about this" as fallback — if you can't confidently map the user's answer to option numbers for a multi-question prompt, use --chat-arrows 20 to select "Chat about this" and then dispatch their message as text. A stuck question modal is worse than falling back to chat.

Responding to Session Prompts

When Step 0 finds pending prompts and the user's message is a response:

Step 1: Identify the target session

The pending prompt has a project field. Use it to find the session:

wctl list

Find the session whose repo matches the pending prompt's project. Use its sessionId.

If multiple prompts are pending, match the user's message to the most relevant one (by project name mention or most recent).

Step 2: Map intent to response

Plan approval (4 options):

User says Dispatch
"1", "clear context", "bypass all" wctl dispatch <id> "1"
"2", "bypass permissions", "yes bypass" wctl dispatch <id> "2"
"3", "approve", "yes", "go ahead", "lgtm", "manually approve" wctl dispatch <id> "3"
"reject", "no", feedback like "change X to Y" Two steps: wctl dispatch <id> "4" then wait 2s then wctl dispatch <id> "<their feedback>"

Default to option 3 ("yes, manually approve edits") when user says generic approval like "yes", "approve", "go ahead".

Important for option 4 (feedback/reject): This is a two-step process. First dispatch "4" to select the text input option, wait 2 seconds for the text prompt to appear, then dispatch the feedback text. Example:

wctl dispatch abc123 "4"
sleep 2
wctl dispatch abc123 "don't modify the database schema"

Question — ALWAYS dispatch the OPTION NUMBER, never text:

Look up the user's answer in the pending prompt's questions array and find the matching option number. Example: if options are ["1. Night", "2. Day", "3. Morning"] and user says "night", dispatch "1" (not "night").

User says Action
A number ("1", "2") Dispatch that number directly
A word matching an option label ("night", "dog") Find the option number and dispatch the NUMBER
Free text not matching any option Dispatch the text (for "Other" option)

Single question: Use regular dispatch: wctl dispatch <id> "2"

Multiple questions: Use dispatch-answers — it sends each answer without Enter (Claude auto-advances on single-select), then sends Enter at the end to submit. Map EACH answer to its option NUMBER, then pass them all in one command:

wctl dispatch-answers <id> 2 1 3

This sends: "2" → wait → "1" → wait → "3" → wait → Enter (submit). No chaining or sleep needed — timing is handled internally.

Multi-select questions (checkboxes — check the multiSelect field in pending-prompts.json): Typing a number toggles it on/off but does NOT advance (cursor stays at position 1). After selecting all options, use next:N to arrow-down N times to the "Next"/"Submit" button and press Enter. N = the number of options for that question (including "Other"), from questions[i].options.length.

wctl dispatch-answers <id> 1 2 next:5 2

This sends: "1" (toggle) → "2" (toggle) → arrow-down×5 to "Next" → Enter → "2" (next question, single-select) → Enter (submit all).

Example with 4 questions (multi/5opts, single, single, multi/5opts):

wctl dispatch-answers <id> 1 4 next:5 2 1 1 3 next:5

Each next:N is self-contained — N is always questions[i].options.length for that specific multi-select question.

How to tell if a question is multi-select: The pending prompt's questions array has a multiSelect field per question. If multiSelect: true, you MUST add next:N after their selections. If multiSelect: false (or missing), it's single-select and auto-advances — no next needed.

If the last question is multi-select, use next:N as the last token — it will click "Submit" instead of "Next" (same button position). The final Enter to confirm all answers is sent automatically after all tokens.

"Chat about this" — at the very bottom of the question modal (below all options and Next/Submit), there's a "Chat about this" option. Arrow keys do NOT wrap/circulate, so you can safely overshoot. Use --chat-arrows N to select it. Calculate N based on the first question only:

  • First question is multi-select with K options (incl. Other): --chat-arrows K+1 (extra arrow for Next button)
  • First question is single-select with K options (incl. Other): --chat-arrows K
# Example: first question is multi-select with 5 options → 6 arrows
wctl dispatch-answers <id> --chat-arrows 6
# Example: first question is single-select with 3 options → 3 arrows
wctl dispatch-answers <id> --chat-arrows 3

When using --chat-arrows, no answer tokens are needed — it replaces the entire answer flow.

FALLBACK RULE: If you are unsure how to map the user's answers to option numbers, or the user's message is vague/unclear, always use --chat-arrows instead of guessing. This lets the user follow up with a simple text prompt rather than getting stuck on a broken selection. Since arrows don't wrap, you can safely use --chat-arrows 20 if unsure about the exact count — it will land on "Chat about this" regardless.

After selecting "Chat about this", immediately dispatch the user's message as a follow-up:

wctl dispatch-answers <id> --chat-arrows 20
sleep 3
wctl dispatch <id> "<user's original message>"

Step 3: Confirm

After dispatching, tell the user: "Sent response to {project}."

Errors

  • daemon not running → tell user to start Workstation app
  • session not found → wctl list to show valid IDs
  • project not in discover → ask user for repo path
  • timeout → session busy, retry shortly

Quick Start

Install

  1. Install the Varie Workstation Electron app (macOS arm64).
  2. Install wctl (the CLI that bridges OpenClaw to Workstation):
    # wctl ships with Workstation — symlink it to your PATH:
    ln -sf /path/to/varie-workstation/openclaw/wctl.js ~/.local/bin/wctl
    chmod +x ~/.local/bin/wctl
    
  3. Copy this skill to your OpenClaw workspace:
    cp -r workstation ~/.openclaw/workspace/skills/workstation
    

Configure

  • Launch the Workstation app and verify it's running: wctl status
  • Enable remote mode for mobile screenshot support: wctl set-remote-mode on
  • The OpenClaw-Workstation bridge (bundled in the app) writes pending prompts to ~/.openclaw/workspace/pending-prompts.json — this enables bidirectional question/approval flows from your phone.

Verify

wctl status --human    # Should show "Workstation is running"
wctl list --human      # Should list active sessions (if any)

Prerequisites

This skill requires the Varie Workstation app — an Electron-based multi-session Claude Code orchestration environment. The skill is the mobile control layer: it lets you manage Workstation sessions from Telegram, WhatsApp, or any OpenClaw channel.

Dependency What it does Required?
Varie Workstation Electron app hosting Claude Code terminals Yes
wctl CLI Bridges OpenClaw commands to Workstation's Unix socket Yes (ships with Workstation)
OpenClaw-Workstation bridge Forwards session events (questions, approvals) to OpenClaw for mobile notifications Yes (bundled in Workstation)

Without Workstation running, the skill will report "daemon not running" for all commands.

Security & Guardrails

Permissions

  • wctl communicates with Workstation via a local Unix socket (/tmp/varie-workstation.sock). No network calls — all traffic is local.
  • Screenshot capture requires macOS Screen Recording permission for the Workstation app.

Declared File Access

  • ~/.openclaw/workspace/pending-prompts.json (read-only) — This file is read on every invocation (Step 0) to check if any Claude Code session is waiting for user input. It is written by the OpenClaw-Workstation bridge, not by this skill. Contents: question text, option labels, and project identifiers from active sessions. No credentials, secrets, or user data. The file may not exist until the bridge creates it — the skill handles this gracefully with a fallback empty response.

Screenshots

  • Session screenshots (wctl screenshot <id>) capture only the specific Workstation terminal window for the targeted session.
  • Full-screen screenshots (wctl screenshot --screen) capture the entire display, which may include unrelated windows and sensitive content. This command is only executed when the user explicitly requests a full-screen capture (e.g., "screenshot my screen", "show me everything").
  • Screenshots are saved locally to ~/.openclaw/media/ with a 30-minute TTL cleanup.
  • Screenshots are sent only to the user's own messaging channel (Telegram/WhatsApp) — never to third parties or external services.

Confirmations Before Risky Actions

  • The skill asks for confirmation before creating new sessions or when multiple repos match ambiguously.
  • wctl interrupt (Ctrl+C) is reserved for explicit user requests — the skill never sends it autonomously.

Data Handling

  • openclaw message send routes media through your configured OpenClaw channel (Telegram/WhatsApp). Images traverse the channel provider's servers but are only sent to the requesting user's conversation.

Input Validation

  • The skill maps user intent to option numbers before dispatching — free text is never injected into PTY commands without validation.
  • The "Chat about this" fallback is used whenever intent mapping is uncertain, preventing wrong selections.

External Endpoints

Endpoint Protocol Data Sent
/tmp/varie-workstation.sock Unix socket (local) Session commands (list, dispatch, create, screenshot)
~/.openclaw/workspace/pending-prompts.json Local file read None (read-only)
openclaw message send --channel --target OpenClaw channel (Telegram/WhatsApp) Screenshot images (when user requests)

No external APIs are called directly by this skill. All network communication goes through OpenClaw's channel layer.

Trust Statement

This skill controls local Claude Code sessions running inside the Varie Workstation app. All communication is via local Unix socket — no data leaves your machine unless you request a screenshot, which is sent through your configured OpenClaw messaging channel. Only install if you trust the Varie Workstation app and your OpenClaw channel configuration.

Publisher

@masqueradeljb

Links

  • Varie Workstation — The Electron app this skill controls
  • OpenClaw — The AI agent gateway this skill runs on

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • Workstation Control
    • Step 0: Check Pending Prompts (ALWAYS DO THIS FIRST)
    • Smart Routing (Main Workflow)
      • Step 1: Check daemon + list sessions
      • Step 2: Match project
      • Step 3: Auto-create session (no matching session found)
    • Commands Reference
    • Session Control (Escape / Interrupt)
    • Screenshots
    • Critical Rules
    • Responding to Session Prompts
      • Step 1: Identify the target session
      • Step 2: Map intent to response
      • Step 3: Confirm
    • Errors
    • Quick Start
      • Install
      • Configure
      • Verify
    • Prerequisites
    • Security & Guardrails
      • Permissions
      • Declared File Access
      • Screenshots
      • Confirmations Before Risky Actions
      • Data Handling
      • Input Validation
    • External Endpoints
    • Trust Statement
    • Publisher
    • Links
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期