‹ BackHN Continuity

Thread

Rate limits on GitLab.com are changing

177 points · 128 comments · darkwater

  1. bob1029 · · focus · HN ↗
    If you are using LLMs to interact with sites like GitLab and GitHub, and you have the option to use a GraphQL API, you should jump on it immediately.

    GraphQL is absolutely terrible for human developers to interact with, but it's like Facebook could see into the future back in 2012. I cannot imagine a more perfect API surface for agents. With the REST API on GitHub, you can consume maybe 10 issue JSON blobs before your context window is blown out. With GraphQL constraining the results you can easily read hundreds in the same token budget.

    Additionally, the # of requests your agents need to make can be reduced in many cases since GraphQL can join across types whereas REST APIs cannot. You essentially get savings in two dimensions here. Quota and raw token volume per logical response.

    1. aschobel · · focus · HN ↗
      mine just is the gh cli. is the advantage of graphql that they can compose a query that would take multiple cli invocations?
      1. mattkrick · · focus · HN ↗
        CLI still has the possibility of being a little more token efficient, at worst it may use graphql behind the scenes.

        For our company, we advertise the graphql schema to bots and they can one-shot whatever task they're trying to do. I've found that it's so good that I cancelled building an an MCP server and any skill. Just a well documented GQL schema. It's pretty remarkable.

        1. agentdev001 · · focus · HN ↗
          > "I've found that it's so good that I cancelled building an an MCP server and any skill. Just a well documented GQL schema. It's pretty remarkable."

          This gave me a chuckle, there's some subtle irony here- especially if the documentation of the GQL schema was work that needed to be done!

          1. mattkrick · · focus · HN ↗
            That's completely fair, I did spend a day or 2 having AI rewrite the field descriptions based on the code. for bots, by bots!
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.