hebel. today · 15 November 202633 / 79

Agentic Engineering · AI engineering

Coding agents trade re-planning for reusable workflows

Coding agents historically consume excessive tokens by re-planning every step of a task during each execution. Developers now use Swamp to convert repeated skills into persistent workflows where code manages the execution loop, invoking…

Coding agents historically consume excessive tokens by re-planning every step of a task during each execution (Daily Dose of Data Science). Developers now use Swamp to convert repeated skills into persistent workflows where code manages the execution loop, invoking the model only for specific steps that require judgment (Daily Dose of Data Science). This architecture replaces the agent's tendency to rediscover processes, reducing token usage by approximately 8x and cutting execution time in half for certain workflows.

Tun Shwe, a staff AI engineer, defines the agent harness as a system comprising context management, tool registries, guardrails, loops, and verifiers (Packt Deep Engineering). This structure addresses intent debt and agentic amnesia, where autonomous systems lose context or drift from original goals over time (Douglas Levin from Lessons from a Startup Life). By treating memory as an append-only event log outside the model's window, engineers ensure the agent maintains a persistent, coherent state across long-running tasks.

Reliability in production requires moving beyond standard uptime metrics to sample agent outputs against defined business rules. While 78% of enterprise leaders have active agent pilots, only 14% have successfully scaled them to operational use due to these semantic failures. Teams at Uber now use a system that produces over 70% of pull requests by implementing shared rules files and human checkpoints at the task, planning, and merge stages (Ruben Dominguez from The AI Corner).

Try today · 45 min

Convert one repeated agent task into a Swamp-style typed workflow

Identify a sequence where your agent performs the same steps, then extract the logic into a script that calls the model only for judgment.

You need

  • Existing agent script
  • List of steps in the task
  • Definition of inputs and outputs for each step

Steps

  1. Audit your agent's recent logs to identify a repetitive task.
  2. Extract the decision-making logic into a Python script.
  3. Replace model-driven re-planning with a hard-coded control loop.
  4. Isolate the specific steps requiring LLM judgment.
  5. Refactor those steps into independent, typed model calls.
  6. Verify the output against your baseline performance.

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. Douglas Levin, Lessons from a Startup Life on hebel. → ✎ Written by a personDetails the 14% adoption rate for scaled agents and the risks of semantic failures like agentic amnesia.

  2. Ruben Dominguez, The AI Corner on hebel. → ✎ Written by a personDescribes Uber's AI-native software factory, which generates 70% of pull requests through strict task and merge checkpoints.

  3. Packt Deep Engineering on hebel. →Explains the five components of a robust agent harness and the necessity of external, event-log-based memory.

  4. Daily Dose of Data Science on hebel. →Introduces the Swamp approach for turning agent skills into reusable, code-managed workflows to save tokens.

More in Agentic Engineering

Verifying agent behavior through simulation versus runtime guardrails

Developers debate whether agent memory needs a full log or a curated desk

Teams move bottleneck from code generation to verification

Production agents require deterministic guardrails and context-aware triage

AI engineering yesterday

Building reliable agent harnesses

Sign in to Hebel first

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