Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Pirating the Pirates (mubi.com)
    109comments
  2. MicroLLM Lab – Try 7 tiny LLM's in the browser (stateofutopia.com)
    8comments
  3. California expanded the right to delete today (getprivisy.com)
    5comments
  4. Joseph Szabo’s pictures of American adolescents (newyorker.com)
    14comments
  5. Hijacking the PS5's RTMP stream (yashgarg.dev)
    33comments
  6. First Steps of the PLC Organization – Independent Public Ledger of Credentials (plcred.org)
    2comments
  7. Sonnet 5.5 (anthropic.com)
    215comments
  8. Parley: Federated, decentralised chat that speaks plain IRC (mills.io)
    131comments
  9. Launch HN: Vespper (YC F24) – SOTA Docx MCP (vespper.com)
    7comments
  10. Who wrote Elizabeth I's most scathing letters? (smithsonianmag.com)
    10comments
  11. GrapheneOS – When an app is slow (wirelessmoves.com)
    16comments
  12. Show HN: HN.watch – Videos of all Hacker News posts (hn.watch)
    49comments
  13. What heraldry and Japanese mon can teach about visual-identity generators (benovermyer.com)
    17comments
  14. MongoDB CEO resigns to join Meta (reuters.com)
    210comments
  15. Nvidia wants to put a watchdog chip next to every AI agent (cnbc.com)
    79comments
  16. Windows 11½ (definitelynotwindows.com)
    79comments
  17. I made a visual workspace for AI Automations (biom.dev)
    13comments
  18. Cf: The Agentic CLI for the Cloudflare API (cloudflare.com)
    28comments
  19. Show HN: Destroy Any Website with Stickman (spritefusion.com)
    12comments
  20. Kids turned low-traffic NPR Spotify comments into a secret group chat (thisamericanlife.org)
    111comments
  21. So long Google, and thanks for all the nudes (lecaro.me)
    46comments
  22. I switched to Brave (kevquirk.com)
    105comments
  23. 37,500 border drawings: a map of the world as people remember it (habibicode.org)
    32comments
  24. What Would a Serious AI Product Look Like? (glyph.im)
    34comments
  25. When did Google get so weird? (sancho.bearblog.dev)
    985comments
  26. Footguns with Postgres “at time zone 'UTC'” (bookofrevenue.com)
    89comments
  27. Show HN: PaperMono, e-ink fridge magnet shopping list with mobile web page (github.com/seamusc)
    51comments
  28. Neal Stephenson responds with wit and humor (2004) (slashdot.org)
    3comments
  29. Solving a corn puzzle with CP-SAT (thill.me)
    5comments
  30. Show HN: Free alternative to graphics design giants (scissor.studio)
    39comments

Cf: The Agentic CLI for the Cloudflare API

54 pointsby 4h agoblog.cloudflare.com
28 comments
2h agoHN ↗

Kudos to cloudflare on this, it looks like a great CLI, I especially like the `cf cli search`.

Related, Matt Pocock's skill for having agents generate an interactive bash script for things only humans can do (or should do), presented in the context of devops like activities

https://github.com/mattpocock/skills/blob/main/skills/produc...

I have found that having the agents write scripts to use tools like this is better (less tokens, more reliability, fewer side quests) than giving it to them directly with markdown they may or may not follow on any given day.

The other benefit to this is that you can put scripts on either side of the agent and remove all credentials from their process, removing whole classes of issues you don't want to have to tell your boss about. CLIs like this are great for read-only debug sessions, but if you are going to make modifications to your cloud infra, keep doing IaC.

1h agoHN ↗

You linked to /skills/productivity/to-questionnaire/SKILL.md

Did you mean to link to /skills/engineering/wizard/SKILL.md ?

2h agoHN ↗

I think the shape of clouds and services is going to change given current clouds are uxed for humans. Cloudflare is making the right bet. Specially the free agent report account. That's like a wonderful idea for building agent share.

2h agoHN ↗

This is a lot to like here as someone who pretty much exclusively uses the Cloudflare API via agents. Hoping (since it's built on top of Forge), some kind of native terraform support is also in the works.

Great when you're a solo dev deploying a worker, but would be incredible for production deployments if this could also just natively output terraform code.

2h agoHN ↗

I don't know what it is about wrangler that made me dislike it so much but I welcome this change since it's meant to replace wrangler.

2h agoHN ↗

re: wrangler, my biggest gripe was inconsistency between dev and prod

2h agoHN ↗

I think I may be confusing my annoyance with pages vs workers and agents that kept deploying to pages due to outdated training data.

Wrangler still didn't feel great to use.

2h agoHN ↗

This is cool, but I've never had an issue with agents working on Cloudflare by just making REST calls. With the rest docs, it knows pretty much everything about what kind of operations it can do. Is the CLI a subset of that or does in encompass everything?

2h agoHN ↗

The actual title is

Introducing cf: the agentic CLI for the entire Cloudflare API

emphasis my own to highlight the key word missing in the HN title

2h agoHN ↗

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.

1h agoHN ↗

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.

1h agoHN ↗

Whether it was deliberate or not, I do not think it's a good choice. When agents can write in any language, there's no reason to pick the wrong tool for the job. At this point Javascript/Typescript belongs only in the browser. It's the suboptimal choice for every other environment. Especially for a command line tool. Even if the back-end is written in Typescript (also not the best choice imho), the clients need not be in the same language.

1h agoHN ↗

Typescript and the npm/JS ecosystem may be complex, but you don’t need AGI to figure out how to install a CLI built with TS. My agent can figure out how to install this.

1h agoHN ↗

It's not just the complexity. You're also vulnerable to supply chain attacks via NPM. It's also performance as you don't need the entire javascript runtime just for a CLI.

1h agoHN ↗

My read is that it's generally the teams that have been assigned to build a certain product that end up choosing the architecture that it runs on. So when we see TypeScript involved in TUI and CLI applications, most of it is just a repurposing of skill sets from that domain into the terminal. In an organization like Cloudflare, I expect that the developers who don't specialize in TypeScript are working on far more important problems.

1h agoHN ↗

AWS and GCP CLIs have been in Python for a decade or more. Last I checked Python was not a compiled language

46m agoHN ↗

Raise your hand if you have been personally traumatized by the miniature standalone py3 distribution bundled within the aws cli.

31m agoHN ↗

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.

28m agoHN ↗

Yeah, and they're terrible. If anything they're a prime example of what 100% should be written in a compiled language.

1h agoHN ↗

"Claude, rewrite this in amd64 and arm64 assembly. Optimize it to the max, and make no mistakes. Oh yeah, formally verify it while there, may as well."

32m agoHN ↗

No it is exactly right mode for modern tech companies:

1) If it runs on my dime and my infrastructure I will optimize the hell out using most cleverly written Rust and what not and gloat about engineering prowess.

2) If it runs on users computers well then, we have carefully evaluated our strategic direction and come to conclusion that JS/TS/Electron option is the best way to go.

22m agoHN ↗

This is also not correct in this case since they recently rewrote the Artifacts backend from Zig to TypeScript.

43m agoHN ↗

It's crazy that some of the best product launches nowadays are CLIs.

30m agoHN ↗

Agreed. Cloudlflare appear to be innovating really well.

35m agoHN ↗

Great now i have to uninstall the Cloudfoundry CLI to not collide with this :)