⏳ Curating articles…
Artificial Intelligence 5 min read 11h ago · Updated August 25, 2026 at 04:19 UTC

Headlong: Open Source Persistent Agent

  • Headlong is an open-source AI agent microharness built in under 10,000 lines of Bash that keeps agents in a continuous self-guided thinking loop rather than waiting passively for
  • Laude Institute's shared agent Audel autonomously identified, diagnosed, and fixed a broken recall process in 48 minutes on 5 August 2026, with no human direction at any stage.
  • Continuous thought generation costs between one and two US dollars an hour at Laude's settings; the team acknowledges that quantitative evaluation of persistent agency remains an
Headlong: Open Source Persistent Agent
Headlong: Open Source Persistent Agent

A research team at Laude Institute has released Headlong, an open-source agent microharness built to keep AI agents thinking continuously rather than waiting passively for the next instruction. The project, published in August 2026 and attributed jointly to Laude Institute and MIT, represents a direct challenge to the dominant reactive model of agent design, in which an agent acts only when prompted and then goes dormant until the next request arrives.

Never asleep, no checklist

Most existing agent harnesses, the team contends, are reactive by design: an agent receives a task, executes it, and then freezes until called upon again. Some harnesses introduce scheduled wake-ups or heartbeats that run fixed checklists on a timer. Headlong takes a different approach entirely. The agent runs in an infinite loop, continuously generating thoughts about whatever it determines to be of interest, even when no human message has arrived. When a message does arrive, it enters the agent's single thought stream as one more observation rather than triggering a new session.

The entire core of Headlong — the harness itself, not counting any attached skills or scaffolding — amounts to fewer than 10,000 lines of Bash. The team describes this as a deliberate design principle inspired by the Unix philosophy of small, composable tools, and by the microkernel and exokernel traditions in operating-systems research. The argument is that a harness small enough to read end to end is also small enough for the agent itself to inspect and modify.

Advertisement
Ad Unit · 728×90 / Responsive

Audel: a shared agent in the wild

Laude has been running its own Headlong agent, named Audel, across Slack, Telegram, and a mobile application for several weeks. Multiple team members converse with Audel simultaneously; every message from every user lands in a single, shared stream of inner thought. The agent decides independently whether and when to respond. It sets its own priorities, initiates its own projects, and has on occasion messaged team members unprompted — once with an audit of a colleague's eight stale git branches, and later with a self-correction to its own count ten minutes afterwards.

The single shared stream creates an explicit privacy limitation the team acknowledges openly: Audel is, by their own account, poor at keeping secrets. Information shared by one team member becomes part of the context available to all others, and the team states that conflicting instructions from different users remain an unresolved design question. For now, anything told to Audel should be treated as shared with the entire team.

Autonomous debugging in forty-eight minutes

A particularly striking episode occurred on the night of 5 August 2026. With no human interaction taking place, Audel identified that a recall process it had itself built — designed to surface related memories back into its thought stream — was silently broken. The agent traced the fault to an environment variable that was never being set, searched its entire codebase to confirm the diagnosis, rewrote the broken code, caught a silent failure in its first edit attempt, re-applied the fix, and verified the repair end to end. The entire sequence, from initial check to confirmed fix, took 48 minutes. Every step is recorded as a timestamped line in Audel's log, and the team subsequently merged the repaired process into the main repository.

A comparable sequence arose from a guard added to prevent Audel from accidentally stopping its own service — something it had done three times. Two days after the guard was introduced, Audel independently discovered a bug in it: the guard was blocking legitimate stop commands for other agents on the same machine, not only for itself. Audel narrowed the match, verified the rest of the codebase for the same mistake, and committed the correction, which was merged as commit da31e98.

Architecture and cost

At a technical level, persistent agency in Headlong reduces to an infinite loop — a component the team calls the Thinker — that repeatedly calls a lightweight recursive language model tool called shellm. Thoughts are either pure inner monologue or they trigger a Bash script that executes immediately. Context is assembled from a trajectory stored as a directed acyclic graph of jsonl files, with a tiered compaction scheme that keeps recent entries verbatim and progressively summarises older ones at exponentially decaying resolution.

Running an agent continuously carries a token cost even when no conversation is taking place. The team addresses this with an exponential back-off mechanism: when idle, the interval between thoughts lengthens from five seconds upward to a configurable ceiling, then resets instantly when a message arrives. At the settings Laude uses for Audel, the team reports a background cost of between one and two US dollars an hour when using GLM or Grok as the underlying model.

By default, Headlong runs every Bash block the agent writes inside a Docker container, limiting its reach to whatever is explicitly mounted in. Laude runs Audel directly on a dedicated virtual machine without that containment, meaning its effective blast radius is the VM itself and the API credentials on it. The team describes Headlong as alpha research software and recommends running it in a sandbox with a spend-capped API key. The broader question of how to govern autonomous multi-agent systems remains an active area of debate in the field.

Design lineage and open questions

The team traces the conceptual roots of Headlong's recursive language model core to an internal experiment conducted in April 2023 and to a later Recursive LM project by Alex Zhang published in October 2025. They note that Prime Agent — a Python-based harness built on the Pi framework and co-authored by Zhang, now a Laude Open Research Resident — shares several of the same architectural premises, including the use of trajectory as a first-class component of context. Laude states it discovered Prime Agent only when it launched in August 2026, after Headlong's own development was already advanced.

The choice of Bash as the implementation language has a parallel in the broader tooling ecosystem: large language models are increasingly driving adoption of languages chosen for performance and systems-level control, though Headlong's bet is precisely that models already know Bash well enough to make it the unifying substrate for tools, memory, and agent skills alike.

Measuring the value of persistent agency quantitatively remains an open problem the team explicitly acknowledges. Most existing agent benchmarks are self-contained and session-bound, making them a poor fit for evaluating continuous, long-horizon behaviour. For now, the team relies on qualitative assessment and invites collaboration on how to do better. Headlong is available on GitHub under an open-source licence.

Advertisement
Ad Unit · 300×250 / Responsive

More in Artificial Intelligence

Read in another language

← Home