An unofficial, read-only Hacker News reader. Join the beta →

OpenAI may be in cost control mode (opens external site)

358 points by seizethecheese 2 days ago | micjm.com | 358 comments on HN

View full thread · View on Hacker News

Comment thread (18)

  1. Can you share some specific cases?

    I use both OpenAI and Anthropic, a lot, on large codebases. To me it seems that both providers are very strong all around with each having extra powers in some areas.

    Anthropic good at flowery stuff like text, UI design.

    OpenAI is good at following what you asked it to do and technically stronger and faster, especially with complex code

    Replies (2)
    1. It’s a 1.5M line TypeScript and Rust codebase, fairly conceptually dense and complex, but in decent shape otherwise. Both models will happily write 200-line functions, no blank lines or comments, badly named variables, un-factored, horrible to read. They can manage better when told to improve it but I don’t remember code generation being this bad off the bat since pre-Opus 4.5.
      Replies (5)
      1. Couldn't some changes to AGENTS.md with "lint often" with style rules and proper code cookbooks help solve that?
        Replies (2)
        1. We have quite a bit of that, and I added to AGENTS.md the other day trying to improve this, to no avail. We had stopped putting effort into elaborate style prompting because Claude doesn’t need it, and indeed Anthropic started specifically advising against it.
        2. AGENTS.md isn't needed. Just have all your linters run on pre-commit and in CI and it fixes itself.
      2. Thanks, that really helps. That does sound like a regression. Have you evaluated downgrading to 6.1-Sol? Not that doing so is your job... that's OpenAI's job!
        Replies (2)
        1. I will, but I was seeing this with 6.1 Astra too, so I’m not hopeful…
          Replies (2)
          1. I don't think Astra 6.1 exists or ever did.

            You should double check what model you're using just in case

            Replies (1)
            1. Oh yes, sorry, I meant Astra 6.
          2. Try astra-6.2. You may need to change your prompting style and context docs compared to claude, but the model is amazing on complex codebases.
        2. No, it is just all the models write really bad code. That's why you choose a cheap but fast model and pair with it.
      3. > no blank lines

        Yeah what's up with that? I get it doesn't help the models but they seem to manage blank lines in other situations, yet Opus 5.5 will almost never put them in Rust functions unless I explicitly tell it to (which does work). Seems to be language dependent too. It happily puts blank lines in other languages.

      4. this has been happening since astra was released and it affects sol as well now. i think it's a side effect of how it's trained to emit tool calls, it's optimising for conciseness when outputting a 200 line python tool call, and that bleeds into the code that it generates. it's so bad that i had to stop using those models, even though they were effective (sorry i still care about the code) and the code technically works. i think a lot of people simply dont care and even see it as a positive (more concise for the model to understand). it just doesn't care about human readability at all, perhaps it was even explicitly trained to do this, who knows.

        oh well, neon is my new model of choice and is a breath of fresh air compared to gpt's codeslop and claude's wordslop.

      5. I see the same with both model families, I've honestly come to believe that current commercially available models can't produce "decent" code unless you load your codebase to the gills with static analysis tooling and checks.
        Replies (2)
        1. I was very happy with Opus 5.5! It wasn’t perfect by any means, but WTFs-per-unit-time were very acceptably low for me.
        2. >I see the same with both model families, I've honestly come to believe that current commercially available models can't produce "decent" code unless you load your codebase to the gills with static analysis tooling and checks.

          This is just sort of the way you're supposed to do it. At least, that has been what works. If they train the models to be good at doing that, then the models can constrain their own outputs to what make sense using that as a strategy. Might seem hacky, but... it does work, so it's a viable strategy.

          Replies (1)
          1. I'm not even complaining. The amount of linting rules and other static checks that I set up would drive me nuts, and probably 90% of human devs too. But it's not me having to deal with the BS. And it's the only way I've found of not seeing constant atrocities in style and substance.
    2. What is your take on either for running tests on its code. I don't mean just unit tests, but end to end integration tests involving multiple services the agent has access to build and run. I've seen claude opus and fable excel with this, including screenshot testing at the end of a full integration stack it had built up. I have not tried it on Codex yet.