Recursive Decomposition

Handle tasks that exceed the context window by decomposing them: size and filter the input, chunk it, run recursive sub-agents on independent parts, verify on small windows, and synthesise programmatically, following the Recursive Language Models (RLM) research by Zhang, Kraska and Khattab (2025). Use when a task spans 10+ files or 50k+ tokens, or when asked to analyze all files, process a large document, aggregate information from many sources, or search across a codebase. Triggers: long context, context rot, large codebase, many files, big document, multi-document, aggregate, summarize everything, codebase-wide, recursive, sub-agents, map-reduce.

majiayu000 9b0c05e 2 files · 8.3 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/other/recursive-decomposition commit 9b0c05e7a6

Frequently asked questions

npx skillmds add majiayu000/recursive-decomposition-2