| ▲ | the_mitsuhiko 4 hours ago | |||||||
> I'm not sure why almost all codemode implementations choose Javascript Because the models are trained on JavaScript for code mode. You get away with way fewer instructions. They also want to be able to express concurrency and that works very well with the Promise global. But a big reason is that code mode runs on the harness side so bash is a tricky target in particular. | ||||||||
| ▲ | ylxdzsw 2 hours ago | parent [-] | |||||||
sandboxing is indeed an advantage (can be an important one!), but 1. bash can also express concurrency easily, with sync and async (using standard & syntax) support for each command, and standard cancellation (kill, though crude). 2. "way fewer instructions": It requires no instruction for agents to use bash either, except for merely listing the custom commands (view_image, apply_patch, etc.). Also, bash has standard progressive disclosure mechanism (--help) that models will automatically use with no instruction. | ||||||||
| ||||||||