massimodeluisa/recursive-decomposition-skill
FreeHandle long-context tasks (100+ files) via decomposition
About massimodeluisa/recursive-decomposition-skill
Recursive Decomposition Skill is a skill for Claude Code that enables handling of long-context tasks (e.g., analyzing 100+ files, multi-document QA, codebase-wide searches) by recursively decomposing inputs. Inspired by research on Recursive Language Models, the skill allows Claude to filter, chunk, recurse, verify, and synthesize information across inputs up to two orders of magnitude beyond normal context limits. It spawns sub-agents for independent analysis of segments and aggregates results programmatically. Tested on the Anthropic Cookbook (196 files, 356MB), it successfully scanned 142 files, identified 18 files with API calls, and produced a comprehensive report with file:line references. The skill is open source and available via the Claude Code Marketplace or manual installation.
Key Features
Pros & Cons
- Enables analysis of inputs far beyond normal context limits
- Maintains accuracy by verifying answers on smaller windows
- Spawning sub-agents allows parallel processing of independent segments
- Systematic decomposition reduces context rot and missed details
- Open source and free to use
- Easy installation via Claude Code Marketplace or manual setup
- Requires Claude Code as the underlying AI platform
- May introduce latency due to spawning and aggregating multiple sub-agents
- Optimal for tasks that can be naturally decomposed; not suited for highly interdependent contexts