I'm not sure why almost all codemode implementations choose Javascript. I prototyped an agent[1] to use bash as the language for codemode, which in my opinion worked equally well and requires no teaching (there is literally 0 prompt to teach the LLM about codemode. A tool named "bash" is enough to have them know the usage).
I'm not sure why almost all codemode implementations choose Javascript. I prototyped an agent[1] to use bash as the language for codemode, which in my opinion worked equally well and requires no teaching (there is literally 0 prompt to teach the LLM about codemode. A tool named "bash" is enough to have them know the usage).
[1] https://github.com/ylxdzsw/mu
Can do you make a tool or mcp call from bash?
Yes. Invoking an MCP tool is just an HTTP call. You can do it with curl.
That's one kind of MCP. Another is a local stdio server.
Also there are things like subagents, etc (which my be considered tools).
Recovery after interrupted execution; distinguishing completed side effects from calls that can safely repeat.