Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DungeonGrid

DungeonGrid is a text-first cooperative dungeon-crawl environment for multi-agent benchmarks.

It is designed around:

  • one to four submitted hero agents;
  • an always-AI Warden / dungeon-controller side;
  • compact text board-state observations;
  • structured JSON action plans instead of string actions;
  • batched OpenEnv ReAct-style plan execution with reveal-boundary replanning;
  • fixed quest difficulty across solo, duo, trio, and squad slices.

This package is currently an alpha extraction of the DungeonGrid engine that is being integrated into NanoCoop.

Quick Start

from dungeongrid import DungeonGridEnvironment

env = DungeonGridEnvironment()
obs = env.reset(quest_id="lantern_crypt", num_heroes=2, seed=1)
print(obs.text)

result = env.act_plan(
    intent="Scout east, then report back to the party.",
    actions=[
        {"type": "move", "direction": "east"},
        {"type": "message", "target": "party", "payload": {"text": "I am checking the east passage."}},
    ],
)
print(result.skipped_actions)
print(result.observation.text)

OpenEnv ReAct Contract

Agents receive compact text observations and submit one structured tool call per decision point:

{
  "name": "dungeongrid_act",
  "arguments": {
    "intent": "Open the east door and stop if a room is revealed.",
    "actions": [
      {"type": "open_door", "target": "door_1"},
      {"type": "move", "direction": "east"}
    ]
  }
}

Agents can query compact rule details with dungeongrid_rules({"topic": "actions"}). Public observations do not expose legal action lists; the environment validates proposed JSON actions, skips illegal queued actions, and renders concrete feedback in later observations.

Reveal boundaries stop queued execution so the agent can replan after new board state appears, such as opened doors, revealed traps, opened chests, objective changes, turn end, or episode end.

from dungeongrid import dungeongrid_rules

print(dungeongrid_rules("movement"))

Quests

Bundled alpha quests:

  • lantern_crypt
  • bells_under_blackwater
  • ashen_pantry
  • cinder_exit
  • low_shrine_locks

Status

DungeonGrid is under active development. Public names use DungeonGrid, while some compatibility aliases for the earlier TorchGrid prototype remain in the Python API to ease migration.

Metadata

Release files for dungeongrid 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dungeongrid 0.1.0a1
File Size Uploaded Provenance
dungeongrid-0.1.0a1.tar.gz 29.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dungeongrid 0.1.0a1
File Interpreter ABI Platform
dungeongrid-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 64.6 kB

Release files / dungeongrid-0.1.0a1.tar.gz

Download URL dungeongrid-0.1.0a1.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86b00b5063f9233ef99fc54907ec19c8b9beb13a1a5674b6c1b8e19c52c6e90e
BLAKE2b-256 checksum
How to use checksums
cb63b2a38c08aae7415607b94891965e0380bff87b0ea11720583cd7d6103ead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / dungeongrid-0.1.0a1-py3-none-any.whl

Download URL dungeongrid-0.1.0a1-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f04e5a9c86352a4c45f0837c8f889cd68545605944a9e30135151c0157dbac2
BLAKE2b-256 checksum
How to use checksums
d3474bb875877bbdd3c4c5bfe23ca8926f6ab405deed16702c43ea48e1e557c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for dungeongrid 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page