hebel. today · 8 November 20267 / 73

Agentic Engineering · AI engineering

Building your own agent harness

Core loop mechanics. Paweł Huryn built a 1,200-line Python harness that runs a reasoning loop, tool execution, and session management, which performed in the top group across Claude Haiku and DeepSeek V4.1 Flash models.…

Core loop mechanics. Paweł Huryn built a 1,200-line Python harness that runs a reasoning loop, tool execution, and session management, which performed in the top group across Claude Haiku and DeepSeek V4.1 Flash models (Paweł Huryn from The Product Compass). Sarthak Rastogi structures enterprise agent systems by using a gateway that validates tokens and enforces IAM roles before any tool execution, ensuring that agents only access authorized resources (Sarthak Rastogi from AI Agent Engineering).

Environment simulation. Raindrop reconstructs production environments using stateful synthetic services, allowing developers to test how model swaps or prompt edits affect agent behavior in isolation (The New Stack). The WorkFactory project verified 112,686 tasks across 612 occupations by checking if simulated workspaces contain the information an agent needs to complete a job (🔳 Turing Post).

Skill-based performance. NVIDIA increased average correctness scores on specialized tasks from 46 to 87 out of 100 by implementing skills that provide agents with concrete procedures and domain expertise (Salvador Carranza from What AI makes PossibNow). Researchers testing SWE-Skills-Bench found that 92 of 98 tested skills produced no statistically significant effect, indicating that only skills supplying specific, actionable procedures improve agent output.

  • Spawn's ten-person team shipped 77,000 changes in 30 days by building AI judges from two years of recorded decision data (Web Development Newsletter by Packt).
  • WebAnything reconstructed 244 websites to train agents, raising Qwen3.5-9B’s success rate by 13.33 percentage points (🔳 Turing Post).

Try today · 40 min

Build a basic reasoning loop for your agent that executes a single tool call and logs the result.

Start by writing a loop that sends a prompt to the Anthropic API and prints the tool call request before executing it.

You need

  • Anthropic API key
  • Python environment
  • A simple tool function (e.g., file reader)

Steps

  1. Initialize a conversation list with a system prompt.
  2. Send the conversation to the model with tool definitions.
  3. Parse the model's response for a tool call request.
  4. Execute the requested tool locally.
  5. Append the tool output to the conversation history.
  6. Send the updated history back to the model for the final answer.

One email instead of your newsletter pile.

Forward the newsletters you already get (a Gmail filter does it) and tell Hebel your goals. Every morning it reads them with 20,000 others and sends one short email, with one small thing to do today. Fewer emails, not more. Free during beta.

Start my paper →
LinkedIn X

Sources

  1. Web Development Newsletter by Packt on hebel. →This piece reports on Spawn's high-frequency shipping process and the use of AI judges to automate pull request reviews.

  2. 🔳 Turing Post on hebel. →This collection details how WorkFactory validates simulated environments and how WebAnything uses reconstructed websites for agent training.

  3. Gradient Flow on hebel. →Ion Stoica describes the requirement and model gaps that cause agents to pass tests while failing to perform their actual job.

  4. Salvador Carranza, What AI makes PossibNow on hebel. → ✎ Written by a personSalvador Carranza explains how specialized skills improve agent accuracy and why developers must keep an owner for each shared method.

  5. Paweł Huryn, The Product Compass on hebel. → ✎ Written by a personPaweł Huryn provides a step-by-step guide to building a Python-based agent harness, including the core reasoning loop and tool integration.

  6. Sarthak Rastogi, AI Agent Engineering on hebel. → ✎ Written by a personSarthak Rastogi details how to secure enterprise agents by using a gateway for token validation and IAM role enforcement.

  7. The New Stack on hebel. →Raindrop describes using stateful synthetic services to simulate production environments for testing agent changes before deployment.

More in Agentic Engineering

Architecting oversight for autonomous agent workflows

AI engineering yesterday

Spec-driven versus simulation-based agent development

Sign in to Hebel first

Likes, your collection and done Hebel need an account. We email you a six digit code; no password.