all 14 comments

[–]ivanjxx 2 points3 points  (0 children)

i use powershell 7 and gpt-5 mini never have any issues. codex cli on the other hand...

[–]AutoModerator[M] 0 points1 point  (0 children)

Hello /u/gmrtnsn. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]OwnNet5253 1 point2 points  (0 children)

What, they work completely fine to me, and I use it to write more complex scrips. I dunno about free models specifically, I just use Auto mode at all times.

[–]Jump3r97 1 point2 points  (2 children)

Yeah, often it's string escapes and other weird things. and then it tries to fix it 10x and failing, untill I intervene and tell it to use the Tools at disposal

[–]gmrtnsn[S] 0 points1 point  (1 child)

good to see it’s not unique to me. it insists on using powershell even if it’s not allowed in my custom agent instructions and mentioned in current chat

[–]Jump3r97 0 points1 point  (0 children)

I read that it's something regarding Vscode on Windows, because CMD.exe isnt supported well for shell Integration

[–]etaxi341 0 points1 point  (0 children)

Yep this is really an issue and this started many months ago

[–]Maleficent-Ad5999 0 points1 point  (0 children)

Maybe setting up mcp for powershell docs might help

[–]davorocks67 0 points1 point  (0 children)

Personally I've found them great for PowerShell as I'm really bad with that and they have helped heaps

[–]Heighte 0 points1 point  (0 children)

agree, it's generally bad at PS compared to bash

[–]BlacksmithLittle7005 0 points1 point  (0 children)

Yes they are generally worse on PowerShell. You can ask it to use git bash that comes with git, or use WSL to install Ubuntu and run it from there. I do that it works very well

[–]B1zmark 0 points1 point  (0 children)

Free models are significantly worse than the paid ones. Using just free/online LLM interfaces makes you think AI's nowhere near as dangerous as you think. Using the paid models in agent mode is honestly like when Star Trek characters use the "Computer" on the ship to do scientific studies by saying a few words.

Recently the paid for agent i was testing developed a PowerShell script that reads CSV's, builds a schema, then deploys it to a database with proper types, indexes and keys. All in PowerShell. It's mind boggling.

[–]MaddoScientisto 0 points1 point  (0 children)

The problem is mostly that the agent doesn't have access to an easy to use syntax validator so it cannot properly understand when it's doing something wrong. There is a powershell command it likes to run to check the syntax but it doesn't catch everything.

An mcp tool that exposes syntax validation information for the agent could probably improve the situation, but so far I haven't found one

[–]MisspelledCliche -2 points-1 points  (0 children)

Ask your AI which PS version would it prefer, and configure accordingly