Xpersona
A

Agent Office

CLAWHUB · Unverified

Agent Office:创建本地 AI 员工、office worker、AI employee 与 multi-agent office team。每个员工以独立 HTTP Worker 运行,支持 openclaw / hermes / deerflow / cli / external / stub 六种...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bc7kdmw34mtmt993vk4t29n84rph6:agent-office
  1. Install using `clawhub skill install s17bc7kdmw34mtmt993vk4t29n84rph6:agent-office` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/jast-hub/agent-office before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jast-hub-agent-office/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

152,635 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: agent-office
description: "Agent Office:创建本地 AI 员工、office worker、AI employee 与 multi-agent office team。每个员工以独立 HTTP Worker 运行,支持 openclaw / hermes / deerflow / cli / external / stub 六种引擎,适合 office automation、agent worker 管理与团队协作。"
homepage: https://clawhub.com
tags: [productivity, automation, multi-agent, office, worker, ai-employee]
version: "1.5.1"
requirements:
  cli:
    - openclaw
    - hermes
  system:
    - lsof
    - git
    - uv
  optional:
    - memory-cli
ports:
  range: "5011-5020"
  purpose: "one per worker HTTP server"
directories:
  read:
    - "~/.openclaw/agents/"
    - "~/.hermes/office/"
  write:
    - "~/.hermes/office/workers/"
    - "~/.hermes/office/state/"
    - "~/.hermes/office/deerflow-runtime/"
daemon:
  background: true
  autostart: false
---

# Agent Office

## 技能定位

这个技能用于把“员工”作为本地 HTTP Worker 管理:

- 每个员工有自己的 `worker_id`
- 每个员工占用一个端口
- 每个员工有自己的 `SOUL.md` 和日志目录
- 主控通过 `/tasks` 下发任务,通过 `/health` 和 `/state` 查看状态

搜索关键词:

- `agent-office`
- `agent office`
- `office worker`
- `AI employee`
- `agent worker`
- `multi-agent office`

发布名和本地目录名统一为 `agent-office`。文档中一律优先使用相对路径 `scripts/...`,避免路径漂移。

## 内置团队预设

除了单个员工创建外,技能还支持一键套用团队预设:

| 预设 | 说明 |
|------|------|
| `出版公司` | 主编、策划、校对、封设、发行,适合内容与出版流程 |
| `编程公司` | 产品、前端、后端、设计、测试、项目,适合软件交付流程 |

命令示例:

```bash
bash scripts/apply_preset.sh --list
bash scripts/apply_preset.sh 出版公司
bash scripts/apply_preset.sh 编程公司 --dry-run
```

## 支持的引擎

| 引擎 | 适用场景 | 实际调用 |
|------|----------|----------|
| `openclaw` | 通用员工、代码、调研、设计 | `openclaw agent --agent {worker_id}` |
| `hermes` | Hermes 生态员工 | `hermes agent --json --message` |
| `deerflow` | 外包型复杂任务 | 复用共享 DeerFlow runtime,并以内嵌 DeerFlow 团队执行链完成任务 |
| `cli` | 接大多数本地 CLI 员工 | 按 profile 调用 `codex` / `claude` / `aider` / `gemini` / `opencode` |
| `external` | 接入已在运行的现有 agent / worker | 把现成 HTTP worker 桥接成员工,保留上游设定与记忆 |
| `stub` | 测试、占位 | 不启动真实进程 |

### CLI 员工说明

`cli` 引擎用于把主流本地命令行代理接成一个办公室员工,而不是把它们硬编码成单独实现。

内置 profile:

| profile | 实际工具 | 传参方式 |
|---------|----------|----------|
| `codex` | OpenAI Codex CLI | 标准输入,默认走 `codex exec --skip-git-repo-check` |
| `claude-code` | Claude Code | 标准输入 |
| `aider` | Aider | `--message` |
| `gemini-cli` | Gemini CLI | 标准输入 |
| `opencode` | OpenCode | 标准输入 |

支持两种接法:

- 用内置 profile:适合常见 CLI,直接复用预设命令与超时
- 用 `--cli-cmd` 覆盖:适合本机有自定义包装命令的场景

常用命令:

```bash
python3 scripts/add_worker.py --list-cli-profiles
bash scripts/add_worker.sh 小扣 cli code --cli-profile codex
bash scripts/add_worker.sh 小克 cli code --cli-profile claude-code --workspace ~/projects/demo
bash scripts/add_worker.sh 小助 cli general --cli-cmd "codex exec --skip-git-repo-check" --cli-args "--model gpt-5.4"
```

Codex 员工要点:

- 不直接跑裸 `codex`,而是默认使用非交互模式 `codex exec`
- 默认补 `--skip-git-repo-check`,避免员工工作目录不是 trusted git repo 时直接失败
- 需要指定模型时,只追加自己的参数,例如 `--cli-args "--model gpt-5.4"`

### External 员工说明

`external` 引擎用于接入已经在本机某个端口跑着的现有 worker / agent,而不是重新创建一个新员工内核。

它的运行规则是:

- 上游 worker 保持原本的身份、workspace、长期记忆与系统提示
- Agent Office 只在办公室侧创建一个桥接员工
-

README.md

# Agent Office

一句话加员工,构建本地 AI office、office worker、AI employee 团队。员工以独立 HTTP Worker 形式运行,支持 `openclaw`、`hermes`、`deerflow`、`cli`、`external`、`stub` 六种引擎。

## 包名与目录名

- ClawHub / 技能市场发布名:`agent-office`
- 本地目录名:`agent-office`

## 前置要求

- `openclaw`:用于 `openclaw` 引擎
- `hermes`:用于 `hermes` 引擎
- `git`:用于首次拉取或更新共享 DeerFlow runtime
- `uv`:用于安装 / 更新共享 DeerFlow runtime 依赖
- `lsof`:用于移除员工时查进程
- 如需 `cli` 员工:本机需已安装对应 CLI

示例安装:

```bash
pip install openclaw
pip install hermes-ai
```

说明:

- `deerflow` 员工不需要你先手工维护一套外部 DeerFlow 网关
- 首次添加 `deerflow` 员工时,技能会自动安装或复用办公室共享 DeerFlow runtime
- 后续如需跟进官方更新,可直接运行 `bash scripts/update_deerflow_runtime.sh`

## 快速开始

先进入技能目录:

```bash
cd /path/to/agent-office
```

添加员工:

```bash
bash scripts/add_worker.sh 小龙 openclaw research
bash scripts/add_worker.sh 小扣 cli code --cli-profile codex
bash scripts/add_worker.sh 小D deerflow complex
bash scripts/add_worker.sh 外挂小龙 external general --external-upstream-port 18750
```

应用团队预设:

```bash
# 查看可用预设
bash scripts/apply_preset.sh --list

# 一键创建出版公司
bash scripts/apply_preset.sh 出版公司

# 只预览,不真正创建
bash scripts/apply_preset.sh 编程公司 --dry-run
```

查看团队:

```bash
bash scripts/list_workers.sh
```

健康检查:

```bash
bash scripts/demo.sh
```

移除员工:

```bash
bash scripts/remove_worker.sh 小龙
# 或
bash scripts/remove_worker.sh xiaolong
```

## 引擎说明

| 引擎 | 用途 | 实际行为 |
|------|------|----------|
| `openclaw` | 通用执行、代码、调研、设计 | 以 `worker_id` 调用 `openclaw agent --agent {worker_id}` |
| `hermes` | Hermes 生态任务 | 通过 `hermes agent` 执行,并在员工工作目录运行 |
| `deerflow` | 外包型复杂任务 | 自动安装或复用共享 DeerFlow runtime,并以单个员工身份调起内嵌 DeerFlow 团队执行链 |
| `cli` | 接主流本地 CLI 员工 | 按 profile 调用对应 CLI,可接 Codex / Claude Code / Aider / Gemini CLI / OpenCode |
| `external` | 接入已在运行的现有 agent / worker | 保留上游原设定和记忆不动,在办公室里挂一个桥接员工并注入共享记忆上下文 |
| `stub` | 测试 / 占位 | 不启动真实进程,直接返回模拟结果 |

## CLI 员工

`cli` 引擎适合把大多数主流命令行代理接成办公室员工,不需要为每个 CLI 单独做一套 worker 实现。

当前内置 profile:

| profile | 工具 | 说明 |
|------|------|------|
| `codex` | OpenAI Codex CLI | 默认走 `codex exec --skip-git-repo-check`,适合后台 worker 非交互调用 |
| `claude-code` | Claude Code | 走标准输入 |
| `aider` | Aider | 使用 `--message` 传任务 |
| `gemini-cli` | Gemini CLI | 走标准输入 |
| `opencode` | OpenCode | 走标准输入 |

先看支持列表:

```bash
python3 scripts/add_worker.py --list-cli-profiles
```

直接添加内置 CLI 员工:

```bash
bash scripts/add_worker.sh 小扣 cli code --cli-profile codex
bash scripts/add_worker.sh 小克 cli code --cli-profile claude-code --workspace ~/projects/demo
bash scripts/add_worker.sh 小助 cli general --cli-profile aider
```

Codex 员工的默认接法已经内置为:

```text
codex exec --skip-git-repo-check
```

原因:

- worker_server 是后台 HTTP worker,不能依赖交互式 TTY,所以不能直接跑裸 `codex`
- 员工工作目录通常不是 trusted git repo,默认补 `--skip-git-repo-check` 更稳
- 如需指定模型,只需要追加你自己的参数,例如 `--cli-args "--model gpt-5.4"`

如果你的机器上用了自定义包装命令,也可以覆盖:

```bash
bash scripts/add_worker.sh 小试 cli code --cli-cmd "codex exec --skip-git-repo-check" --cli-args "--model gpt-5.4" --workspace ~/projects/demo
```

说明:

- `--workspace` 控制 CLI 真正工作的目录,不填时默认用员工目录
- `--cli-timeout` 可覆盖默

_meta.json

{
  "ownerId": "kn74ej29cecm60khxvavjbenzn84s35g",
  "slug": "agent-office",
  "version": "1.5.1",
  "publishedAt": 1776386457273
}

skill-card.md

## Description:

Agent Office creates and manages local AI office workers as independent HTTP workers, supporting openclaw, hermes, deerflow, cli, external, and stub engines for office automation and multi-agent team workflows.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jast-hub](https://clawhub.ai/user/jast-hub)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agent operators use this skill to create, manage, health-check, task, and remove local AI worker teams. It is suited for local office automation workflows that need individual worker identities, ports, state, logs, presets, and optional integration with local agent CLIs or an existing HTTP worker.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Persistent local HTTP workers can expose powerful local agent actions.

Mitigation: Run workers only in trusted local environments and stop or remove workers when they are no longer needed.

Risk: Local CLI, workspace, and DeerFlow task execution can access or modify sensitive files.

Mitigation: Use a dedicated low-sensitivity workspace and review worker roles, CLI commands, and DeerFlow runtime source before running tasks.

Risk: External upstream workers and optional shared memory can carry untrusted context into task execution.

Mitigation: Use external upstream URLs only when fully trusted and keep MEMORY_CLI disabled for sensitive work.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/jast-hub/skills/agent-office)
- [Publisher Profile](https://clawhub.ai/user/jast-hub)
- [ClawHub Homepage](https://clawhub.com)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance]

**Output Format:** [Markdown guidance with shell commands, JSON configuration examples, and generated local worker files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May start persistent local HTTP worker processes and write worker state, logs, prompts, and runtime configuration under the user's local office directories.]

## Skill Version(s):

1.5.1 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

templates/cli_prompt.md

你是团队中的 CLI 专项员工,职责是{{ROLE}}。

## 你的基本信息
- 员工编号:{{WORKER_ID}}
- 运行端口:{{PORT}}
- 引擎类型:cli
- CLI Profile:{{CLI_PROFILE_DISPLAY}}({{CLI_PROFILE}})
- 所属团队:Agent Office

## 你的专长
- {{ROLE_DESCRIPTION}}
- 通过主流本地 coding CLI 执行代码、脚本、命令行任务

## 任务执行规范
1. 先理解任务目标和成功标准
2. 如涉及代码或脚本,优先在授权工作目录内执行
3. 返回结构化结果,说明做了什么、有没有失败点

```json
{
  "task_id": "{task_id}",
  "status": "done | failed",
  "result": {
    "content": "...(CLI 原始输出或整理后的执行结果)",
    "format": "markdown | json | text"
  },
  "summary": "一句话总结"
}
```

## 约束
- 只在授权 workspace 中运行
- CLI 命令和参数由办公室配置,不擅自切换到其他工具
- 任务超时时间为 {{TIMEOUT}} 秒

Sponsored

Ads related to Agent Office and adjacent AI workflows.