Getting Started
Core Concepts

Core Concepts

Understanding the key concepts in Hydra.

Workflows

A workflow is a reusable sequence of AI-assisted development tasks. Workflows are defined using the Hydra Manifest Specification (HMS) and can be:

  • Private - Only visible to you
  • Public - Discoverable in the Hydra Marketplace
{
  "name": "My Workflow",
  "intent": "What this workflow accomplishes",
  "steps": [...]
}

Manifests

The Hydra Manifest Specification (HMS) is a JSON-based format for defining workflows. Key features:

  • Declarative - Define what should happen, not how
  • Portable - Works across different AI IDEs
  • Type-safe - Validated against JSON Schema
  • Composable - Steps can depend on other steps

See the HMS Reference for complete documentation.

Steps

Steps are the building blocks of workflows. Each step has:

FieldDescription
idUnique identifier (snake_case)
nameHuman-readable name
actionType of action to perform
agentOptional agent specialization
depends_onSteps that must complete first
parametersStep-specific configuration

Actions

Available actions:

ActionDescription
analyze_codeAnalyze existing code
edit_fileEdit a single file
edit_filesEdit multiple files
generate_codeGenerate new code
generate_testsGenerate test files
execute_commandRun a shell command
search_referencesSearch for code references
design_architectureCreate architectural designs
review_and_commitReview and commit changes

Adapters

Adapters translate HMS manifests into IDE-specific instructions. Hydra supports:

Claude Code Adapter

Uses the sub-agent spawning pattern:

  • Each step can spawn a specialized sub-agent
  • Supports parallel execution
  • Best for complex, multi-phase workflows

Cursor Adapter

Uses the Composer pattern:

  • Optimized for Cursor's multi-file editing
  • Inline diff support
  • Best for interactive editing workflows

Codex Adapter

Uses the function calling pattern:

  • Maps steps to function calls
  • Sequential execution
  • Best for automated pipelines

Deployments

A deployment packages one or more workflows for use in your IDE:

  1. Select workflows to include
  2. Choose target adapters (Claude, Cursor, Codex)
  3. Get an MCP endpoint URL
  4. Connect your IDE
Workflow → Deployment → MCP Endpoint → IDE

MCP (Model Context Protocol)

MCP (Model Context Protocol) is an open standard created by Anthropic that allows AI assistants to connect to external tools, data sources, and capabilities.

Why MCP?

Think of MCP as a "plugin system" for AI assistants. Just like web browsers have extensions, AI tools like Claude Code and Cursor can connect to MCP servers to gain new capabilities.

How Hydra Uses MCP

When you connect your IDE to Hydra:

Your IDE → connects to → Hydra MCP Server → serves → Your Workflows
  1. You configure your IDE with your Hydra MCP endpoint URL
  2. Hydra serves your workflows as tools the AI can use
  3. Your IDE's AI can now list, understand, and execute your workflows

MCP Endpoint vs API Key

MethodUsed ByWhen to Use
MCP URLClaude Code, CursorReal-time IDE integration
API KeyCodex CLI, scriptsProgrammatic access

Your MCP endpoint URL looks like: https://API_BASE_URL/mcp/YOUR_DEPLOYMENT_ID

Each deployment has its own unique MCP endpoint. You'll find the exact URL in your deployment details after creating one.

Marketplace

The Hydra Marketplace is where you can:

  • Discover public workflows created by the community
  • Fork workflows to customize for your needs
  • Subscribe to workflows to get automatic updates
  • Publish your own workflows for others to use

Forking vs Subscribing

FeatureForkSubscribe
Get your own copy
Customize freely
Automatic updates
Version pinningN/A

Version Pinning

When subscribing to a workflow, you can control updates:

PinBehavior
latestAlways use the latest version
^1.0Allow minor updates (1.x)
~1.2Allow patch updates (1.2.x)
1.2.3Exact version only

Next Steps