r/PiCodingAgent • u/rimaa_nahk • Oct 05 '26
Plugin How to Enable Codemode in Pi?
Yes, that's exactly what I searched first when i wanted to try codemode.
Pi does have docs for enabling Codemode, but the documented way is through settings or cli flags.
What I was looking for was much simpler: I'm already inside a Pi session, how do I just turn Codemode on or off?
So I ended up making a small toggle around Pi's native Codemode.
It doesn't replace Codemode or implement another version of it. It just gives me a simple way to switch the native tool on and off while I'm working.
check it out: pi-codemode-toggle
Curious how others are using Codemode.
14
u/adamshand Oct 05 '26
The big surprise for me is that codemode is actually way easier to read than the way astra/sol have been writing python scripts for everything.
Don't think I'm ever turning codemode off!
8
u/pcrz81 Oct 05 '26
I don't understand Codemode, i feel that i'm mising something great and that this extension seems useful. Please, could anybody explain me like i'm five with a usecase? Thanks!
2
u/qehgt Oct 05 '26
tools.tsinexamplefolder can enable/disable tools (includingcodemode) in run time.2
u/berot3 Oct 05 '26
Sweet
1
u/vertigo235 Oct 05 '26
I didn't have to enable it, it seems the model chooses to use it automatically when needed.
1
u/aparamonov Oct 06 '26
What do you toggle exactly? I wonder how I could link pi-subagents-lite to extensions like this for a Killswitch behavior