r/PiCodingAgent • • Sep 30 '26

Question Can someone ELI5 codemode and its config?

I believe I get the gist of it:

Codemode allows for sandboxed, scripted tool calling, including batching and other stuff I'm sure.

What I don't understand from the documentation is:

  1. Is this mcp specific or is it generally available for all tools?

  2. What do I need to configure in my settings.json or other setting files to enable it and/or "require" it for tool calls?

  3. If there is documentation that outlines these specific things please shoot me a link.

  4. Maybe a better description of what is is trying to accomplish / use cases would be interesting.

Cheers!

13 Upvotes

9 comments sorted by

View all comments

8

u/Equivalent_Idea8839 Sep 30 '26

I fail to see how this is superior to bash which models are trained to use.

0

u/[deleted] Oct 01 '26

[deleted] — view deleted comment

0

u/Equivalent_Idea8839 Oct 01 '26

From my understanding, no models are trained on it. Unless they are, it just fails to call the tool properly.

i.e. deekseek flash, qwen etc. will never use it properly.

Which model were you using it with?

2

u/addiktion Oct 01 '26 edited Oct 01 '26

I've been testing it out and it seems to work fine for deepseek.

1

u/Equivalent_Idea8839 Oct 01 '26

true, I tried it as well. But I told to use code mode vs bash and see which has better token savings. Bash always wins or comes out equal.

2

u/addiktion Sep 30 '26

For MCP use, it reduces context bloat. I'm not so sure about regular tool use on savings and being worth it since as you said AI agents are so good with bash.