intelligent-delegation
A 5-phase framework for reliable AI-to-AI task delegation, inspired by Google DeepMind's "Intelligent AI Delegation" paper (arXiv 2602.11865). Includes task tracking, sub-agent performance logging, automated verification, fallback chains, and multi-axis task scoring.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hogpile/intelligent-delegationIntelligent Delegation Framework
A practical implementation of concepts from Intelligent AI Delegation (Google DeepMind, Feb 2026) for OpenClaw agents.
The Problem
When AI agents delegate tasks to sub-agents, common failure modes include:
- Lost tasks — background work completes silently, no follow-up
- Blind trust — passing through sub-agent output without verification
- No learning — repeating the same delegation mistakes
- Brittle failure — one error kills the whole workflow
- Gut-feel routing — no systematic way to choose which agent handles what
The Solution: 5 Phases
Phase 1: Task Tracking & Scheduled Checks
Problem: "I'll ping you when it's done" → never happens.
Solution:
- Create a
TASKS.mdfile to log all background work - For every background task, schedule a one-shot cron job to check on completion
- Update your
HEARTBEAT.mdto checkTASKS.mdfirst
TASKS.md template:
# Active Tasks
### [TASK-ID] Description
- **Status:** RUNNING | COMPLETED | FAILED
- **Started:** ISO timestamp
- **Type:** subagent | background_exec
- **Session/Process:** identifier
- **Expected Done:** timestamp or duration
- **Check Cron:** cron job ID
- **Result:** (filled on completion)
Key rule: Never promise to follow up without scheduling a mechanism to wake yourself up.
Phase 2: Sub-Agent Performance Tracking
Problem: No memory of which agents succeed or fail at which tasks.
Solution: Create memory/agent-performance.md to track:
- Success rate per agent
- Quality scores (1-5) per task
- Known failure modes
- "Best for" / "Avoid for" heuristics
After every delegation:
- Log the outcome (success/partial/failed/crashed)
- Note runtime and token cost
- Record lessons learned
Before every delegation:
- Check if this agent has failed on similar tasks
- Consult the "decision heuristics" section
Example entry:
#### 2026-02-16 | data-extraction | CRASHED
- **Task:** Extract data from 5,000-row CSV
- **Outcome:** Context overflow
- **Lesson:** Never feed large raw data to LLM agents. Write a script instead.
Phase 3: Task Contracts & Automated Verification
Problem: Vague prompts → unpredictable output → manual checking.
Solution:
- Define formal contracts before delegating (expected output, success criteria)
- Run automated checks on completion
Contract schema:
- **Delegatee:** which agent
- **Expected Output:** type, location, format
- **Success Criteria:** machine-checkable conditions
- **Constraints:** timeout, scope, data sensitivity
- **Fallback:** what to do if it fails
Verification tool (tools/verify_task.py):
# Check if output file exists
python3 verify_task.py --check file_exists --path /output/file.json
# Validate JSON structure
python3 verify_task.py --check valid_json --path /output/file.json
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hogpile-intelligent-delegation": {
"enabled": true,
"auto_update": true
}
}
}