Codex Workflow¶
This pattern optimizes idfkit-mcp usage for Codex-style autonomous coding sessions.
Recommended System Prompt Fragment¶
Use idfkit-mcp to edit and simulate EnergyPlus models.
Always:
1) read the idfkit://model/summary resource first,
2) call describe_object_type before create/update,
3) validate after each edit batch,
4) prefer batch_add_objects over repeated add_object calls,
5) summarize errors with actionable fixes.
High-Throughput Authoring Loop¶
- Load or create model (
load_model/new_model) - Fetch type contract (
describe_object_type) - Create objects in bulk (
batch_add_objects) - Wire references (
get_available_references,update_object) - Run guards (
validate_model) - Persist (
save_model)
Simulation Loop¶
- Ensure weather (
download_weather_fileor explicitweather_file) - Run (
run_simulation) - Inspect (
idfkit://simulation/resultsresource) - Query variables (
list_output_variables) - Iterate from schema + validation findings
Prompting Tips for Better Tool Use¶
- Ask for diff-oriented updates: "Change only these fields."
- Ask for batched object creation: "Create all schedules in one call."
- Ask for structured exit criteria:
- model validates
- no dangling references
- simulation completes without severe/fatal errors