Principle:42 evey Hermes plugins Goal Decomposition
| Knowledge Sources | |
|---|---|
| Domains | Planning, Task_Management, Autonomous_Agents |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
A planning method that decomposes a high-level goal into a sequence of concrete steps with assigned tools, models, and cost tiers, using task-type classification to select a pre-built template.
Description
Goal Decomposition transforms an abstract goal ("research embedding models") into an actionable plan: a numbered list of steps, each with a specific tool, model recommendation, and cost tier. It uses a two-stage approach:
- Classification: The goal text is classified into a task type via keyword matching (e.g., "research" keywords →
research_deep). - Template selection: The task type maps to a pre-built plan template — a sequence of steps designed for that task category.
This approach trades the flexibility of dynamic LLM-based planning for the reliability and cost-efficiency of curated templates. Constraint modes (free-only, fast, thorough) allow adjusting plan depth: fast truncates to 2 steps, thorough adds a reflection step.
Usage
Use this principle when an agent needs to produce multi-step plans from goals but dynamic LLM-based planning is too expensive or unreliable. Suitable for recurring task categories with known step patterns. Not suitable for novel, complex tasks requiring creative planning.
Theoretical Basis
The decomposition pipeline:
Failed to parse (syntax error): {\displaystyle \text{goal} \xrightarrow{\text{classify}} \text{task\_type} \xrightarrow{\text{map}} \text{template} \xrightarrow{\text{constrain}} \text{steps} }
# Abstract algorithm (NOT real implementation)
task_type = classify_goal(goal) # keyword matching
template = TEMPLATES[task_type] # pre-built steps
steps = template[:max_steps] # apply length limit
if constraints == "fast":
steps = steps[:2]
elif constraints == "thorough":
steps.append(reflection_step)
The templates encode domain knowledge about effective step sequences for common task types (research, code, health, memory, etc.), each step specifying which tool to use and whether it requires a paid model.