Published March 9, 2026 | Version v2.0.1
Software Open

HierarchyCraft: A Benchmark Builder for Hierarchical Reasoning

  • 1. ROR icon CentraleSupélec
  • 2. EDMO icon University of Alberta
  • 3. ROR icon Alberta Machine Intelligence Institute

Description

HierarchyCraft (hcraft for short) is a Python library designed to create arbitrary hierarchical environments that are compatible with both the OpenAI Gym Reinforcement Learning Framework and AIPlan4EU Unified Planning Framework. This library enables users to easily create complex hierarchical structures that can be used to test and develop various reinforcement learning or planning algorithms.

In environments built with HierarchyCraft the agent (player) has an inventory and can navigate into abstract zones that themselves have inventories.

The action space of HierarchyCraft environments consists of sub-tasks, referred to as Transformations, as opposed to detailed movements and controls. But each Transformations has specific requirements to be valid (eg. have enought of an item, be in the right place), and these requirements may necessitate the execution of other Transformations first, inherently creating a hierarchical structure in HierarchyCraft environments.

This concept is visually represented by the Requirements graph depicting the hierarchical relationships within each HierarchyCraft environment. The Requirements graph is directly constructed from the list of Transformations composing the environement.

More details about requirements graph can be found in the documentation at hcraft.requirements and example of requirements graph for some HierarchyCraft environements can be found in hcraft.examples.

Files

HierarchyCraft-2.0.1.zip

Files (26.0 MB)

Name Size Download all
md5:5fc945d8b00491063148a30447270e43
13.0 MB Download
md5:ecb9ef750156400407d6457455ce61cc
13.1 MB Preview Download

Additional details

Software

Repository URL
https://github.com/IRLL/HierarchyCraft
Programming language
Python
Development Status
Active