跳转到内容

OpenProseOpenProse

OpenProse 是一种可移植的、以 Markdown 为优先的工作流格式,用于编排 AI 会话。在 OpenClaw 中,它作为插件提供,安装 OpenProse 技能包和 OpenProseOpenClawOpenProse/prose 斜杠命令。程序存放在 .prose 文件中,可以通过显式控制流生成多个子代理。

Install

启用 OpenProse 插件并重启 Gateway(网关)。

Run a program

使用 /prose run 执行 .prose 文件或远程程序。

Write programs

编写包含并行和串行步骤的多代理工作流。

  1. Enable the plugin

    默认情况下禁用捆绑插件。启用 OpenProse:

    Terminal window
    openclaw plugins enable open-prose
  2. Gateway(网关)Restart the Gateway

    Terminal window
    openclaw gateway restart
  3. Verify

    Terminal window
    openclaw plugins list | grep prose

    您应该看到 open-prose 已启用。/prose 技能命令现在 在聊天中可用。

对于本地检出:openclaw plugins install ./path/to/local/open-prose-plugin

OpenProse 将 OpenProse/prose 注册为用户可调用的技能命令:

/prose help
/prose run <file.prose>
/prose run <handle/slug>
/prose run <https://example.com/file.prose>
/prose compile <file.prose>
/prose examples
/prose update

/prose run <handle/slug> 解析为 https://p.prose.md/<handle>/<slug>。 直接 URL 将使用 web_fetch 工具按原样获取。

  • 具有显式并行的多智能体研究与合成。
  • 可重复、审批安全的工作流(代码审查、事件分类、内容流水线)。
  • 可重用的 .prose 程序,您可以在支持的智能体运行时中运行它们。
# Research + synthesis with two agents running in parallel.
input topic: "What should we research?"
agent researcher:
model: sonnet
prompt: "You research thoroughly and cite sources."
agent writer:
model: opus
prompt: "You write a concise summary."
parallel:
findings = session: researcher
prompt: "Research {topic}."
draft = session: writer
prompt: "Summarize {topic}."
session "Merge the findings + draft into a final answer."
context: { findings, draft }

OpenProse 程序映射到 OpenClaw 基元:

OpenProse 概念OpenClaw 工具
生成会话 / 任务工具sessions_spawn
文件读取 / 写入read / write
Web 获取web_fetch

OpenProse 将状态保存在您工作区的 OpenProse.prose/ 下:

.prose/
├── .env
├── runs/
│ └── {YYYYMMDD}-{HHMMSS}-{random}/
│ ├── program.prose
│ ├── state.md
│ ├── bindings/
│ └── agents/
└── agents/

用户级别的持久化智能体位于:

~/.prose/agents/
文件系统(默认)

状态被写入工作区的 .prose/runs/... 中。不需要 额外的依赖项。

上下文中

保持在上下文窗口中的瞬时状态。适用于小型、 短命的程序。

sqlite(实验性)

需要 PATH 上的 sqlite3 二进制文件。

postgres (experimental)

需要 psql 和连接字符串。

请将 .prose 文件视为代码。在运行前进行审查。使用 OpenClaw 工具允许列表和审批门控来控制副作用。对于确定性、基于审批门控的工作流,请与 Lobster 进行比较。

Skills reference

OpenProse 的技能包如何加载以及适用哪些门控。

Subagents

OpenClaw 的原生多代理协调层。

Text-to-speech

为您的工作流添加音频输出。

Slash commands

所有可用的聊天命令,包括 /prose。

官方网站:https://www.prose.md