r/opencodeCLI • u/megablue • 14d ago
Code Mode is great
https://github.com/anomalyco/opencode/blob/dev/packages/codemode/README.md
193
Upvotes
r/opencodeCLI • u/megablue • 14d ago
64
u/megablue 14d ago edited 14d ago
brief description of what it does
- instead of the agent calling the tools directly, code mode let the agent write a short script to do a batch/netested call of the tools so that there are less back-and-forth calls between the harness and LLM.
to enable it
add following to opencode.json
"experimental": { "full_codemode": true }27
u/AlmostEasy89 14d ago
Cloudflare has been doing this for quite some time. It’s great. Every one of my MCPs goes behind a Cloudflare mcp portal with code mode enabled by default. That one connection provides any mcp client with every mcp you have behind the portal.
2
u/squirrelscrush 13d ago
I thought it was already enabled lol
1
u/Melodic_Reality_646 13d ago
Isn’t this what smolagents from HF does?
1
u/Wylie_Pujole 4d ago
Does it handle multi-file edits cleanly for you? That's usually where these workflows start to get a bit messy if the architecture isnt super modular.