debim is a minimalist, Git-native, declarative BIM engine for AI agents and humans, following the Building-as-Code philosophy. It is designed to solve the problems of traditional BIM tools (such as Revit and Archicad) being large, closed, and difficult to automate, while also helping AI avoid hallucinations in building dimensions and quantity calculations.
Purpose: debim expresses building models as compact YAML files (.debim), making building data version-controllable, diffable, and branch-manageable like software code. It is mainly used for building information modeling, quantity takeoff (BOQ/QTO), code compliance checking, and as a deterministic calculation tool for AI agents.
Main capabilities:
- Declarative modeling: use YAML to describe building geometry, structure, materials, etc., with file sizes typically at the KB level.
- Git-native: supports line-by-line diff, branching, and version control.
- Deterministic code compliance: building codes and engineering rules as automated unit tests (pytest) for rapid violation detection.
- Zero-license visualization: instantly view models in the browser through a lightweight 3D HTML viewer.
- Dual-representation bridging: connects 2D sketches, 3D DCC tools (Blender/SketchUp), and the open IFC standard, using 90% geometric primitives for engineering/BOQ + 10% baked GLB assets for architectural refinement.
- Human-AI collaboration: supports explicit uncertainty marking (review_status: needs_review), making it easy for humans and AI to jointly author and verify models.
- Zero dependencies and air-gapped sandbox: built entirely on the Python standard library, with no pip dependencies, and can run in secure enterprise environments, air-gapped virtual machines, and LLM code interpreters.
- MCP server: natively implements the Model Context Protocol, providing tools through FastMCP so that LLMs and AI agents (such as Claude Desktop, Cursor, Cline, Windsurf, Devin, Antigravity) can perform modeling, inspection, calculation, compilation, and visualization through function calls.
Usage:
- Installation: debim is published on PyPI and requires Python 3.11+. It can be installed via pip and also supports running with Docker.
- Basic commands: provides v1.0.Basic commands for version 0; refer to the official documentation for specific commands.
- AI agent setup: prompts can be sent to an AI coding assistant so that it automatically reads the repository, installs dependencies, and verifies.
- MCP configuration: add the debim configuration to claude_desktop_config.json or .cursor/mcp.json to connect.
- Example project: a project.yaml example is provided.
Use cases:
- AI agents perform building modeling and quantity takeoff, avoiding spatial computation hallucinations.
- Architecture design and engineering teams perform version control and collaboration.
- Building model generation and verification in isolated or air-gapped environments.
- Compile building models into IFC4, AutoCAD DXF, or bills of quantities.
- Automated testing of building code compliance.
Limitations:
- Official materials do not provide detailed pricing or cost information.
- Specific commands and complete usage steps require reference to the official documentation; not all are listed in the materials.
- Benchmark results are based on specific datasets; actual results may vary by scenario.
- Requires a Python 3.11+ environment.