← 返回
开发者工具 Key 中文

Comanda

Generate, visualize, and execute declarative AI pipelines using the comanda CLI. Use when creating LLM workflows from natural language, viewing workflow char...
使用 comanda CLI 生成、可视化并执行声明式 AI 流水线。适用于从自然语言创建 LLM 工作流以及查看工作流特征。
kris-hansen
开发者工具 clawhub v1.1.0 2 版本 99755.4 Key: 需要
★ 1
Stars
📥 2,427
下载
💾 0
安装
2
版本
#agents#latest#llm#workflow

概述

Comanda

Comanda defines and runs LLM workflows as YAML pipelines. Use it to generate workflows, inspect charts, edit workflow YAML, run workflows, improve workflows, orchestrate multiple models, and build agentic loops.

Core commands

comanda generate workflow.yaml "Create a workflow that summarizes Markdown files"
comanda chart workflow.yaml
comanda process workflow.yaml
cat input.txt | comanda process workflow.yaml
comanda improve workflow.yaml "Make it output risks and action items"
comanda configure
comanda version

Useful execution flags:

comanda process workflow.yaml --runtime-dir ./data --vars name=value --debug

Workflow editing rules

For detailed YAML patterns, read references/WORKFLOW-SPEC.md before creating or changing non-trivial workflows.

Minimal step:

summarize:
  input: STDIN
  model: gpt-4o
  action: "Summarize the input."
  output: STDOUT

Critical data-flow rule

For ordinary step-to-step data flow, use only:

  1. output: STDOUT followed by next step input: STDIN
  2. explicit files: output: ./file.json followed by input: ./file.json

Do not use $VARIABLE syntax for ordinary step chaining. as $var is only input aliasing inside the same step's action prompt.

# Good: same-step input aliasing
compare:
  input: old.md as $baseline
  model: gpt-4o
  action: "Compare the current input with $baseline."
  output: STDOUT

# Bad: not valid step-to-step flow
step1:
  output: STDOUT as $data
step2:
  input: $data

For parallel fan-in, write branch outputs to files and combine from those files. For defer/branching, have the prior step emit JSON with step_name and input; the selected branch reads STDIN.

Tool steps

Use shell tools only in trusted workflows. Prefer tool: allowlists; tool_config: examples in older docs are stale for step-level allowlists.

list_go_files:
  input: "tool: find . -name '*.go' -type f"
  model: NA
  tool:
    allowlist: [find]
    timeout: 30
  action: NA
  output: STDOUT

Agentic workflows

Default to linear workflows. Use agentic_loop only when work truly needs iteration until quality/completion. Prefer file outputs such as .comanda/result.md, grant explicit allowed paths, and tell the agent to read/update existing files across iterations. Use comanda loop status/resume/cancel/clean for long-running loops.

Loop-specific input_state/output_state variables are valid only inside agentic-loop/multi-loop orchestration; they are not ordinary workflow step variables.

Models and examples

Common model IDs include gpt-4o, claude-sonnet-4-20250514, gemini-pro, grok-4-1-fast-reasoning, grok-4-1-fast-non-reasoning, ollama/, claude-code, gemini-cli, and openai-codex. Run comanda configure for API keys.

Examples live in ~/clawd/comanda/examples/:

  • parallel-processing/ — file-based parallel fan-in
  • tool-use/ and security/ — shell tool input/output patterns
  • agentic-loop/ — iterative and multi-loop workflows
  • codebase-index/ — index capture and reuse
  • file-processing/ — chunking, batching, wildcards
  • model-examples/ — provider/model examples

Troubleshooting

  • Validation/structure: comanda chart workflow.yaml --verbose
  • Execution details: comanda process workflow.yaml --debug
  • Missing keys: comanda configure
  • Blocked tool command: add the command to the step's tool.allowlist

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-08 12:10 安全 安全
  • v1.0.2
    2026-03-28 15:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,139
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,790
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,120