OpenStudio AI Harness
OpenStudio AI Harness packages a local MCP runtime, host adapters, skills, knowledge, and workflow-state tools for AI-assisted building-energy modeling.
Current Capabilities
- OpenStudio MCP server for model lifecycle, simulation, results, SDK lookup, runtime storage, and MCP-backed blackboard workflow state.
- Claude Code plugin export.
- Codex plugin export.
- Learning contracts for candidate drafting; host plugins do not persist candidate records yet.
- HVAC workflow skills and generated child skills.
- Reviewed OpenStudio SDK knowledge packs.
- Packaging north-star plan for stable
pip installand marketplace agentic installation paths.
Development Setup
From this repository root:
python -m pip install -e ".[dev,standalone]"
Use .[dev,standalone] for full local harness development. The standalone
extra installs the optional AUTOMA-AI and Streamlit dependencies used by
agent.py, ui.py, and tests that exercise the local A2A agent path.
Install the runtime package after it is published:
python -m pip install openstudio-ai
openstudio-ai install-runtime
openstudio-ai doctor
openstudio-ai-mcp --transport stdio
OpenStudio AI requires both the PyPI openstudio Python package, installed as
a dependency of openstudio-ai, and the native OpenStudio application/CLI. Set
OPENSTUDIO_PATH when the CLI is not on PATH or when selecting a specific
installation.
The base package is the recommended install for Claude Code, Codex, and other marketplace-style host integrations. It intentionally does not install AUTOMA-AI or Streamlit. To run the standalone local AI app, install:
python -m pip install "openstudio-ai[standalone]"
python agent.py
streamlit run ui.py
Standalone mode requires user-provided LLM configuration, such as API keys or model endpoint settings, in the local environment.
Run focused tests:
python -m pytest -q \
tests/test_mcp_openstudio_smoke.py \
tests/test_openstudio_sdk_docs.py \
tests/test_openstudio_learning_pipeline.py \
tests/test_openstudio_codex_adapter.py \
tests/test_openstudio_claude_code_adapter.py
Start the MCP server in stdio mode:
openstudio-ai-mcp --transport stdio
Export local development plugins:
openstudio-ai export claude \
--output-dir /tmp/openstudio-ai-claude-plugin \
--runtime-mode local
openstudio-ai export codex \
--output-dir /tmp/openstudio-ai-codex-plugin \
--runtime-mode local
Export marketplace-oriented plugins that expect an installed runtime command:
openstudio-ai export claude \
--output-dir /tmp/openstudio-ai-claude-plugin \
--runtime-mode marketplace
openstudio-ai export codex \
--output-dir /tmp/openstudio-ai-codex-plugin \
--runtime-mode marketplace
Export a publishable repository containing both host packages, generated install guides, and source provenance:
openstudio-ai export marketplace \
--output-dir /path/to/openstudio-ai-plugins \
--runtime-mode marketplace \
--force
This produces a generated release tree; it validates both exports before completion. Keep the harness repository as the source of truth and do not edit generated plugin files directly.
After installing the Codex marketplace plugin, add the shared OpenStudio modeler policy to each Codex project that should route plain-language OpenStudio requests through the workflow orchestrator:
openstudio-ai install codex --target-dir /path/to/codex-project
This creates AGENTS.md when it does not exist. Use --dry-run to preview;
an existing unmanaged AGENTS.md requires --force before the managed block
is appended.
Key Docs
- Harness Details
- Packaging North Star
- Runtime Installation Contract
- Marketplace Install Guide
- PyPI Release Guide
- Developer Guidance
Runtime State
Local runtime state is intentionally ignored by Git:
.openstudio_mcp_workspace/.openstudio_ai_blackboards/logs/outputs/
The MCP runtime uses local SQLite metadata and filesystem workspaces for large OSM, SQL, and log artifacts.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openstudio_ai-0.1.8.tar.gz.
File metadata
- Download URL: openstudio_ai-0.1.8.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b52590b4100ab2359f5cd91113a70354a137ca06bee199253c6cabc9374a6f6
|
|
| MD5 |
dd7ce9c51c7452a53388f3ef2c3999a1
|
|
| BLAKE2b-256 |
feef271d16894dd2c0399aabb375b5aac8fc70aa44062742ad515bdac3310360
|
File details
Details for the file openstudio_ai-0.1.8-py3-none-any.whl.
File metadata
- Download URL: openstudio_ai-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82f5d49f1754849eff1f88c2eb216ef6df77793e8d54f04c4d82ec58d6c3ddc9
|
|
| MD5 |
bf626cfdbdf776c7950323eab260f737
|
|
| BLAKE2b-256 |
06306d3f99a1e738ad217a066709d0daadd01f7bf41793ba28cf65bc4bc397a6
|