Unofficial Hacker News companion — get notified on comment replies, and more.

A Visual Guide to Agent Harnesses (opens external site)

451 points by mariuz 2 days ago | newsletter.maartengrootendorst.com | 80 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. The react loop involves both the llm(opus etc.) and harness(claude code,pi etc).

    Given a user query, the llm first thinks a bit and then decide to call a tool. It returns a message, something like "call tool: bash ..." This gets intercepted by the harness which actually executes the bash script. Remember that at the end of the day LLMs are text generating models. They don't have any inbuilt capabilities to run anything on their own

    Replies (1)
    1. But when I look at intercepted Bedrock requests I see tool calls going in and out as part of API and I think things like json validation and tool calls are built quite deep into the LLM runtime, so I'm not sure if that could be called harness, because I can't change that part. I saw the pi system prompt, it does not do anything regarding ReAct, that is why I'm confused. I can do pretty much empty system prompt using just API and still get tool call behavior.