Use Codex, Claude Code, or another AI agent to orchestrate Ansys Workbench projects from the workflow you already use.
sim-plugin-workbench gives an agent practical Workbench control paths:
create and update analysis systems, run Workbench journals, inspect live session
health, summarize systems and cells, manage project checkpoints, and hand the
Model cell off to solver-specific plugins such as Mechanical.
The Workbench application and SDK are not bundled. Bring your own Workbench installation. See LICENSE-NOTICE.md.
- Create or update Workbench analysis systems through journals.
- Keep Engineering Data, Geometry, and Model cells organized before solver work.
- Use a persistent PyWorkbench session when the SDK is available.
- Fall back to RunWB2 journal execution when the SDK path is unavailable.
- Inspect session health, UI capabilities, project identity, and system/cell state before continuing a workflow.
- Prepare a clean handoff to Mechanical for setup, solve, and result extraction.
Use this for repeatable agent-driven orchestration:
uv run sim connect --solver workbench --ui-mode gui
uv run sim inspect session.health
uv run sim exec --file step.wbjn
uv run sim inspect workbench.systems.summaryThe SDK path is preferred because it keeps state across steps and lets the agent inspect Workbench state between bounded journal snippets.
Use this when the SDK is unavailable or incompatible:
uv run sim run --solver workbench path/to/journal.wbjnRunWB2 is reliable for one-shot journals, but it should not be treated as a rich live session. Inspect the JSON result written by the journal and save a project checkpoint before handing off to another solver.
Use Workbench for cells 1-3: Engineering Data, Geometry, and Model. Use Mechanical for cells 4-6: setup, solution, and results. Before handoff, inspect:
uv run sim inspect workbench.project.identity
uv run sim inspect workbench.systems.summaryThe Workbench side should have a project checkpoint and a refreshed Model cell. The Mechanical side should confirm the expected analysis tree before adding loads, supports, mesh controls, solve settings, or result objects.
Install these before asking an agent to use this plugin:
- Python 3.10 or newer.
- uv for Python environment and package installs.
- git when installing from GitHub source refs.
- A project Python environment where sim-cli-core can be installed.
- A local Ansys Workbench installation compatible with PyWorkbench or RunWB2.
The plugin does not include Workbench or vendor SDK binaries. It installs the Python adapter and its Python dependencies only.
For agent projects, install sim-cli-core and the Workbench plugin in the project environment:
uv init # only if this is not already a uv project
uv add sim-cli-core sim-plugin-workbench
uv run sim plugin sync-skills --target .agents/skills --copy
uv run sim check workbench
uv run sim plugin doctor workbench --deepFor Claude Code, sync the bundled skill to .claude/skills instead:
uv run sim plugin sync-skills --target .claude/skills --copyFor a reproducible agent run, pin a commit SHA:
uv add sim-cli-core "git+https://github.com/svd-ai-lab/sim-plugin-workbench.git@<commit-sha>"If your environment uses SSH authentication:
uv add sim-cli-core "git+ssh://git@github.com/svd-ai-lab/sim-plugin-workbench.git@<commit-sha>"uv run sim ... runs sim from this project environment, so it sees this
project's plugins. Without uv, create and activate a venv, then install
sim-cli-core plus this plugin with python -m pip.
After installation, sim-cli should auto-discover the driver and bundled skill:
uv run sim check workbenchIf uv run sim check workbench reports that Workbench itself is unavailable, first
confirm the Python package installed correctly, then fix the local Workbench or
SDK prerequisites.
Use a visible Workbench session when an agent needs human-visible project state:
uv run sim connect --solver workbench --ui-mode gui
uv run sim inspect session.health
uv run sim inspect workbench.project.identity
uv run sim inspect workbench.systems.summaryUse one-shot RunWB2 execution only for bounded journals:
uv run sim run --solver workbench path/to/journal.wbjn- Choose persistent SDK session, RunWB2 one-shot, or handoff workflow.
- Inspect
session.health. - Run one bounded journal step.
- Inspect
last.resultandworkbench.systems.summary. - Save or checkpoint the project before risky edits or solver handoff.
- Stop if a parsed journal result reports
ok=false; inspect the diagnostic before retrying a larger journal.
Workbench owns Engineering Data, Geometry, and Model cells. Mechanical owns setup, solve, and results. Before handoff:
uv run sim inspect workbench.project.identity
uv run sim inspect workbench.systems.summaryContinue only when the expected Workbench system exists, the Model cell is available, and the project has a checkpoint suitable for downstream solver work.
Update the published package:
uv add --upgrade sim-plugin-workbenchUpdate from the latest GitHub main branch:
uv add "git+https://github.com/svd-ai-lab/sim-plugin-workbench.git@main"Uninstall:
uv remove sim-plugin-workbenchsimcommand not found: run commands throughuv run sim ...or activate the venv that contains sim-cli-core.- Driver not discovered: reinstall the plugin and run
uv run sim check workbench. - Workbench launch fails: inspect
session.healthand confirm local Workbench prerequisites outside sim-cli. - A journal appears to run but no system is created: inspect
last.result; a parsedok=falseresult is treated as a failed step.
Give an agent this instruction when the task is about Workbench:
Use the bundled Workbench skill from sim-plugin-workbench. First identify
whether the task needs a persistent SDK session, a RunWB2 one-shot journal, or
a Workbench-to-Mechanical handoff. For persistent work, connect with
`uv run sim connect --solver workbench --ui-mode gui`, then inspect `session.health`,
`workbench.project.identity`, and `workbench.systems.summary`. Execute one
bounded journal step at a time, inspect the result, and save or update a
project checkpoint before handing the Model cell to Mechanical.
The bundled skill entry point is:
src/sim_plugin_workbench/_skills/workbench/SKILL.md
sim-plugin-workbench extends sim-cli.
sim-cli provides the common agent runtime surface (connect, exec, inspect,
run, screenshot), while this plugin supplies Workbench detection, journal
execution, persistent session handling, and bundled Workbench agent guidance.
The plugin registers three entry-point groups:
[project.entry-points."sim.drivers"]
workbench = "sim_plugin_workbench:WorkbenchDriver"
[project.entry-points."sim.skills"]
workbench = "sim_plugin_workbench:skills_dir"
[project.entry-points."sim.plugins"]
workbench = "sim_plugin_workbench:plugin_info"git clone https://github.com/svd-ai-lab/sim-plugin-workbench
cd sim-plugin-workbench
uv sync
uv run pytest tests -m "not integration"End-to-end tests require a local Workbench installation and are skipped unless their prerequisites are available.
Apache-2.0. See LICENSE and LICENSE-NOTICE.md.