‹ 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. kelchm · · focus · HN ↗
      Are you really suggesting that the choice to use Typescript wasn't a deliberate one?

      IMO -- it makes total sense within the existing Cloudflare tooling ecosystem.

      1. xtajv · · focus · HN ↗
        Code should be written for the user.
        1. locknitpicker · · focus · HN ↗
          > Code should be written for the user.

          Yes, and the user wants to use a command line app, regardless of what's running underneath.

          1. jasomill · · focus · HN ↗
            Counterpoint: many cloud CLIs are thinnish wrappers around APIs, so looking under the covers can actually be useful in figuring out how to do something in the API when documentation is unclear.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.