‹ 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. squiffsquiff · · focus · HN ↗
      AWS and GCP CLIs have been in Python for a decade or more. Last I checked Python was not a compiled language
      1. xtajv · · focus · HN ↗
        Raise your hand if you have been personally traumatized by the miniature standalone py3 distribution bundled within the aws cli.
      2. slowin · · focus · HN ↗
        I think these are both examples that help prove my point. Neither of these tools benefit the user by being in Python and distributing a runtime just for a CLI tool.
      3. mjr00 · · focus · HN ↗
        Yeah, and they're terrible. If anything they're a prime example of what 100% should be written in a compiled language.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.