What Is Codemode

(lucumr.pocoo.org)

46 points | by Tomte 16 hours ago

4 comments

  • ylxdzsw 1 hour ago
    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

    • the_mitsuhiko 24 minutes 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.

    • searealist 1 hour ago
      Can do you make a tool or mcp call from bash?
      • clintonb 52 minutes ago
        Yes. Invoking an MCP tool is just an HTTP call. You can do it with curl.
        • searealist 34 minutes ago
          That's one kind of MCP. Another is a local stdio server.

          Also there are things like subagents, etc (which my be considered tools).

  • soltanov 1 hour ago
    Recovery after interrupted execution; distinguishing completed side effects from calls that can safely repeat.