I have an alias.bat script for Windows to alias cx=‘codex—dangerously-bypass-approvals-and-sandbox’ and cc=‘claude—dangerously-skip-permissions’ along with other stuff. It has been proven very useful. This is basically a worse version of the linux alias, you will need to manually add C:\Aliases to your PATH for things to work, and the aliases are stored as individual files under C:\Aliases.
@echo off call codex—dangerously-bypass-approvals-and-sandbox %*
I have these aliases currently:
alias b2=b2-windows $* alias bp=basedpyright alias cc=claude—dangerously-skip-permissions alias clear=cls alias clr=cls alias cx=codex—dangerously-bypass-approvals-and-sandbox alias exp=explorer alias export=set alias export_conda=conda env export—no-builds | findstr -v “prefix” > environment.yml alias g=git alias grep=rg alias gs=git stash alias gsa=git stash apply alias gsl=git stash list alias gsp=git stash pop alias j=just alias kill=taskkill /F /IM alias km=komorebic alias loc=scc alias ls=eza alias npp=notepad++ alias oc=opencode alias phpdev=php -S localhost:8000 alias pocketbase=pocketbase.exe serve—dev alias pt=pytest alias sb=supabase alias sudo=elevate alias tree=eza—tree alias which=where
Instead of dangerously skip permissions, you can configure sensible permissions.
The “alignment hive” repo on github has a way to help you do this automatically.
In general I’m not that worried because my workflow usually don’t contain asking claude to look at URLs. I did skim the prompt and it looks pretty good, but I can see some ways it creates friction for me so I will live with the risk for now.
yes, I figured that might be the case for you specifically, but figured I’d mention it in case others who read this post might find this helpful. There’s also other useful stuff in that repo.
I have an
alias.batscript for Windows to aliascx=‘codex—dangerously-bypass-approvals-and-sandbox’andcc=‘claude—dangerously-skip-permissions’along with other stuff. It has been proven very useful. This is basically a worse version of the linuxalias, you will need to manually addC:\Aliasesto your PATH for things to work, and the aliases are stored as individual files underC:\Aliases.https://gist.github.com/Glinte/67d7aec79b3b0f947a8e9c4644e276d7
This is what
cx.batlooks likeI have these aliases currently:
alias b2=b2-windows $*
alias bp=basedpyright
alias cc=claude—dangerously-skip-permissions
alias clear=cls
alias clr=cls
alias cx=codex—dangerously-bypass-approvals-and-sandbox
alias exp=explorer
alias export=set
alias export_conda=conda env export—no-builds | findstr -v “prefix” > environment.yml
alias g=git
alias grep=rg
alias gs=git stash
alias gsa=git stash apply
alias gsl=git stash list
alias gsp=git stash pop
alias j=just
alias kill=taskkill /F /IM
alias km=komorebic
alias loc=scc
alias ls=eza
alias npp=notepad++
alias oc=opencode
alias phpdev=php -S localhost:8000
alias pocketbase=pocketbase.exe serve—dev
alias pt=pytest
alias sb=supabase
alias sudo=elevate
alias tree=eza—tree
alias which=where
Instead of dangerously skip permissions, you can configure sensible permissions. The “alignment hive” repo on github has a way to help you do this automatically.
This one? https://github.com/Crazytieguy/alignment-hive
In general I’m not that worried because my workflow usually don’t contain asking claude to look at URLs. I did skim the prompt and it looks pretty good, but I can see some ways it creates friction for me so I will live with the risk for now.
yes, I figured that might be the case for you specifically, but figured I’d mention it in case others who read this post might find this helpful. There’s also other useful stuff in that repo.