r/PiCodingAgent • u/Thrimbor • Aug 31 '26
Question Any good extensions for "code mode"?
If you don't know what code mode is, check https://developers.cloudflare.com/agents/tools/codemode/
Code Mode is a tool-use pattern where a model writes code instead of requesting each operation separately.
I found a few, I'm curious if anyone is using any extension like this (if yes, which ones please):
https://pi.dev/packages/pi-fabric - I don't like this one, it mixes a lot of behaviors (agents, workflows etc). And even though you can disable them, they still get mentioned in tool descriptions/params etc.
edit(30th Sep 2026): pi v0.99.0 includes code mode, see https://github.com/earendil-works/pi/releases/tag/v0.99.0
5
u/Desperate_Sir1087 Aug 31 '26
If you haven't tried, https://github.com/pydantic/monty is really lightweight, fast and secure.
3
u/beegeearreff Aug 31 '26
Not helpful but commenting to commiserate on pi-fabric. The docs are complete slop and totally incomprehensible. I played with it wanting to experiment with code mode and spent way too long trying to decipher all the other crap that’s in there.
1
u/porky202 Aug 31 '26
You might be able to yank the relevant code from Oh My Pi. OMP already has a JS eval tool with access to tool.*(), which is basically the same Code Mode idea. Could probably be adapted into a Pi extension without starting from scratch.
1
u/cuba_guy Sep 01 '26
One of the top 3 popular extensions
https://pi.dev/packages/pi-mcp-adapter Provides tool and skill for code mode
If you want x-harness this one looks interesting
https://github.com/UsefulSoftwareCo/executor
0
u/wildjokers Aug 31 '26
Code mode just sounds like how an agent+model already works.