经 AI Skill Hub 精选评估,智能工作流 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
智能工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
智能工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 克隆仓库 git clone https://github.com/lefinepro/ocawe cd ocawe # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 ocawe --help # 基本运行 ocawe [options] <input> # 详细使用说明请查阅文档 # https://github.com/lefinepro/ocawe
# ocawe 配置说明 # 查看配置选项 ocawe --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export OCAWE_CONFIG="/path/to/config.yml"
#+TITLE: Ocawe #+AUTHOR: Konrad Geletey #+DATE: 2026-06-10
Ocawe is a Crystal-first runtime for workflow bundles, agents, tools, and skills.
Licenses: [[https://spdx.org/licenses/0BSD.html][0BSD]] (=LICENSE=).
It includes: - A production-oriented HTTP runtime server - A Svelte playground for workflows, tools, skills, and agent chat - VitePress docs with a custom =/playground/= route
Build CLI:
#+begin_src bash crystal build src/cli/main.cr -o build/ocawe #+end_src
=ocawe build/dev/up= now auto-bootstrap Crystal when =crystal= is missing by downloading a platform archive into =./.tools/crystal=.
You can control bootstrap with env vars: - =OCAWE_CRYSTAL_VERSION= (default =1.13.3=) - =OCAWE_CRYSTAL_BASE_URL= (default Crystal GitHub releases URL) - =OCAWE_CRYSTAL_FORCE_BOOTSTRAP=1= (force local toolchain even if system =crystal= exists) - =OCAWE_CRYSTAL_VERBOSE=1= (print toolchain version during bootstrap)
Run runtime server:
#+begin_src bash ocawe up #+end_src
The port is configured in =Cawfile= via =settings { port = 4111 }=.
** Build and Run
#+begin_src bash ocawe build --release ocawe dev --port 4111 ocawe up # reads port from Cawfile ocawe up caws/01-simple # run specific workflow ocawe up -d caws/01-simple # background mode #+end_src
** Workflow Triggers
#+begin_src bash
struct Input include Api::Federation::Inbox end
struct Output include Api::Federation::Outbox end
@[Model("cliproxy")] @[Validate(Input, Output)] workflow "solver-codex" do follow ["@coder@example.com"] agent "codex-agent" end #+end_src
Key directives: - =settings do ... end= — runtime config (port, data adapter, federation) - =@[Model("provider")]= — default model for the workflow - =@[Container(packages: ["pkg1"])]= — container mode with Nix packages (omit packages for static build) - =@[Validate(Input, Output)]= — input/output type validation
API types: - ="federation"= — ForgeFed-only mode (enabled when =Api::Federation::Inbox= or =Api::Federation::Outbox= is included) - ="classic"= — default runtime APIs (=/v1/*=)
Agents are defined via markdown files with frontmatter:
You are a helpful assistant. #+end_src
See =caws/09-custom-agent= for a complete example.
Installing external agents: - OpenCode: =npm install -g @anthropic/opencode= - Claude Code: =npm install -g @anthropic-ai/claude-code= - Qwen Code: =pip install qwen-code=
** Run Playground
#+begin_src bash cd packages/playground bun install bun run dev #+end_src
** Run Docs
#+begin_src bash cd packages/docs bun install bun run dev #+end_src
** Development Tasks (mise)
#+begin_src bash mise run cli-build mise run up mise run playground-build mise run docs-build #+end_src
** Testing
#+begin_src bash crystal spec cd packages/playground && bun run lint cd packages/docs && bun run build #+end_src
ocawe workflow solver task=deploy env=prod
ln -sf ./build/ocawe /usr/local/bin/ocawe_example_workflow ocawe_example_workflow #+end_src
Workflow trigger CLI calls =POST /v1/triggers/workflows/:id= and sends: - =input.<key>= from =key=value= args (values parsed as JSON when possible) - =input.args= from positional args without ===
Trigger command mapping: - =workflow= → =/v1/triggers/workflows/:id= - =agent= → =/v1/triggers/agents/:id= - =skill=/=support= → =/v1/triggers/skills/:id= - =function=/=tool= → =/v1/triggers/functions/:id=
Use =OCAWE_TRIGGER_BASE_URL= or =--base-url= to target a non-default runtime URL.
** Primary APIs
** Compatibility
** Federation APIs
S2S ticket ingestion mode: - follow remote actor and poll remote =outbox= for =Create(Ticket)= activities - require HTTP Signatures for federation requests
#+begin_example src/ cli/ # ocawe CLI (build/dev/up) framework/ # runtime framework + HTTP endpoints packages/ playground/ # Svelte playground (Vite + Bun) docs/ # VitePress docs and static playground route caws/ # workflow bundle examples 01-simple/ # minimal single agent 02-multi-agent/ # sequential agent pipeline 03-control-flow/ # if/else, parallel, while, until 04-rag-assistant/ # retrieval-augmented generation 05-voice-pipeline/ # voice transcription + synthesis 06-full-suite/ # all features combined 07-unified-resources/ # resource management patterns 08-model-override/ # per-agent model override 09-custom-agent/ # how to write custom agents spec/ # Crystal specs #+end_example
See =caws/= directory for complete examples with =Cawfile= format.
Run any example:
#+begin_src bash ocawe up caws/01-simple ocawe up -d caws/02-multi-agent # background mode #+end_src
Each example demonstrates a specific feature: - 01-simple — minimal single agent setup - 02-multi-agent — sequential agent pipeline - 03-control-flow — =unless=, =if/else=, =parallel=, =while=, =until= - 04-rag-assistant — RAG with vector store - 05-voice-pipeline — voice transcription and synthesis - 06-full-suite — all features combined - 07-unified-resources — shared resources with =@[Model]= and =@[Resources]= - 08-model-override — per-agent model configuration - 09-custom-agent — writing custom agents with external binaries
Framework configuration uses =Cawfile= (RCL format) in the workflow root.
Example =Cawfile=:
#+begin_src rcl settings do data.adapter = "memory" port = 4111 end
该工具使用 0BSD 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 0BSD — 请查阅原始协议条款了解具体使用限制。
AI Skill Hub 点评:智能工作流 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | ocawe |
| 原始描述 | 开源AI工作流:Workflow automation as simple as taking notes。⭐8 · Crystal |
| Topics | aichatbotsworkflow |
| GitHub | https://github.com/lefinepro/ocawe |
| License | 0BSD |
| 语言 | Crystal |
收录时间:2026-06-11 · 更新时间:2026-06-11 · License:0BSD · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端