How to Use Codex to Iterate by Itself on MATLAB in VSCode?
What version of the VS Code extension are you using?
0.4.15
Which IDE are you using?
vscode
What platform is your computer?
win10
What steps can reproduce the bug?
Hi,
I'm a Pro user of Codex, and so far, it works great in VSCode, especially when writing Python code. One of the features I love is how Codex can directly interact with the environment I’ve set up, automatically iterating on my code until it’s error-free. However, I’m trying to achieve the same functionality with MATLAB in VSCode.
Here’s my current setup:
I have the MATLAB extension installed in VSCode, and it’s successfully linked to MATLAB on my PC.
I can write and run MATLAB scripts in VSCode, and errors are displayed in the editor.
However, I can’t debug MATLAB scripts step by step in VSCode.
What I want to know is: How can I configure Codex to control my addon(linked MATLAB environment) and automatically iterate on my MATLAB code in VSCode until all bugs are resolved, just like it does with Python?
Any guidance or tips would be greatly appreciated! Thanks in advance!
What is the expected behavior?
configure Codex to control my addon(linked MATLAB environment) and automatically iterate on my MATLAB code in VSCode until all bugs are resolved
What do you see instead?
codex can not iterate for matlab code, it report error everytime but do nothing to fix it.
Additional information
_No response_
3 Comments
I'd recommend figuring out what terminal commands Codex could run to get that information and adding it in your AGENTS.md file or look into setting up a mcp server so it can fetch other MATLAB diagnostics. The former probably easier.
@rockyicer My approach is to use python to control the matlab engine session in your matlab GUI, so that you can oversight it's work and charm in when needed. You can ask Codex to write python code for that. You can also use matlab mcp server to do it. Additional benefit of using matlab engine is that codex can use help cmd to retrieval the right matlab documents.
Thanks for your nice suggestion.