[ICLR 2026] A library for generating difficulty-scalable, multi-tool, and verifiable agentic tasks with execution trajectories.
[ICLR 2026] A library for generating difficulty-scalable, multi-tool, and verifiable agentic tasks with execution trajectories.
[Paper] [Data]
taskcraft is a library for generating difficulty-scalable, multi-tool, and verifiable agentic tasks with execution trajectories. It offers:
✨ Unlimited Task Complexity Scaling: Build multi-level complex challenges from simple atomic tasks via depth-based (hierarchical) and width-based (compositional) extension strategies, supporting multi hops reasoning and multi-tool collaboration.
Seamless Multi-Modal Input Parsing. Directly process heterogeneous data sources like PDF/HTML/URL, automatically extracting key information to generate atomic questions, with support for single-modal (text) and multi-modal (text-image hybrid) modes.
Verifiable Execution Trajectory Generation: Produce standardized function call logs and tool invocation chains for every task, enabling precise reproduction and evaluation of agent execution processes.
Difficulty Grading and Large-Scale Data Generation: Built-in difficulty scoring system automatically generates tasks from simple (1-step) to expert-level (4-step+), with a default 36,000+ synthetic dataset ready for model training.
Python>=3.10
conda create -n taskcraft python=3.10
conda activate taskcraft
pip install taskcraftconda create -n taskcraft python=3.10
conda activate taskcraft
cd TaskCraft
pip install -e .Before use, set the following environment variables (supports OpenAI-compatible models and third-party tools): For Linux:
export OPENAI_API_BASE="your-openai-endpoint" # e.g., OpenAI official or Azure OpenAI
export OPENAI_API_KEY="your-api-key" # OpenAI API key
export SERP_API_KEY="your-serpapi-key" # see https://serpapi.com/
export JINA_API_KEY="your-jina-key" # see https://jina.ai/For windows:
$env:OPENAI_API_BASE="your-openai-endpoint" # e.g., OpenAI official or Azure OpenAI
$env:OPENAI_API_KEY="your-api-key" # OpenAI API key
$env:SERP_API_KEY="your-serpapi-key" # see https://serpapi.com/
$env:JINA_API_KEY="your-jina-key" # see https://jina.ai/Extract the content from PDF/HTML/URL/Image to generate atomic agentic tasks.
…Generate multi-hop reasoning tasks from atomic tasks to simulate real-world agent decision-making.
……By default, we rely on OAgents, ensuring seamless execution of taskcraft. However, you're free to deploy your own agent to tailor the experience to your specific needs.
You can add your own agent class in src/tools/agent_tools.py accordingly.
…Then you can use these agents in the depth_extend function by passing them as parameters.
…The generated dataset can be found in huggingface.
Welcome to report issues or submit feature requests via Issues. Feel free to contribute code or documentation improvements :).
If you use TaskCraft in your publication, please cite it by using the following BibTeX entry.
@misc{shi2025taskcraft,
title={TaskCraft: Automated Generation of Agentic Tasks},
author={Dingfeng Shi and Jingyi Cao and Qianben Chen and Weichen Sun and Weizhen Li and Hongxuan Lu and Fangchen Dong and Tianrui Qin and King Zhu and Minghao Yang and Jian Yang and Ge Zhang and Jiaheng Liu and Changwang Zhang and Jun Wang and Yuchen Eleanor Jiang and Wangchunshu Zhou},
year={2025},
url={https://arxiv.org/abs/2506.10055},
}No open issues yet, or sync has not completed.