‹ BackHN Continuity

Thread

Cf: The Agentic CLI for the Cloudflare API

171 points · 88 comments · macleos

  1. slowin · · focus · HN ↗
    I don't understand why this is written in Typescript. This is a great example of how agents can write code (I'm sure they wrote `cf`), yet having fundamental computer science knowledge is still critical. Do not force your users to manage the dependencies of your cli. Do write your cli in a compiled language. Understand the reason for those decisions and tell your agents to use the correct architecture.
    1. wannabe44 · · focus · HN ↗
      1. There's always a possibility they evaluated Rust / Go, concluded the agentic code in those languages is less maintainable / productive (for AI agents) than typescript, but didn't spell it out to avoid internet flame wars. For instance, recent Microsoft rewrite of copilot almost doubled the code size.

      2. They may intend the parts of it to be reused on workers?

      1. satvikpendem · · focus · HN ↗
        They literally write large parts of their codebase already in Rust and with agents, and Rust workers are supported so I really don't know the cause.
        1. wannabe44 · · focus · HN ↗
          Didn't know there was rust worker support. I stand corrected.
          1. pdimitar · · focus · HN ↗
            There is, but it's compiled to WASM so it can run in V8 isolates.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.