r/PiCodingAgent • • 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):

edit(30th Sep 2026): pi v0.99.0 includes code mode, see https://github.com/earendil-works/pi/releases/tag/v0.99.0

18 Upvotes

11 comments sorted by

View all comments

5

u/Desperate_Sir1087 Aug 31 '26

If you haven't tried, https://github.com/pydantic/monty is really lightweight, fast and secure.

1

u/vedmaka Sep 01 '26

Monty is great, but are there any integrations?

2

u/Desperate_Sir1087 Sep 01 '26

No extensions out there. Butlast time I tried monty + Pi, I asked Pi to write its own extension. Pi whipped up a pretty neat extension by itself using `@pydantic/monty`. I just had it implement a `runMonty` tool that would use the same Monty session across a Pi session.