minimal bunding of common linux utils bundled inside codex like GREP /
What variant of Codex are you using?
latest irrilevent - pretty much the CLI - which this is debicated to windows generally .
What feature would you like to see?
as for the war-time-token-ration with the MCP and Powershell users
"using Mintty is not recomended please use powershell" but pretending we want to have POSIX like command in linux (or have the model use a various of linux commands on a windows machine) would be claiming "powershell" cant do most of the things we can do on a linux machine
for example grep vs. Select-String wherees Select-String is powershell
i also think there is time for a powershell v2.0 (where it is learning where POSIX is correct and having - better concise commands) Object-Oriented Output & Formatting Bloat --- where you get less of it with bash https://www.nushell.sh/commands/docs/to_json.html see for example nushell
also for example .c good old c and the ever evolving compilers (for example you want to write windows in c or linux in c because of the control of the memory safety --- but in many ways you want the compiler deal with a lot of decisions where you may uninformed so that where something like rust can be good - but rust often doesnt read well for every human)
or • Bash: grep -rn "error" /var/log/ • PowerShell: Get-ChildItem -Path C:\Logs -Recurse | Select-String -Pattern "error" | Select-Object Path, LineNumber, Line potentially Windows linux consume more tokens --- is this logic true or not? its true windws consume way many more tokems
for example why would you have the model reason so much on powershell commands?
to illustrate the problem wellifully:
Linux agents commonly expect grep, find, sed, awk, cat, head, tail, xargs, sort, uniq, cut, diff, patch, and bash. Windows agents may instead incounter PowerShell commands such as Get-ChildItem and Select-Strnig. i am not sure about Linux GNU licenses
i thikn https://landley.net/toybox/license.html or https://github.com/freebsd/freebsd-src/tree/main/usr.bin
right we only want the gnu utils not the fleekon linux kernel - just the utils
idealy could have an attractive license
**if cygwin or msys2 could be problematic as for lets imagine we bundle linux utils into windows lol -- **
Object-Oriented Output & Formatting Bloat (The Real Culprit??) Command Syntax Overhead (Negligible??)
gpt 6 luna being 2x as efficent gpt 6.1 terra being 2x as efficent in many temrinal task and gpt 6.2 sol being 2x as eficent than the previous model
so a lot of the issues you faced in the past would been fixed by the new gpt6luna and you would have a good time WITH THE SMALLEST MODEL (if not even gpt5.4mini)
notablly
as of powershell - powershell is so bloat i think codex should bundle something like GNU UTILS or FREEBSD UTILS and having it using posix complaint see https://github.com/cygwin or https://github.com/msys2 (noteablly licenses might be problematic -- should we add linux util into our coding agents? )
for example you can argue MCP SERVER calling isnt too hygenic as it can eat up like 100k tokens (which is insanity - surely a smaller fortmat can happen - time for mcp v.2.0 )
• Custom object construction. [PSCustomObject]@{ ... } builds clean, structured objects mid-pipeline so downstream commands can sort and group the extracted XML properties easily. • Multi-property grouping & calculated properties. Group-Object aggregates duplicate attacks by user and IP, while Select-Object uses hash-table expressions (@{N='Name';E={Expression}}) to flatten the grouped data and pull the timestamp of the most recent attempt. is this correct? the codex gpt 6.2 even uses this - it could work and it might even must use even without a SKILL or instruction PER THE USERS
for example https://en.wikipedia.org/wiki/Shannon%27s_source_coding_theorem could it be that windows powershell commands arent an issue ? due to the nature of models being big , the only issues is latent latency?
i am an human, i for example want to model to preduce gool old BASH - i want it to preduce the SHELL because i want to read and evaluate something i feel comfy with - I for example dont want to read [literally no one knows - i dont want to go the microsoft documentation and see what 'Get-WinEvent -FilterHashtable' does ]
arguebly the models are letter-by-lettters , not word-by-word each token is a letter more or less -- not a full word
perhaps there is a way to even have 2 reasoning streams (I will think of logic - and my knowledge of shell commands is absent) [reasoning stream 2: waiting to follow the logic the reasoning_stream:1 did] atleast thats how i view why subagents or whatever appears to be powerfull
maybe something like Cygwin or MSYS2 could be interesting , **imagine WINDOWS 11 SANDBOX , and 12mb of linux utils for example NUSHELL is just 80mbs likely 4x likely smaller than powershell! admitablly the windows core is actually lean now idea how this human slop is 20gb installation **
for example some chinese/japanese users can type 6x times faster than any other language - but many chinese users actually forget certain letters and have some issue with dyslexia - when i miss spell a word- more or less you can see the direction i am goingg for exmple -- instead of putting dozens of
Additional information
No response
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #62995
Powered by Codex Action
some slop bellow to force the model to behave better
(this was updated few months ago --- now does posix does it better? is this natrually a thing that dont happen on something like nushell?) powershell comes with a lot of issues and overthinking even for the best humans who specilized in powershell
https://github.com/openai/codex/blame/main/codex-rs/core/src/tools/handlers/shell_spec.rs#L317-L328
fn windows_shell_guidance() -> &'static str {
r#"Windows safety rules:
- Do not compose destructive filesystem commands across shells. Do not enumerate paths in PowerShell and then pass them to `cmd /c`, batch builtins, or another shell for deletion or moving. Use one shell end-to-end, prefer native PowerShell cmdlets such as `Remove-Item` / `Move-Item` with `-LiteralPath`, and avoid string-built shell commands for file operations.
- Before any recursive delete or move on Windows, verify the resolved absolute target paths stay within the intended workspace or explicitly named target directory. Never issue a recursive delete or move against a computed path if the final target has not been checked.
- When using `Start-Process` to launch a background helper or service, pass `-WindowStyle Hidden` unless the user explicitly asked for a visible interactive window. Use visible windows only for interactive tools the user needs to see or control."#
}
as a reminder i am talking about the **codex-cli in windows, even if they are using Powershell to mismash customize non powershell-like commands ** nushell is very inspiring