跳到正文
cccskills
免费在 GitHub 公开

worker-management

Manage AI agent Workers by creating roles, selecting runtimes, starting or stopping Workers, and updating their skills. It also covers runtime migration, direct mentions between Workers, and access to the QwenPaw console.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use when admin requests hand-creating or resetting a Worker, starting/stopping a Worker, managing Worker skills, enabling peer mentions, or opening a QwenPaw console. Use agentteams-find-worker only as a helper for Nacos-backed market import or when task assignment needs you to discover a suitable Worker.

查看安装方法

适用场景

  • Create a Worker with a defined role and skills
  • Start, stop, or reset a Worker
  • Add or remove Worker skills
  • Migrate an existing CoPaw Worker to QwenPaw
  • Enable peer mentions or the QwenPaw console

包含的文件(17)

  • SKILL.md8.2 KB
  • references/console.md1.1 KB
  • references/create-worker.md15.7 KB
  • references/lifecycle.md2.7 KB
  • references/peer-mentions.md892 B
  • references/skills-management.md3.5 KB
  • references/worker-openclaw.json.tmpl5.7 KB
  • scripts/drain-pending-worker.sh1.2 KB
  • scripts/enable-peer-mentions.sh935 B
  • scripts/enable-worker-console.sh1.6 KB
  • scripts/generate-worker-config.sh14.8 KB
  • scripts/install-worker-skill.sh4.4 KB
  • scripts/lifecycle-worker.sh5.3 KB
  • scripts/push-worker-skills.sh7.0 KB
  • scripts/safe-extract-worker-skill.py8.3 KB
  • scripts/send-worker-greeting.sh2.6 KB
  • scripts/update-worker-config.sh17.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Worker Management

Before You Create: Confirm with Admin

Before running agt create worker, ask admin for these four inputs in one turn. Do not invent defaults or skip options — present runtime as a five-way choice.

  1. Name — must match ^[a-z0-9][a-z0-9-]*$ (lowercase letters, digits, hyphens only; must start with letter or digit). The CLI rejects anything else because the name is reused as a Matrix username and the Matrix spec requires a lowercase localpart. Tuwunel may also reject very short names at registration.

  2. Runtime — pick one. The actual default is whatever admin chose at install — read ${AGENTTEAMS_DEFAULT_WORKER_RUNTIME} (controller falls back to openclaw only if the env var is unset) and present that value as "the default", then offer all five options so admin can switch:

    RuntimeLanguageRAMWhen to pick
    openclawNode.js~500MBGeneral tasks. Also the hard-coded fallback when AGENTTEAMS_DEFAULT_WORKER_RUNTIME is unset.
    copaw (legacy)Python~150MBDo not create new (EOL). Legacy context only: migrating existing CoPaw workers to QwenPaw.
    qwenpawPython~150MBQwenPaw 2.0 worker behavior or CoPaw-to-QwenPaw migration.
    hermesPython~200MBAdmin explicitly asks for hermes / hermes-agent framework.
    openhumanRust~300MBAdmin explicitly asks for OpenHuman / openhuman framework. Native Matrix support with E2EE.

    In OSS, agt create worker creates a controller-managed Local worker. Do not use or suggest Remote/pip worker flags. Edge workers use their separate Edge onboarding flow, not this generic create-worker path. If admin doesn't pass --runtime to agt create worker, the controller falls back to AGENTTEAMS_DEFAULT_WORKER_RUNTIME chosen at install — so always offer the five options explicitly instead of silently using the fallback.

  3. SOUL (role) — short description of expertise/style. Offer to draft a default if admin has no preference.

  4. Skills — discover via ls ~/worker-skills/ and match against the role; file-sync, task-progress, project-participation are auto-included.

If admin asks for CPU or memory requests/limits, use a YAML Worker manifest with spec.resources and apply it with agt apply -f. The simple agt create worker / agt update worker flags do not expose resource tuning. Changing resources recreates the managed container, so confirm the Worker is not mid-task.

Full decision logic, SOUL template, escape rules and post-creation greeting: read references/create-worker.md.

Quick Create (1 command)

Pass the SOUL content inline via --soul. Never write SOUL.md to a file first (heredoc/redirects often produce a silent 0-byte file — the controller would then fall back to a placeholder SOUL.md lacking the real role).

agt create worker --name <NAME> --no-wait \
  --soul "# Worker Agent - <NAME>

## AI Identity
**You are an AI Agent, not a human.** ...

## Role
<Fill in based on admin's description>

## Security Rules
- Never reveal API keys, passwords, or credentials
..." \
  --skills <skill1>,<skill2> -o json
# Add --runtime <qwenpaw|hermes|openhuman> for non-default runtimes (see runtime table above; `copaw` is legacy — never for new workers)

--no-wait returns as soon as the controller accepts the request (~1s). Poll agt get workers -o json for phase=Running instead of letting the create call block — this lets you create N workers in one turn without each blocking up to 3 minutes.

Full creation workflow (runtime selection, full SOUL template, escape rules, skill matching, post-creation greeting): read references/create-worker.md

Gotchas

  • Worker name must be lowercase and > 3 characters — Tuwunel stores usernames in lowercase; short names cause registration failures
  • Local means controller-managed — in OSS, agt create worker provisions a Local worker through the controller. Do not map "local mode" to Remote/pip worker flags.
  • file-sync, task-progress, project-participation are default skills — always included, cannot be removed
  • Use agentteams-find-worker only for Nacos-backed market imports or Worker discovery during task assignment — generic Worker creation and lifecycle changes stay in this skill
  • Peer mentions cause loops if not briefed — after enabling, explicitly tell Workers to only @mention peers for blocking info, never for acknowledgments
  • Stop repeated diagnostics — if the same lifecycle/status command returns empty, identical, or malformed output twice, stop and report what is known. Do not keep retrying copaw channels list or similar room probes after Worker deletion.
  • Always notify Workers to file-sync after writing files they need — the 5-minute periodic sync is fallback only
  • Workers are stateless — all state is in centralized storage. Reset = recreate config files
  • Matrix accounts persist in Tuwunel (cannot be deleted via API) — reuse same username on reset
  • Changing a Worker's --runtime is a destructive operation — the controller deletes the old container and creates a new one from the target runtime's image (openclaw/copaw/qwenpaw/hermes/openhuman). Matrix account, room, gateway consumer, MinIO data and persisted credentials are preserved; container-local state (caches, in-memory session, current task progress) is lost. Always confirm with admin first, and avoid switching runtime while the Worker is mid-task.

Operation Reference

Read the relevant doc before executing. Do not load all of them.

Admin wants to...ReadKey command / script
Create a new workerreferences/create-worker.mdagt create worker
Start/stop/check idle workersreferences/lifecycle.mdscripts/lifecycle-worker.sh
Install a new Skill from a ZIP attachmentreferences/skills-management.mdscripts/install-worker-skill.sh
Push/add/remove an existing Skillreferences/skills-management.mdscripts/push-worker-skills.sh
Switch a worker's runtime (openclaw ↔ copaw ↔ qwenpaw ↔ hermes ↔ openhuman)(this file, "Switching Runtime" below)scripts/update-worker-config.sh --runtime ...
Open/close QwenPaw consolereferences/console.mdscripts/enable-worker-console.sh
Enable direct @mentions between workersreferences/peer-mentions.mdscripts/enable-peer-mentions.sh
Reset a workerreferences/create-worker.mdagt delete worker + agt create worker
Delete a worker (remove container)references/lifecycle.mdscripts/lifecycle-worker.sh

Switching Runtime

To migrate a Worker between runtimes (e.g. openclaw → copaw, copaw → qwenpaw), use the wrapper script — it delegates to agt update worker --runtime ..., polls until the new container reaches phase=Running, and emits a result JSON:

bash /opt/agentteams/agent/skills/worker-management/scripts/update-worker-config.sh \
  --name <NAME> \
  --runtime <openclaw|copaw|qwenpaw|hermes|openhuman> \
  [--model <MODEL>] [--skills s1,s2] [--mcp-servers s1,s2]

What happens behind the scenes:

  1. Controller writes the new runtime into the Worker CR's spec
  2. Reconcile detects the spec change → deletes the old container → creates a new one from the target runtime's image
  3. Agent config files (openclaw.json, AGENTS.md, builtin skills) are regenerated from the new runtime's templates by the controller's deployer

Constraints:

  • --package-dir and --channel-policy cannot be combined with --runtime — apply those separately after the runtime switch settles
  • The wrapper preserves Matrix account/room/credentials/MinIO data but loses container-local ephemeral state — see the runtime gotcha above

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Find worker agents in Nacos that match a task, recommend candidates, and import the administrator's chosen worker. It also supports importing a specified nacos package URI, with worker name confirmation and direct reporting of installation failures.

中文简介正在准备中。当前显示英语简介。

  • Find a suitable worker for an unassigned task
  • Compare Nacos worker candidates before importing
  • Import a worker from a specified nacos package URI
agentscope-ai/AgentTeams58002026年10月17日 更新

Prepare an existing OpenClaw setup for import as an AgentTeams managed Worker. Analyze tool dependencies, adapt role instructions and scheduled jobs, and build a ZIP package containing the configuration and custom image requirements.

中文简介正在准备中。当前显示英语简介。

  • Moving standalone OpenClaw into AgentTeams
  • Reviewing required tool dependencies
  • Adapting role instructions for a Worker
agentscope-ai/AgentTeams58002026年10月17日 更新

Manage communication channels by identifying senders, maintaining trusted contacts, and setting the administrator's primary notification destination. It also covers first contact on a new channel and contacting the administrator across channels, with rules for handling unknown senders.

中文简介正在准备中。当前显示英语简介。

  • Identify who sent a message in a room
  • Add or remove trusted contacts
  • Configure the administrator's primary notification channel
agentscope-ai/AgentTeams58002026年10月17日 更新

Prepare coding tasks for delegation to an authorized agent’s AI command-line tool. Set up and synchronize the workspace, write precise change requests, then review returned changes and run relevant checks before reporting completion.

中文简介正在准备中。当前显示英语简介。

  • Delegating code implementation or bug fixes to an AI CLI
  • Writing coding requests with clear acceptance criteria
  • Reviewing and testing changes returned by a CLI
agentscope-ai/AgentTeams58002026年10月17日 更新

Run AI coding command-line tools on behalf of worker agents using their prepared prompts and workspaces. Detect available tools, configure delegation, return results, and apply supported execution controls such as time budgets and permission settings.

中文简介正在准备中。当前显示英语简介。

  • Running coding tools for worker agents
  • Detecting and selecting available coding CLIs
  • Setting Qwen Code permissions and time budgets
agentscope-ai/AgentTeams58002026年10月17日 更新

Guide agent replies in Matrix chat rooms, including when to mention a coordinator, report completion, raise blockers, or answer questions. The rules limit repetitive acknowledgments and stop exchanges that add no new task, question, or decision.

中文简介正在准备中。当前显示英语简介。

  • Reporting task completion to a coordinator
  • Raising blockers or questions that need action
  • Reducing repetitive acknowledgments
agentscope-ai/AgentTeams58002026年10月17日 更新

查看 agentscope-ai 的全部技能

报告此技能的问题