Adapters Reference
Complete reference for HMS adapter configurations.
Overview
Adapters translate HMS manifests into IDE-specific instructions. Each adapter has its own execution model and configuration options.
Available Adapters
| Adapter | IDE | Default Mode | Best For |
|---|---|---|---|
claude | Claude Code | sub_agent | Complex, multi-phase workflows |
cursor | Cursor | direct | Interactive editing |
codex | OpenAI Codex | direct | Automated pipelines |
Claude Adapter
Execution Model
Claude uses sub-agent spawning for workflow execution. The main orchestrator agent can spawn specialized sub-agents for each step.
Orchestrator
├── Sub-agent: Analyzer
├── Sub-agent: Implementer
└── Sub-agent: TesterModes
sub_agent (Default)
Spawns dedicated sub-agents per step.
{
"adapters": {
"claude": {
"mode": "sub_agent",
"config": {
"spawn_agents_per_step": true,
"max_parallel_agents": 3
}
}
}
}Benefits:
- Specialized agents per task
- Parallel execution support
- Isolated context per step
sequential
Executes all steps in main agent, one at a time.
{
"adapters": {
"claude": {
"mode": "sequential"
}
}
}Benefits:
- Simpler execution
- Full context preserved
- No sub-agent overhead
parallel
Allows independent steps to run concurrently.
{
"adapters": {
"claude": {
"mode": "parallel",
"config": {
"max_parallel_agents": 5
}
}
}
}Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
spawn_agents_per_step | boolean | true | Spawn sub-agent for each step |
max_parallel_agents | number | 3 | Max concurrent sub-agents |
context_window | string | "standard" | Context size: "standard" or "extended" |
Generated Prompt Structure
You are the orchestrator for "{workflow_name}".
Intent: {intent}
## Context
{context}
## Workflow Steps
Step 1: {step_name}
Spawn sub-agent "{agent}" to:
- {action description}
- Report findings
Step 2: {step_name}
After Step 1 completes:
- {action description}
## Instructions
Execute steps in order, spawning sub-agents as specified.
Report progress after each step.Cursor Adapter
Execution Model
Cursor uses the Composer pattern for multi-file editing with inline diffs.
Modes
direct (Default)
Executes in main Cursor context.
{
"adapters": {
"cursor": {
"mode": "direct",
"config": {
"use_composer": true,
"auto_apply": false,
"show_diff": true
}
}
}
}parallel
Allows independent steps to run concurrently.
{
"adapters": {
"cursor": {
"mode": "parallel"
}
}
}Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
use_composer | boolean | true | Use Cursor Composer |
auto_apply | boolean | false | Auto-apply changes |
show_diff | boolean | true | Show diff before applying |
Generated Prompt Structure
# {workflow_name}
{intent}
## Files
@{file1}
@{file2}
## Steps
1. **{step_name}**
{action description}
2. **{step_name}**
After step 1:
{action description}
## Instructions
- Show diff for each change
- Wait for approval before applyingCodex Adapter
Execution Model
Codex uses function calling for workflow execution. Each step translates to a callable function.
Modes
direct (Default)
Sequential function execution.
{
"adapters": {
"codex": {
"mode": "direct",
"config": {
"temperature": 0.2,
"max_tokens": 2000
}
}
}
}Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
temperature | number | 0.2 | Model creativity (0-1) |
max_tokens | number | 2000 | Max tokens per response |
Generated Function Schema
{
"functions": [
{
"name": "analyze_code",
"description": "Analyze code for {focus}",
"parameters": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {"type": "string"}
}
}
}
},
{
"name": "edit_file",
"description": "Edit file to {focus}",
"parameters": {
"type": "object",
"properties": {
"path": {"type": "string"},
"changes": {"type": "string"}
}
}
}
]
}Mode Comparison
| Mode | Sub-agents | Parallel | Use Case |
|---|---|---|---|
sub_agent | ✅ | ✅ | Complex, specialized tasks |
direct | ❌ | ❌ | Simple, sequential tasks |
sequential | ❌ | ❌ | Strict ordering required |
parallel | ❌ | ✅ | Independent tasks |
Cross-Adapter Configuration
Configure multiple adapters in one manifest:
{
"adapters": {
"claude": {
"mode": "sub_agent",
"config": {
"spawn_agents_per_step": true,
"max_parallel_agents": 3
}
},
"cursor": {
"mode": "direct",
"config": {
"use_composer": true,
"show_diff": true
}
},
"codex": {
"mode": "direct",
"config": {
"temperature": 0.1
}
}
}
}Adapter Selection Guide
What's your primary use case?
│
├── Complex workflows with specialized steps
│ └── Claude with sub_agent mode
│
├── Interactive editing with review
│ └── Cursor with direct mode
│
├── Automated CI/CD pipelines
│ └── Codex with direct mode
│
├── Parallel independent tasks
│ └── Any adapter with parallel mode
│
└── Simple sequential steps
└── Any adapter with sequential modeBest Practices
Claude
- Use
sub_agentmode for workflows with 3+ steps - Set
max_parallel_agentsbased on step dependencies - Use
context_window: "extended"for large codebases
Cursor
- Keep
show_diff: truefor safety - Use
auto_apply: falseuntil workflow is tested - Leverage
@codebasefor context
Codex
- Use low
temperature(0.1-0.3) for code tasks - Increase
max_tokensfor complex generations - Validate function outputs