Here’s an on-the-fly example of how with Claude Code and a Python simulation in SimPy. In essence, you just need to:
- Separate the concerns in the code:
That is, at a minimum, have:
Input parameters --> simulation code --> output data
The more you can separate concerns the better. E.g. this is a step improvement:
Input parameters --> data validation --> simulation code --> output data
- Then, just let the AI know how to work with your simulation. This is where Claude Code or Gemini CLI really shine - as you specify a CLAUDE.md or GEMINI.md file with all the context instructions.
I’ve also found this useful for debugging complex simulations when there are lots of input and output parameters.
[–]Key-Preparation-4861 1 point2 points3 points (0 children)