llm -> agentic loop -> native agent harness (inner harness) -> user harness (outer harness) -> orchestrator
6 karma · joined August 7, 2024
llm -> agentic loop -> native agent harness (inner harness) -> user harness (outer harness) -> orchestrator
"An agent is just a white true loop" on a llm with some conditional tool calling if needed be. A simple a
while True: user_input = get_input() response = llm.complete(user_input) if response.wants_tool: result = execute_tool(response.tool_call) response = llm.complete(result) print(response)
A simplest way to think about it is this without the tool call, it just a chatbot and the loop termninates when the chat is closed.
while True: user_input = get_input() response = llm.complete(user_input) print(response)
The tool part makes it interesting because tooling are just function calls. A tool / function to read a file or list a directory, if you just have 4 tools / functions like read, list, update, bash you essentially have a coding agent, that's what Pi is, a minimalistic agent. The fancy stuff around this agent, like the plan mode, subagents, context window, mcp, permissioning, etc makes a harness.
But the most interesting part is you change the tooling with the system prompt for a given agent, for example instead of read, write, list, bash tool you have tools which can do take a location and geocode, and another tool put a pin on the map, you essentially created a map agent. Same thing applies if you do that for 3d visualization or a ai creatives agent, change the tooling / functions and you get the new agent. And the best part this is not some crazy lines of code and basic working one can be just around 200 lines of code. As this article pointed out: https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
Loops are all the rage these days, but there are some primitives that I think needs to be understood first before going to the next level of abstraction which agentic loops unlocks. What is an agent, what is context window and its limit, what makes it possible to unlock long running task, the minimal setup needed.
The post basically talks about a dumb (minimal) setup and its dumb because its just a loop over claude code, but its simple and it works it what is makes is so interesting and when done right unlocks another level of productivity where one is not limited to their token budget.
Have a read and let me know your thoughts.
30 days Japan Itinerary: https://www.mapscroll.ai/post?queryId=iP7i2n4SDeQGB6wZUglv Active Volcanoes in Iceland: https://www.mapscroll.ai/post?queryId=s0qscaLHkRm53oxngIBS Casino Royale Film locations: https://www.mapscroll.ai/post?queryId=mswdiyxJRGYtRKGiPHVR
That’s why I’m positioning this more as a way to curate map-based content, where the AI is tasked with plotting something using the supporting data from your prompt, so it can give a more precise first draft. Then it can be refined more using the edit feature before sharing it with confidence. Instead of expecting it to magically handle any random map question. That whole space of “unknown unknowns” still needs to be explored.
Not sure I explained that perfectly, but I’m figuring it out too. Definitely needs more brainstorming and experimentation.
Two months ago I spent a weekend fighting "Google My Maps" just to share a “Casino Royale filming locations” with friends. It took hours. So I scratched the itch and built MapScroll.
What it does • Type one sentence (“Marco polo silk road journey” or "Ancient mayan ruins in Mexico") → it geocodes, gathers images/articles, and plots a map ready to share with a link. Each marker includes a photo gallery and contextually relevant sources. • Refine, Edit pins and reorder stops, and share to view on web or mobile.
Under the hood MapBox + Geocoding API; GPT-4.1 mini; Next JS; Serp for Websearch Agent; Vercel for deployment.
Traction so far ~3000 maps made since last shared in r/MapPorn; history teachers and travel bloggers are the heaviest users.
Why I’m here I’d love blunt feedback on UX and ranking logic. No signup needed, give it a try: https://mapscroll.ai/
Popular Examples by some Users: 30 days Japan Itinerary: https://www.mapscroll.ai/post?queryId=iP7i2n4SDeQGB6wZUglv Active Volcanoes in Iceland: https://www.mapscroll.ai/post?queryId=s0qscaLHkRm53oxngIBS Casino Royale Film locations: https://www.mapscroll.ai/post?queryId=mswdiyxJRGYtRKGiPHVR
-Shekhar