HN user

sgk284

4,387 karma

CEO @ Logic, Inc (https://logic.inc)

Alum of Brex, Google, Microsoft, Salesforce, Twitter, Convoy.

Contact: steve@logic.inc

Posts43
Comments500
View on HN
arena.logic.inc 6d ago

We've adding Inkling and 52 small apps one-shotted by it to our arena.

sgk284
3pts3
crew.logic.inc 2mo ago

Show HN: Homecrew – Share agent skills across your team and keep them in sync

sgk284
2pts0
bits.logic.inc 5mo ago

Three Years of Predicting Football with LLMs

sgk284
2pts0
bits.logic.inc 6mo ago

On The Obsolescence of Interns in the Age of AI

sgk284
3pts0
bits.logic.inc 6mo ago

AI is forcing us to write good code

sgk284
302pts216
bits.logic.inc 6mo ago

Engineering Is Becoming Beekeeping

sgk284
2pts0
bits.logic.inc 6mo ago

Your Team Uses AI. Why Aren't You 10x Faster?

sgk284
5pts1
bits.logic.inc 6mo ago

Machine-Driven Code Review

sgk284
1pts0
bits.logic.inc 7mo ago

Magic-Image: A React Component That Lets Coding Agents Create Images

sgk284
2pts0
bits.logic.inc 7mo ago

Codex is a Slytherin, Claude is a Hufflepuff

sgk284
19pts7
bits.logic.inc 7mo ago

Intent: An LLM-Powered Reranker Library That Explains Itself

sgk284
1pts0
bits.logic.inc 7mo ago

How to Ship Confidently When Your Back End Makes Things Up

sgk284
3pts0
bits.logic.inc 7mo ago

Deep Onboarding

sgk284
2pts0
bits.logic.inc 7mo ago

Fine-Tuning Is (Probably) a Trap

sgk284
5pts0
doodle.logic.inc 7mo ago

Show HN: Turn your startup logo into a holiday Google doodle

sgk284
3pts1
arena.logic.inc 7mo ago

Show HN: Agentic Arena – 52 tasks implemented by Opus 4.5, Gemini 3, and GPT-5.1

sgk284
1pts2
logic.inc 9mo ago

Show HN: Logic, Inc. – Automate human-in-the-loop fuzzy decisions

sgk284
3pts0
gpt-5-vs-opus-4-1-coding-examples.vercel.app 11mo ago

Every GPT-5 coding example implemented with Opus 4.1

sgk284
6pts1
bits.logic.inc 1y ago

When AI Writes the Code, What Do Programmers Do?

sgk284
4pts3
bits.logic.inc 1y ago

Predicting the Super Bowl with LLMs

sgk284
2pts0
bits.logic.inc 1y ago

The AI Programming Paradox

sgk284
1pts0
bits.logic.inc 1y ago

Getting GPT-4o-mini to perform like GPT-4o

sgk284
2pts0
bits.logic.inc 1y ago

The role of embeddings and rerankers in semantic retrieval

sgk284
2pts0
bits.logic.inc 1y ago

Santa Paws Is Coming to Town

sgk284
2pts0
bits.logic.inc 1y ago

Using LLMs to Make Truly Random Decisions

sgk284
2pts0
logicinc.substack.com 1y ago

Ho-Ho-How to Make ChatGPT Sound Like Santa Claus

sgk284
2pts0
medium.com 3y ago

Brex’s GPT-4 Prompt Engineering Guide

sgk284
18pts1
github.com 3y ago

Brex Open-Sourced Their Prompt Engineering Crash Course

sgk284
2pts0
twitter.com 3y ago

The most unethical thing I was asked to build while working at Twitter in 2015

sgk284
921pts408
banter.fm 7y ago

Show HN: Banter – Podcast Together

sgk284
1pts1

Similarly, we updated our model arena (52 apps each built by 26 models) to have GPT 5.6 Sol, Terra, and Luna today:

https://arena.logic.inc/

It's really interesting to see the Sol/Terra/Luna apps side-by-side.

I need to add these stats somewhere in the UI, but one interesting take away: Terra took 1/2 as much wall-clock time as Sol, but Luna took more wall-clock time than Sol (by about 23%). It's still much much cheaper, but it seems like Terra is likely a more optimal time/cost balance for most use cases.

The Terra quality is usually nearly as good as Sol, but much faster and cheaper. I do appreciate Sol's design sensibilities (see, for example, the audio sequencer). It's the first model in a while that is clearly distinct on that front. They'd all converged to very similar visuals for a while.

Yep, 100% correct. We're still reviewing and advising on test cases. We also write a PRD beforehand (with the LLM interviewing us!) so the scope and expectations tend to be fairly well-defined.

It doesn't require removing them if you think you'll need them. It just requires writing tests for those edge cases so you have confidence that the code will work correctly if/when those branches do eventually run.

I don't think anyone wants production code paths that have never been tried, right?

FWIW all of the content on our eng blog is good ol' cage-free grass-fed human-written content.

(If the analogy, in the first paragraph, of a Roomba dragging poop around the house didn't convince you)

I suspect it will still fall on humans (with machine assistance?) to move the field forward and innovate, but in terms of training an LLM on genuinely new concepts, they tend to be pretty nimble on that front (in my experience).

Especially with the massive context windows modern LLMs have. The core idea that the GPT-3 paper introduced was (summarizing):

  A sufficiently large language model can perform new tasks it has never seen using only a few examples provided at inference time, without any gradient updates or fine-tuning.

I never claim that 100% coverage has anything to do with code breaking. The only claim made is that anything less than 100% does guarantee that some piece of code is not automatically exercised, which we don't allow.

It's a footnote on the post, but I expand on this with:

  100% coverage is actually the minimum bar we set. We encourage writing tests for as many scenarios as is possible, even if it means the same lines getting exercised multiple times. It gets us closer to 100% path coverage as well, though we don’t enforce (or measure) that

Can you say more? I see a lot of teams struggling with getting AI to work for them. A lot of folks expect it to be a little more magical and "free" than it actually is. So this post is just me sharing what works well for us on a very seasoned eng team.

Reranking is definitely the way to go. We personally found common reranker models to be a little too opaque (can't explain to the user why this result was picked) and not quite steerable enough, so we just use another LLM for reranking.

We open-sourced our impl just this week: https://github.com/with-logic/intent

We use Groq with gpt-oss-20b, which gives great results and only adds ~250ms to the processing pipeline.

If you use mini / flash models from OpenAI / Gemini, expect it to be 2.5s-3s of overhead.

The two mechanisms are a bit disjoint, so I don't think it's the right tool to do so. Though it could have been an interesting experiment.

A more robust approach would be to give the whole reasoning to an LLM and ask to grade according to a given criterion

We actually use a variant of this approach in our reasoning prompts. We use structured output to force the LLM to think for 15 steps, and in each step we force it to generate a self-assessed score and then make a decision as to whether it wants to CONTINUE, ADJUST, or BACKTRACK.

  - Evaluate quality with reward scores (0.0-1.0)
  - Guide next steps based on rewards:
    • 0.8+ → CONTINUE current approach
    • 0.5-0.7 → ADJUST with minor changes
    • Below 0.5 → BACKTRACK and try different approach
I go into a bit more depth about it here, with an explicit example of its thinking at the end: https://bits.logic.inc/p/the-eagles-will-win-super-bowl-lix

In our case, yes we treat them the same. Though it might be interesting to decouple them.

You could, for example, include all few-shots that meet the similarity threshold, but you’ll use more tokens for (I assume) marginal gain. Definitely worth a try though.

One point of confusion might be that this is a tough but relatively low-value task (on a per-unit basis). The budget per item moderated is measured in small double-digit cents, but there's hundreds of thousands of items regularly being ingested.

FWIW – across all of these, we already do automated prompt rewriting, self-reflection, verification, and a suite of other things that help maximize reliability / quality, but those tokens add up quickly and being able to dynamically switch over to a smaller model without degrading performance improves margin substantially.

Fine-tuning is a non-starter for a number of reasons, but that's a much longer post.

re: 90% – this particular case is a fairly subjective and creative task, where humans (and the LLM) are asked to follow a 22 page SOP. They've had a team of humans doing the task for 9 years, with exceptionally high variance in performance. The blended performance of the human team is meaningfully below this 90% threshold (~76%) – which speaks to the difficulty of the task.

It's, admittedly, a tough task to measure objectively though, in that it's like a code review. If a Principal Engineer pointed out 20 deficiencies in a code change and another Principal Engineer pointed out 18 of the same 20 things, but also pointed out 3 other things that the first reviewer didn't, it doesn't necessarily mean either review is wrong – they just meaningfully deviate from each other.

In this case, we chose an expert that we treat as an objective "source of truth".

re: simple tasks – We run hundreds of thousands of tasks every month with more-or-less deterministic behavior (in that, we'll reliably do it correctly a million out of a million times). We chose a particularly challenging task for the case-study though.

re: in a paying business context – FWIW, most industries are filled with humans doing tasks where the rate of perfection is far below 90%.

We have, and it works great! We currently do this in production, though we use it to help us optimize for consistency between task executions (vs the linked post, which is about improving the capabilities of a model).

Phrased differently, when a task has many valid and correct conclusions, this technique allows the LLM to see "How did I do similar tasks before?" and it'll tend to solve new tasks by making similar decisions it made for previous similar tasks.

Two things to note:

    - You'll typically still want to have some small epsilon where you choose to run the task without few-shots. This will help prevent mistakes from propagating forward indefinitely.

    - You can have humans correct historical examples, and use their feedback to improve the large model dynamically in real-time. This is basically FSKD where the human is the "large model" and the large foundation model is the "small model".

Over the holidays, we published a post[1] on using high-precision few-shot examples to get `gpt-4o-mini` to perform similar to `gpt-4o`. I just re-ran that same experiment, but swapped out `gpt-4o-mini` with `phi-4`.

`phi-4` really blew me away in terms of learning from few-shots. It measured as being 97% consistent with `gpt-4o` when using high-precision few-shots! Without the few-shots, it was only 37%. That's a huge improvement!

By contrast, with few-shots it performs as well as `gpt-4o-mini` (though `gpt-4o-mini`'s baseline without few-shots was 59% – quite a bit higher than `phi-4`'s).

[1] https://bits.logic.inc/p/getting-gpt-4o-mini-to-perform-like

The substantial original work here is the prompt authorship. That’s the “paintbrush” in this work. And the “paint” is the AI.

It’s very easy to spend hours iterating on prompts for the perfect photo while using human judgment to figure out how to steer the image. That’s meaningful human involvement and should be able to be protected.

if someone steals my physical device, then they have full access

Apple protects passkeys via FaceID or TouchID. If you're satisfied with biometrics as a 2nd factor, then there is no regression in your scenario.

Humans learn on copyrighted works as a matter of standard training. And certainly humans can memorize those works and replicate them – and we rely on the legal system to ensure that they don't monetize them.

The same will apply to neural nets. They can learn from others, but must make sufficiently distinct new works of art from what they've learned.