๐Ÿš€ Agentic AI with Hermes Agent starts Fri, Sep 25 โ€” spots are limitedRegister Nowor Email jayaram.linux@gmail.com
SaturdAI.
โ† Agentic AI with Hermes Agent

Day 6 ยท Wed, Oct 7, 2026

Tool Calling & Agent Loops

Two panels comparing Day 5's single MCP tool call against today's goal of chaining many tool calls into a loop

Day 5 gave Hermes a single tool and a single call โ€” register an MCP server, ask one question, get one grounded answer. Today's goal is to chain that same building block: give Hermes a task that takes more than one tool call, and watch it decide on its own when another call is needed and when the task is actually finished.

1 / 10

Calling one tool once is easy. An agent loop is what happens when Hermes calls a tool, reads the result, decides it needs another tool (or the same one again) to finish the job, and keeps going until the task is actually done โ€” code execution, file I/O, and delegating sub-tasks all included.

Objectives

  • Distinguish a single tool call from a multi-step agent loop
  • Use --yolo deliberately and understand what it skips (confirmation prompts)
  • Run a task that requires Hermes to write, execute, and act on code output in one loop
  • Delegate a sub-task to a subagent and inspect what comes back

Lab: a real multi-step agent loop

Give Hermes a task that requires writing a file, then reading it back โ€” two tool calls chained into one loop:

$ hermes -z "Create a file at /tmp/hermes-demo.txt containing some text, then read it back and show me the contents." --cli --yolo

Then push further with code execution as the tool, which forces Hermes to actually run something rather than just narrate an answer:

$ hermes -z "Use Python code execution to compute the 25th Fibonacci number and the first 10 prime numbers. Show your work." --cli --yolo

Finally, delegate a sub-task to a subagent and inspect what it returns:

$ hermes -z "Delegate a subagent to write a haiku about local LLMs, then show me what the subagent returned." --cli --yolo

Session notes:to be filled in after the live session on Oct 7, 2026 โ€” real output from each step, and any loop that didn't behave as expected.