Discover and explore top open-source AI tools and projects—updated daily.
FoundationAgentsLLM agent framework for unified planning and action via recursive code
New!
Top 86.9% on SourcePulse
ReCode revolutionizes LLM agents by unifying planning and action via recursive code generation, enabling adaptive, human-like decision-making. It targets researchers and developers seeking universal granularity control, allowing agents to dynamically decompose complex tasks from high-level strategies into executable code primitives. This approach yields significant performance gains and superior data efficiency.
How It Works
The system employs a divide-and-conquer strategy, organizing partial programs in a tree structure where each node represents a sub-task. LLMs recursively expand placeholder functions into specific calls or subroutines using environment-specific prompts and few-shot examples. A dynamic execution loop immediately runs each node, with fresh observations guiding further expansion, retries, or completion. A constrained Python executor manages shared state, validates code, and exposes tools, facilitating robust, adaptive execution from strategic planning to concrete actions.
Quick Start & Requirements
Setup requires Python 3.10+ within a conda environment; separate environments are advised for ALFWorld, ScienceWorld, and WebShop due to potential conflicts. Key steps include:
conda create -n recode-envname python=3.10).setup.sh, pip install -e ., conda install openjdk=11, pip install en_core_web_lg).configs/profiles.yaml.python run.py (e.g., python run.py -a recode -e alfworld -n 1 --profile default).
Prerequisites include specific dataset paths and LLM API access.Highlighted Details
claude-4-sonnet.Maintenance & Community
Contact zhaoyangyu713@gmail.com for technical assistance. No community channels (Discord, Slack) or public roadmap are listed.
Licensing & Compatibility
The README omits a software license, preventing an assessment of its compatibility for commercial use or integration into closed-source projects.
Limitations & Caveats
Users may face dependency conflicts between environments, requiring separate conda installations. The WebShop requirements.txt might be incomplete, potentially necessitating direct contact with the maintainer. The absence of a stated license is a significant adoption blocker.
3 days ago
Inactive
langchain-ai
grapeot