Orchestration
Understand how CogTog orchestrates agents to solve complex tasks through intelligent coordination and automatic recovery.
Execution Modes
CogTog offers 3 execution modes depending on task complexity: Auto (single agent), Agent (multi-agent), and Orchestration (full autonomous).
Auto Mode (Single Agent)
One agent handles the entire task from start to finish. Best for simple, focused tasks that don't require specialization.
- • Simple, straightforward tasks
- • Tasks requiring one specific skill
- • Quick prototyping
- • When you want direct control
Agent Mode (Multi-Agent)
Multiple specialized agents work together, each handling their area of expertise. The orchestrator coordinates their efforts.
- • Complex projects requiring multiple skills
- • Large codebases with many files
- • Tasks needing architecture + implementation + testing
- • Production-grade work
Orchestration Mode (Full Autonomous)
CogTog automatically decides whether to use single or multi-agent mode based on task complexity. The orchestrator analyzes your request and chooses the best approach.
- • Optimal resource usage
- • Faster for simple tasks
- • Better quality for complex tasks
- • No manual configuration needed
Meta-Orchestrator
The meta-orchestrator is CogTog's intelligent task coordinator. It analyzes requests, breaks down complex tasks, assigns agents, and monitors progress.
Task Classification
When you submit a task, the meta-orchestrator first classifies it:
Task Breakdown
For complex tasks, the meta-orchestrator breaks the work into subtasks:
Agent Assignment
Each subtask is assigned to the most appropriate agent role:
Stuck Detection & Recovery
CogTog monitors agent progress and automatically recovers from stuck states. This ensures tasks complete even when agents encounter issues.
Detection Triggers
The orchestrator detects when an agent is stuck:
Same tool fails 3+ times with same arguments (e.g., file not found, permission denied)
Agent loops through same actions without making progress
Agent exceeds iteration limit (default: 50) without completing task
Recovery Strategies
When stuck, the orchestrator tries these recovery strategies:
Intervention Message
Send a message explaining what went wrong and suggesting alternative approaches (excluding failing tools)
Tool Blocking
Temporarily block tools that repeatedly fail to force agent to try different approaches
Agent Handoff
Transfer task to a different agent with fresh context (multi-agent mode only)
User Notification
If recovery fails, ask user for help or clarification
In most cases, stuck detection and recovery happens automatically without user intervention. The agent learns from failures and adapts its approach.
Progress Monitoring
The orchestration UI shows real-time progress for all active agents:
Best Practices
Use Auto Mode
Let CogTog decide between single and multi-agent based on task complexity. This usually gives the best results.
Provide Clear Context
Give agents enough context about your project structure, goals, and constraints. This helps the orchestrator make better decisions.
Don't Micro-Manage
Trust the orchestrator to coordinate agents. Avoid manually intervening unless an agent asks for help.
Review Final Output
Always review the final results. While orchestration is powerful, human oversight ensures quality.