recursive-long-context

Process long inputs via iterative decomposition and recombination with Python execution.

1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/teessmartai/Skills --skill recursive-long-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recursive-long-context
Source: https://github.com/teessmartai/Skills/tree/main/.claude/skills/recursive-long-context
Command: npx skills add https://github.com/teessmartai/Skills --skill recursive-long-context

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enables processing inputs that exceed model context windows by treating the input as an external environment and iteratively inspecting, decomposing, and recombining results.

Core Features & Use Cases

  • External context exploration and decomposition across long documents, codebases, or datasets.
  • Recursive sub-calls to smaller language models for scalable analysis and reasoning.
  • Deterministic code execution blocks and result aggregation to produce final answers.
  • Transparent trajectory capturing for auditing costs, iterations, and sub-calls.

Quick Start

Run the CLI with a long text file or directory of documents to start recursive processing.

Frequently Asked Questions about recursive-long-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process long documents that exceed the LLM context window?

To process long documents that exceed the LLM context window, you can use recursive reasoning to treat the input as an external environment, iteratively inspecting, decomposing, and recombining results to generate a final answer.

What is the best way to perform multi-hop reasoning on large datasets?

The best way to perform multi-hop reasoning on large datasets is using an LLM-driven REPL. It recursively calls smaller language models and executes deterministic Python code to analyze data that cannot be handled in a single pass.

Can I run Python code execution in a controlled environment for large-scale text analysis?

Yes, you can run Python code execution in a controlled environment for large-scale text analysis. This approach supports deterministic code execution blocks to inspect external contexts and aggregate results iteratively.

How do I audit costs and iterations when analyzing very long text files?

To audit costs and iterations when analyzing very long text files, you should capture a transparent trajectory. This mechanism records recursive sub-calls, iterations, and deterministic code executions for full auditability.

Does recursive LLM analysis work for decomposing large codebases?

Yes, recursive LLM analysis works for decomposing large codebases. It treats the codebase as an external environment, enabling external context exploration and recursive sub-calls to smaller language models for scalable analysis.