How to use Codex with COMSOL through sim-cli
One-sentence answer
Section titled “One-sentence answer”Use sim-cli-core plus sim-plugin-comsol, sync the COMSOL skill into .agents/skills, run sim check comsol, then ask Codex to inspect and execute bounded steps through sim-cli.
Requirements
Section titled “Requirements”- Licensed local COMSOL Multiphysics installation
- Python environment
- uv or pip
- sim-cli-core
- sim-plugin-comsol
- Codex CLI or another local coding-agent harness
Install
Section titled “Install”uv add sim-cli-core sim-plugin-comsoluv run sim plugin sync-skills --target .agents/skills --copyuv run sim check comsoluv run sim plugin doctor comsol --deepPrompt for Codex
Section titled “Prompt for Codex”Use the installed COMSOL skill. Run sim through this project with
uv run sim .... Check my local COMSOL installation before connecting. Work one bounded step at a time: connect, inspect, execute a small step, inspect results, then save or update a checkpoint before continuing. Do not guess COMSOL API names.
Workflow
Section titled “Workflow”check readiness → attach to live session → inspect model state→ run one bounded CAE step → verify result/state → save checkpoint/artifactsFor COMSOL, that may be one geometry/material/physics update, one mesh operation, one study solve, one plot creation, or one exported table/probe.
Limitations
Section titled “Limitations”sim-cli does not bundle COMSOL. You must provide your own licensed solver installation.