News for hackers. Stuff that matters.
Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by kjhughes on Thursday June 05, 2025 @08:16PM (#44196770)
How does the agent know when it's stuck?
Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by Groxx on Thursday June 05, 2025 @08:38PM (#44196860)
The same way it knows anything else.

So not at all, but that doesn't mean it's not useful.

Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by kjhughes on Thursday June 05, 2025 @09:09PM (#44197004)
I'll try to give you credit for more than dismissing my question off-hand...

Yes, it may not need to know with perfect certainty when it's unsure or stuck, but even to meet a lower bar of usefulness, it'll need at least an approximate means of determining that its knowledge is inadequate. To purport to help with the hallucination problem requires no less.

To make the issue a bit more clear, here are some candidate components to a stuck() predicate:

- possibilities considered

- time taken

- tokens consumed/generated (vs expected? vs static limit? vs dynamic limit?)

If the unsure/stuck determination is defined via more qualitative prompting, what's the prompt? How well has it worked?

Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by Groxx on Thursday June 05, 2025 @09:23PM (#44197058)
I don't believe[1] any of those are part of the MCP protocol - it's essentially "the LLM decided to call it, with X arguments, and will interpret the results however it likes". It's an escape hatch for the LLM to use to do stuff like read a file, not a monitoring system that acts independently and has control over the LLM itself.

(But you could build one that does this, and ask the LLM to call it and give your MCP that data... when it feels like it)

So you'd be using this by telling the LLM to run it when it thinks it's stuck. Or needs human input.

1: I am not anything even approaching deeply knowledgeable about MCP, so please, someone correct me if I'm wrong! There do seem to be some bi-directional messaging abilities, e.g. notification, but to figure out thinking time / token use / etc you would need to have access to the infrastructure running the LLM, e.g. Cursor itself or something.

Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by threeseed on Thursday June 05, 2025 @11:40PM (#44197643)
You are trying to control a system that is inherently chaotic.

You can probably get some where by indeed running a task 1000 times and looking for outliers in the execution time or token count. But that is of minimal use and anything more advanced than that is akin to water divining.

Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by kordlessagain on Friday June 06, 2025 @08:56AM (#44200369)
The system is only nondeterministic (and a model of nondeterminism at that) when it's emitting tokens. It (the system) becomes completely deterministic when it calls a tool and a result is returned from the tool.

This is little different than how I wrote this. Now it is deterministic, when I hit reply.

Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by TZubiri on Thursday June 05, 2025 @08:53PM (#44196930)
So we are just pushing the issue to another, less debuggable layer. Cool.
Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by echollama on Friday June 06, 2025 @12:02AM (#44197711)
the reasoning aspect of most llms these days knows when its unsure or stuck, you can get that from its thinking tokens. It will see this mcp and call it when its in that state. Though this could benefit from some rules file to use it, although cursor doesn't quite follow ask for help rules, hence making this.
Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by kjhughes on Friday June 06, 2025 @12:18AM (#44197764)
Does all thinking end up getting replaced by calls to Ask-human-mcp then? Or only thinking that exceeds some limit (and how do you express that limit)?
Re:Show HN: Ask-human-mcp – zero-config human-in-loop hatch ... by aziaziazi on Friday June 06, 2025 @03:01AM (#44198443)
I had the same question reading your post:

> (problem description) your agent […] makes confident assumptions

> (solution description) when it’s unsure

I read this as a contradiction: in one sentence you describe the problem as an agent being confident while hallucinating and in the next phrase the solution is that the agent can ask you if it’s unsure.

You tool is interesting but you may consider rephrasing that part.