///HEADLONG
01 / 12
LAUDE INSTITUTE · OPEN SOURCE

Headlong

A mind that doesn’t wait for the next prompt.

An open source agent microharness featuring persistent agency and recursive LLMs.

mind
loop
thoughts
continue
bash as
interface
state on
disk
Interactive field guide · 2026
01 · THE SHIFT

From request / response to continuous thought.

Headlong’s central bet is simple: a message is an observation in the agent’s life, not the beginning of a temporary session.

Reactive
message → work → answer
Reactive + cron
message → work → answer
Headlong
thought → act → reflect → thought
02 · ONE MIND, MANY PEOPLE
A human message lands in the thought stream. The agent decides if and when to respond.

One shared agent can follow what different people are working on, connect threads, and ping whoever seems most relevant. It behaves more like a person than a service.

Slack → observationTelegram → observationchat app → observationone timeline → one mind
03 · THE DESIGN THESIS

The shell is back at the centre of computing.

01

LLMs read text and write text. Unix tools already communicate through text streams.

02

Composition beats enumeration: capabilities emerge from pipes, files, and small tools.

03

The filesystem becomes the state layer, and the terminal remains inspectable.

# no bespoke count_links tool required
curl -s "$URL" \
  | grep -oP 'href="\K[^"]+' \
  | grep "$DOMAIN" \
  | wc -l

# capability emerges from composition
04 · SHELLM

One loop. Bash all the way down.

The recursive language model at the core lets an LLM write shell commands, run them, read the output, and continue until it signals completion.

Click a node to inspect its role.

SELECTED NODE

Context

The context tool projects the trajectory into the message array for the next LLM call.

05 · THE MICROHARNESS

Small parts, composed through files and pipes.

Thinkers

The mind: dispatches thought processes for acting, learning, recalling, responding, or idling.

shellm

The RLM core: sends context to an LLM, executes returned Bash, repeats.

traj

Append-only JSONL trajectories that can fork and merge.

context

Renders the trajectory into tiered LLM context without deleting history.

mem / skills
File-based memories and markdown abilities
Docker / local
Generated code runs in a sandbox when available
The core is described by the project as 9.9K lines of Bash, making it readable end to end.
06 · STATE IS TEXT

The mind’s life stays inspectable.

Identity, memory, skills, trajectories, and run logs live in an ordinary directory. The agent can read its own source and history.

recent
near past
older
deep history
.identities/ada/
├── activate
├── core_identity_prompt.md
├── memories/
├── skills/
├── thinkers/
├── trajectories/
└── run/
07 · PERSISTENT AGENCY IN ACTION

Audel finds its own bug.

On August 5, 2026, the shared agent returned to a recall process it had built earlier, diagnosed a broken pipe, fixed the code, and verified the result without a human asking.

Returns to recall23:11 UTC
Suspects the causepipe vs environment variable
Searches the codebasechecks the other processes
Re-applies the fixfirst edit failed silently
Verifies end to end23:58 UTC · 48 minutes
SELECTED BEAT

Audel notices that recall has been firing but surfacing nothing, then starts investigating its own implementation.

08 · WHAT BROKE

Continuous agency makes failure modes visible.

Watchdog

Recursive sub-runs often died because a safety watchdog killed commands that stayed silent for 30 seconds.

Self-stop

The agent stopped its own service by accident. A guard fixed that, then introduced a narrower matching bug.

Shared stream

There are no hard walls between people. The project explicitly warns that anything told to the agent may be shared.

Operational blast radius

Without Docker, generated Bash runs directly as the user. The project recommends a sandbox and a spend-capped key.

Alpha research software · treat the runtime as powerful and fallible.
09 · COST AND EVALS
$1–2per hour at Laude’s stated settings
with GLM or Grok

Idle time becomes a product decision.

Headlong backs off exponentially when nobody is talking, then resets the rate when a message arrives. The cost still depends on model, loop speed, and configuration.

5s10s20scap
Most current evaluation is qualitative. The open question is how to measure the long-term value of persistent agency.
10 · TRY IT

Give the mind a name.

One line installs Headlong, interviews you, creates an identity, and opens the dashboard.

curl -fsSL https://headlong.ai/install.sh | bash
01

Bring Bash 3.2+, git, curl, jq, and an API key from Anthropic, OpenAI, Gemini, or OpenRouter.

02

Use Docker when available. It keeps generated shell work inside a container.

03

Use a dedicated, spend-capped key. The agent thinks around the clock.

Important: without Docker, commands run directly on your machine as you. The installer asks for explicit confirmation before that setup.
HEADLONG · THE TAKEAWAY

The shell is the agent runtime.

Headlong is a compact experiment in what happens when persistent agency is built from old, inspectable primitives: text streams, processes, files, and a loop that never quite goes to sleep.

Editable deck · sources linked throughout