Multi-Agent Orchestration#
Run Claude Code, OpenAI Codex, Gemini CLI, and Kimi Code in parallel. Get diverse perspectives from multiple AI models and synthesize them into unified recommendations.
Comanda as an MCP Server#
Turn the workflows you already keep in Git into on-demand tools for MCP-native agents. Start comanda mcp, then Claude Code, Codex, Kimi Code, or Cursor can discover and call them without carrying every workflow instruction in their working context.
Workflows โ tools
Every discovered YAML workflow becomes a callable MCP tool. Its first comment becomes the description, and {{ var }} placeholders become optional string inputs.
Skills โ prompts
Comanda skills appear as argumented MCP prompts. The agent can fetch the rendered instruction when it needs itโno model call required.
One workflow surface
Serve over stdio for local clients or streamable HTTP on trusted localhost. Workflows execute through Comanda's existing processor and return their final output as tool results.
Why MCP instead of one giant agent prompt? Keep reusable procedures versioned, reviewable, and shared across agents and repositories. Agents retain room for the task at hand, while each workflow gets a clear tool contract and a reproducible execution path. Only expose trusted workflows: they run with the permissions of the user who starts the server, including any shell tools they define.
Workflows are discovered from ~/.comanda/workflows/, .comanda/workflows/, or explicit --dir and --workflow flags. Skills are exposed as prompts by default; pass --no-skills to disable them.
Agentic Loops#
Iterative refinement until the LLM decides work is complete. Perfect for code generation, document writing, and any task that benefits from self-improvement.
Smart defaults: If you omit allowed_paths, comanda auto-infers them from the workflow directory and common project subdirectories (src, lib, test, docs, build). Simple workflows "just work" without explicit configuration.
Self-Improving Loops#
Agentic loops can refine their own prompt between iterations. The latest result feeds a prompt-improvement pass, then the next iteration runs with a tighter, more specific instruction through {{ loop.current_prompt }}.
Use this for long-form writing, code improvement, research synthesis, prompt tuning, or any workflow where each pass should learn from the last instead of simply retrying the same instruction.
Improve Existing Workflows#
comanda improve edits an existing YAML workflow from plain-English feedback, validates the generated workflow, and retries with validation errors when needed. It is the fastest path from a rough pipeline to a cleaner, more agentic one.
The improve command uses your configured generation model, can be overridden with --model, and understands the same DSL guide used by comanda generate.
Live TUI Dashboard#
Watch your workflows run in real time with a rich terminal UI. See iteration progress, token usage estimation, elapsed time, resource consumption, and the full story behind a long-running loop.
Inspect the complete activity history: Press Ctrl+R to open a full-screen, scrollable Recent Activity view. It retains up to 500 events and wraps complete error output instead of truncating it to the dashboard width. Press d to show the debug panel when running with --debug or --verbose.
Reliable long loops: Claude Code prompts are streamed through stdin, so large codebase indexes and iterative prompts do not hit the operating system's command-line length limit.
Git Worktree Support#
Run multiple Claude Code sessions in parallel on the same repo without conflicts. Comanda automatically manages Git worktrees so each agent gets an isolated working copy.
Parallel Processing#
Run independent steps concurrently for faster workflows. Automatically waits for all parallel steps before continuing.
Intelligent Flow Control#
Let the LLM decide when work is complete, route dynamically based on content, and handle failures gracefully.
LLM-Decides Exit
Agentic loops continue until the model says "DONE" โ no fixed iteration counts.
Conditional Steps
Skip steps based on previous outputs or environment variables.
Quality Gates
Validate outputs before proceeding. Retry on failure with backoff.
Explicit Data Flow
Chain steps through STDIN/STDOUT or explicit output files.
Tool Execution#
Run shell commands, scripts, and CLIs within your workflows. Integrate with grep, jq, git, or any command-line tool.
Workflow Visualization#
See the structure of any workflow at a glance. Understand parallel branches, sequential steps, and data flow.
Multi-Provider Support#
Connect to any LLM provider. Cloud APIs, local models via Ollama, enterprise deployments via AWS Bedrock, or agentic coding toolsโall in the same workflow.
| Category | Provider | Models | Config |
|---|---|---|---|
| Cloud APIs | Anthropic | Claude 4.5 (Opus, Sonnet, Haiku), Claude 4, 3.7, 3.5 | ANTHROPIC_API_KEY |
| OpenAI | GPT-5.6 (Sol, Terra, Luna), GPT-5, GPT-4o, o3, o4-mini | OPENAI_API_KEY |
|
| Gemini 3, 2.5 (Pro, Flash), 1.5 | GOOGLE_API_KEY |
||
| X.AI | Grok 4.5, Grok 4.3, Grok 4, Grok Vision | XAI_API_KEY |
|
| DeepSeek | DeepSeek-Chat, Coder, Vision, Reasoner | DEEPSEEK_API_KEY |
|
| Moonshot | Moonshot v1 (8k, 32k, 128k) | MOONSHOT_API_KEY |
|
| Sakana | Fugu, Fugu Ultra | SAKANA_API_KEY |
|
| Enterprise | AWS Bedrock | Claude, Nova, Llama via Converse API | AWS credentials |
| Local / Self-hosted | Ollama | Any model (Llama, Mistral, Qwen, etc.) | Auto-detected |
| vLLM | Any OpenAI-compatible endpoint | VLLM_ENDPOINT |
|
| Agentic Tools | Claude Code | claude-code, claude-code-opus |
CLI installed |
| OpenAI Codex | openai-codex, openai-codex-o3 |
CLI installed | |
| Gemini CLI | gemini-cli, gemini-cli-pro |
CLI installed | |
| Kimi Code | kimi-code, kimi-code-<alias> |
kimi CLI installed |
Advanced I/O#
Process files, URLs, databases, and images. Batch operations with wildcards. Automatic chunking for large files.
| Input Type | Formats | Features |
|---|---|---|
| Files | Any text file, wildcards (*.go, src/**/*.ts) |
Multi-file input, auto-chunking for large files, file watching |
| Documents | PDF, Markdown, plain text | Page extraction, table parsing, inline images |
| Images | PNG, JPEG, GIF, WebP | Vision model analysis, screenshots, base64 encoding |
| URLs | HTTP/HTTPS web pages | Content extraction, screenshots, headless rendering |
| Databases | PostgreSQL | Query execution, result streaming, schema introspection |
| Streams | STDIN, pipes | Unix pipeline integration, streaming output |
Codebase Indexing#
Generate agent-ready repository contextโnot merely a file tree. A structured index captures architecture, local conventions, evidence, confidence, and the reasoning future agents need before they make changes.
Built for real repositories: capture considers up to 10,000 source files by default; set max_files: 0 in a workflow or pass --max-files 0 for no source-file cap. The optional --enhance pass adds macro architecture guidance, while deterministic analysis mines repeated repository patterns into evidence-backed editing advice.
TurboQuant compression: Indexes are automatically compressed using vector quantization and chunk deduplication, reducing size by up to 50% while preserving semantic quality. The comanda generate command also auto-detects available indexes in .comanda/ and includes them in the prompt context.
Building Rich Context with Agentic Loops
Combine indexing with agentic exploration to build deep, searchable knowledge bases. The agent explores the codebase iteratively, writing findings to a local search index (like qmd) for later retrieval.
Now you can query your knowledge base: qmd search "how does auth work" โ and get semantically relevant results from the agent's exploration. Great for onboarding, code review prep, or building RAG context for future workflows.
Skills System#
Define reusable, parameterized workflows as Markdown files with YAML frontmatter. Skills are Claude-compatible, discoverable, and can be invoked from the CLI or within other workflows.
Skill locations: User skills in ~/.comanda/skills/, project skills in .comanda/skills/, plus bundled skills included with comanda. Skills support ${VAR} and ${VAR:-default} substitution.
Security Scanning#
Scan dependencies for known vulnerabilities using real-time data from OSV.dev. Works with npm, PyPI, Go, Cargo, and more.
Real-time data: Queries OSV.dev API directlyโno stale vulnerability databases. Uses tool_config.allowlist to enable curl for API access. Works in CI/CD pipelines.
Server Mode#
Turn any workflow into an HTTP API. Perfect for integrating comanda into your existing services and CI/CD pipelines.