Agent Node
Agent nodes are AI workers that perform specific tasks in your workflow.
Properties
Node ID
Unique identifier for the agent. Example: code-writer, security-reviewer
Instructions
Tell the agent what to do. Be clear and specific:
You are a code reviewer. Analyze the provided code for:
1. Security vulnerabilities
2. Performance issues
3. Code style violations
Model Selection
| Model | Best For |
|---|---|
| Haiku | Simple tasks, fast iteration |
| Sonnet | Balanced tasks, most use cases |
| Opus | Complex reasoning, critical tasks |
Tools
Select which tools the agent can use:
| Tool | Purpose |
|---|---|
| Read | Read files |
| Write | Create/overwrite files |
| Edit | Make targeted edits |
| Bash | Run shell commands |
| Glob | Find files by pattern |
| Grep | Search file contents |
Feedback Loop
Enable "Evaluator & Feedback Provider" to make this agent a reviewer that can send work back for revision.
Settings:
- Max Retries: How many times to retry (1-10)
- Target Agent: Which agent to send back to on failure
Tips
- Be specific in instructions
- Only enable tools the agent needs
- Start with Sonnet, use Haiku for simple tasks