#+TITLE: SKILL: Long-Horizon Planning Agent (Universal Literate Note) #+ID: skill-long-horizon #+STARTUP: content #+FILETAGS: :planning:meta-cognition:long-horizon:psf: * Overview The *Long-Horizon Planning Agent* manages complex, multi-step tasks that exceed the context window of standard LLMs. It uses an Org-mode *Dynamic Task Tree* to track progress, summarize completed sub-tasks, and prune irrelevant execution branches. * Phase A: Demand (PRD) :PROPERTIES: :STATUS: DRAFT :END: ** 1. Purpose Enable the agent to maintain focus and coherence over tasks spanning 100+ steps (SWE-bench parity). ** 2. User Needs - *Hierarchical Planning:* Break large goals into a nested tree of Org headlines. - *Context Compression:* Automatically summarize the results of child sub-trees into their parent nodes. - *Branch Pruning:* Meta-cognitive review to stop execution of failed or redundant paths. - *Self-Correction:* Adjust the plan dynamically based on environmental feedback. ** 3. Success Criteria *** TODO Dynamic Task Tree Generation *** TODO Context Compression Verification *** TODO Branch Pruning Logic Effectiveness