frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

A simple heuristic for agents: human-led vs. human-in-the-loop vs. agent-led

1•fletchervmiles•1y ago
tl;dr - the more agency your agent has, the simpler your use case needs to be

Most if not all successful production use cases today are either human-led or human-in-the-loop. Agent-led is possible but requires simplistic use cases.

---

Human-led:

An obvious example is ChatGPT. One input, one output. The model might suggest a follow-up or use a tool but ultimately, you're the master in command.

---

Human-in-the-loop:

The best example of this is Cursor (and other coding tools). Coding tools can do 99% of the coding for you, use dozens of tools, and are incredibly capable. But ultimately the human still gives the requirements, hits "accept" or "reject' AND gives feedback on each interaction turn.

The last point is important as it's a live recalibration.

This can sometimes not be enough though. An example of this is the rollout of Sonnect 3.7 in Cursor. The feedback loop vs model agency mix was off. Too much agency, not sufficient recalibration from the human. So users switched!

---

Agent-led:

This is where the agent leads the task, end-to-end. The user is just a participant. This is difficult because there's less recalibration so your probability of something going wrong increases on each turn… It's cumulative.

P(all good) = pⁿ

p = agent works correctly n = number of turns / interactions

Ok… I'm going to use my product as an example, not to promote, I'm just very familiar with how it works.

It's a chat agent that runs short customer interviews. My customers can configure it based on what they want to learn (i.e. why a customer churned) and send it to their customers.

It's agent-led because

→ as soon as the respondent opens the link, they're guided from there → at each turn the agent (not the human) is deciding what to do next

That means deciding the right thing to do over 10 to 30 conversation turns (depending on config). I.e. correctly decide:

→ whether to expand the conversation vs dive deeper → reflect on current progress + context → traverse a bunch of objectives and ask questions that draw out insight (per current objective)

Let's apply the above formula. Example:

Let's say:

→ n = 20 (i.e. number of conversation turns) → p = .99 (i.e. how often the agent does the right thing - 99% of the time)

That equals P(all good) = 0.99²⁰ ≈ 0.82

So if I ran 100 such 20‑turn conversations, I'd expect roughly 82 to complete as per instructions and about 18 to stumble at least once.

Let's change p to 95%...

→ n = 20 → p = .95

P(all good) = 0.95²⁰ ≈ 0.358

I.e. if I ran 100 such 20‑turn conversations, I’d expect roughly 36 to finish without a hitch and about 64 to go off‑track at least once.

My p score is high. I had to strip out a bunch of tools and simplify but I got there. And for my use case, a failure is just a slightly irrelevant response so it's manageable.

---

Conclusion:

Getting an agent to do the correct thing 99% is not trivial.

You basically can't have a super complicated workflow. Yes, you can mitigate this by introducing other agents to check the work but this then introduces latency.

There's always a tradeoff!

Know which category you're building in and if you're going for agent-led, narrow your use-case as much as possible.

"Cards as Weapons" by Ricky Jay (1977)

https://archive.org/details/Cards_as_Weapons_-_Ricky_Jay_1977
1•jansan•2m ago•0 comments

Solving Math and Physics Problems You Don't Know How to Solve

http://redsymbol.net/articles/solving-problems-you-dont-know-how-to-solve/
1•ankitg12•2m ago•0 comments

Show HN: AI Usage – Native macOS Menu Bar for Claude Code and Codex Limits

https://github.com/burakgon/ai-usage-menubar
1•burakgon•3m ago•0 comments

News outlet killed story on plagiarism after Cambridge prof hired law firm

https://retractionwatch.com/2026/07/27/cambridge-jason-arday-plagiarism-allegations-times-higher-...
1•Michelangelo11•4m ago•0 comments

Show HN: A Back End You Can Call Directly from React – No API Required

https://linkedrecords.com/getting-started/
1•WolfOliver•4m ago•0 comments

YC Startup School 2026

https://bestmate.io/startup-school-2026
1•harper•8m ago•0 comments

Compass: Fast, local-first knowledge graph for understanding codebases

https://github.com/crabbuild/compass
1•handfuloflight•14m ago•0 comments

Ask HN: How to rewrite `Claude.md` and install the skill for Opus5 and Fable5

1•hyhmrright•16m ago•2 comments

Prompting Claude Opus 5

https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/prompting-claude-opus-5
1•alvis•16m ago•0 comments

How Netanyahu Lost America

https://www.theatlantic.com/ideas/2026/07/bibi-netanyahu-israel-failures-antisemitism/688050/
2•Alien1Being•20m ago•1 comments

We moved wind turbines from China to Sri Lanka [video]

https://www.youtube.com/watch?v=SXotkuJHxF0
1•thelastgallon•21m ago•0 comments

GPS Map Camera: Geotag Camera

https://play.google.com/store/apps/details?id=com.gpsmapcamera.photo.timestamp.video.location&hl=...
1•satyampromotion•21m ago•0 comments

Ted Kaczynski, Math Tutor

https://www.documentcloud.org/documents/2696533-Ted-Kaczynski-Math-Tutor/
1•Teever•22m ago•0 comments

Answerwatch – Track changes in what AI models recommend

https://github.com/haror1/answerwatch
1•arorah•22m ago•0 comments

Autoportrait

https://philipweiss.net/autoportrait/
1•philipfweiss•25m ago•0 comments

KMIP: How It Works, When You Need It, and How Infisical Implements It

https://infisical.com/blog/kmip
1•vmatsiiako•26m ago•0 comments

Why Most Backtests Fail in Production – and How Event-Time Replay Fixes It

https://medium.com/@DolphinDB_Inc/turning-market-history-into-live-signals-dolphindb-data-replay-...
2•napgirllll•27m ago•0 comments

How AI and Low-Latency Computing Are Reshaping Digital Twins

https://medium.com/@DolphinDB_Inc/real-time-decision-making-how-ai-and-low-latency-computing-are-...
1•chaercling•28m ago•0 comments

Free, private file tools that work in the browser

https://easyfiletools.com
1•randomperson_24•32m ago•0 comments

Recursive Filters: SMA, EMA, Low‑Pass, and a Tiny Kalman

https://www.staszewski.xyz/blog/recursive-filters/
1•kamilstaszewski•34m ago•0 comments

Show HN: Kdeps – A New CLI Coding Agent That Runs on Open Weight Models

https://kdeps.com
1•jjuliano•34m ago•0 comments

GitBook: The open source front end for GitBook doc sites

https://github.com/GitbookIO/gitbook
1•thunderbong•38m ago•0 comments

Improving Heuristics for A* Pathfinding

https://www.redblobgames.com/pathfinding/heuristics/differential.html
1•bobbiechen•41m ago•0 comments

Their position on open-weights models sucks

https://blog.nathanlangley.dev/posts/anthropic-open-weights.html
1•ninjahawk1•41m ago•0 comments

Prove Yourself – Delayed Disclosure as a Verifiable Public Artifact

https://prove-yourself.sebmellen.com/technical-notes.html
1•sebmellen•48m ago•0 comments

Show HN: Krate, AI-made apps as permissioned files for Mac, Windows, and Linux

https://github.com/incyashraj/krate
1•incyashraj•52m ago•0 comments

How I use AI in my geology research without losing the science I love

https://www.science.org/content/article/how-i-use-ai-my-geology-research-without-losing-science-i...
1•the-mitr•57m ago•0 comments

Machines will never understand language

https://astra.pizza/posts/machines-will-never-understand-language/
1•ankitg12•57m ago•0 comments

Request Timeout Is a Polite Suggestion

https://medium.com/devs-community/your-request-timeout-is-a-polite-suggestion-94171a66fb43
1•sukhpinder0804•58m ago•0 comments

A simple clustering algorithm for lists

https://cassidoo.co/post/clustering-tiles/
2•nreece•1h ago•0 comments