What is an agent habitat?

A few people have started using the term agent habitat. Their uses overlap, but do not coincide. This page explains what I mean by it, why I found the term necessary, and how my use relates to theirs.

i. why even bother

When “harness” stopped being enough

In January 2026, I began using an Obsidian vault as persistent context for Claude Code. I could see what it did, but I did not yet have a name for what I was building. In March, I learned that others were working in similar ways and encountered the term agent harness. For a while, I thought I had found the answer: I was building a harness.

The better I understood the term, the less complete the fit became. A harness names an important, predominantly technical layer. It supplies context, exposes tools, carries feedback, applies permissions, and keeps an agent loop running. It explains how model output becomes reliable action. What it did not fully describe was the environment taking shape around that loop.

Part of the mismatch came from something that is easy to overlook precisely because these systems run on computers. In conventional software, prose usually describes the system while code executes it. With LLM-based agents, that boundary moves. An instruction file, a skill, a constitution, or an architectural decision can enter the operation of the system. Once read into context, it can change what an agent notices, how it classifies a situation, what authority it believes it has, and when it asks a human to decide.

These texts are not code in disguise. They are not executed deterministically; they are interpreted in a situation. Their effect depends on whether the agent sees them, what standing they have, what else is present in context, and whether the environment makes compliance or violation visible.

That is why the presence of prose is not enough. A principle can sit unread in a file and change nothing. Language becomes institutional only when it is repeatedly brought into attention, given authority, connected to decisions, and exposed to correction. In my own system, agents are instructed to begin a session by orienting themselves in a small set of governing documents. One of the concepts they encounter is drift: a divergence between documented assumptions and observed reality. When an agent compares a deployed service with its documentation, this language gives it a reason to name the discrepancy even when nothing has failed yet. It does not guarantee that every agent will do so. It creates a shared distinction and an expectation against which behavior can be examined.

I do not think of this as rewriting the model's general understanding of the world or installing values in its weights. The model remains unchanged. What persists outside it is an environment from which an agent in each new session can construct a local orientation: what exists here, which sources have standing, what matters, what role the agent occupies, and what it may decide. The agent's orientation is transient; the environment from which it is rebuilt can endure.

This is where harness stopped being sufficient for me. A harness can deliver language to a model and enforce individual rules. The wider system also contains the relationships among those texts, the humans and agents who interpret them, the artifacts and memory they share, and the processes by which their rules change.

I draw the boundary between harness and habitat where the questions stop being about one agent loop and start being about this shared world.

Tools make bounded effects possible. The harness supplies context, executes tools, carries feedback, applies local permissions, and runs the loop. When a model is delegated the choice of what to do next within that bounded space, model and harness together form the operative agent. A workflow can use the same components while keeping that choice in the outer system.

The habitat begins when situated agency has to share authority, memory, norms, and consequences with other agents and people over time. I use harness for the execution-facing layer; its history, competing definitions, and internal structure are examined in What is an agent harness?.

For quick orientation, I sometimes write:

Habitat = Harness + Governance

The formula helps, but it breaks down as a final model because it suggests governance is a feature added to a harness. The stronger claim places the habitat at another system level. A harness is the operational membrane around one agent loop; a habitat is the shared order through which such loops acquire authority, memory, norms, and consequences over time:

habitat norms · authority · consequence · continuity humans shared memory agent + harness model tools subagent model tools another agent + harness feedback · correction

The same whole-and-part relation recurs along delegation chains: a subagent is an agent in its own right and, at the same time, a capability of its parent.

The order includes the agents and harnesses, together with the humans, shared artifacts, institutional memory, authority relations, and the processes by which the rules themselves change. Some governance can be compiled into harness mechanisms such as permission gates, context selection, and validation. The habitat holds the rest: who may grant authority in the first place, what persists, how conflicts resolve, and how responsibility is attributed.

precision notes

Accountability has to survive the recursion in the diagram: every delegation that passes authority down needs a path that carries attribution back up. This describes an organizational pattern, with no claim about consciousness attached.

ii. the historical starting point sourced

The agent and its environment

In the textbook account, an agent perceives its environment through sensors and acts on it through actuators (Russell & Norvig). Multi-agent systems research went further and argued that the environment deserves treatment as a first-class abstraction: a design space of its own, with responsibilities beyond serving as a backdrop for agent actions.

The word covers what an agent perceives and acts on, and says nothing about who authorized the agent, what survives after it stops, or who answers for what it did. A strand of multi-agent research from the 2000s (electronic institutions, normative multi-agent systems) built formal answers to exactly those questions. That work is rigorous and predates LLMs, and most people building agents today have never read it.

iii. regulation by architecture sourced

Code, rules, and norms

In 1999, Lawrence Lessig argued that behavior in networked systems is regulated by four forces: law, norms, markets, and architecture. In software, he argued, architecture means code: constraints built into it need no enforcement, and whatever it makes easy needs no encouragement.

Three registers from that lineage are worth keeping apart: embedded constraint, which shapes what can happen at all; revisable rule, which states what may happen, assigns authority, and defines escalation; and learned norm, which guides behavior where the rules run out. A policy document belongs to none of these by default. It starts to govern only when actors can perceive it, violations become visible, and correction follows.

Lessig was writing about human actors. Agent systems add conditions his framework never had to deal with: delegation chains between software actors, actors whose identity and memory are design choices, and populations in which machines appear on both sides of the regulation.

iv. the term in current use source survey

How “agent habitat” is being used

The usages arose independently and differ in what they take the habitat to be.

Will Schenk thefocus.ai

The most concrete position: "an agent is a git repo. Not metaphorically. The repo literally IS the agent" — memory file, prompt playbooks, working state, scoped credentials, container isolation. The habitat as self-contained runtime package.

His essay closes on the question of what happens when a dozen of these run at once and need coordination, which is where this page begins.

Russ Miles engineering agents

"Habitat Engineering": the engineered environment in which AI works — conventions, constraints, memory, feedback loops. "A tool does what you tell it. A habitat shapes what you do." And: "You can install the conditions for one. The habitat itself, you have to grow."

The scope is a team's development practice: one repo, one team, one working culture.

Raynor Eissens agentichabitat.com

"The environment where agents, humans, objects, tools, memory, permissions and workflows exchange context." The focus is human legibility: who acted, what context was used, what changed, what can be undone.

Governance appears as the fourth step of his operational grammar (permissions, auditability, revocation, oversight); the question of legitimation stays open.

The most formal account: a paper series treating the agent–habitat pairing as a coupled dynamical system. The habitat is the institutional integration layer around a deployed physical AI system: protocols, governance rules, observability, accumulated trust. On Cruise and Waymo: "Same technology. Same city. Same regulators. Different habitat."

His habitat surrounds one deployment and is measured from outside; governance inside plural, nested agency stays out of scope.

One disambiguation: Meta's AI Habitat is a simulation platform for training embodied agents in 3D environments, a different sense of the word that shares little more than the name.

These usages converge on one point: agents need designed environments, and environment alone no longer says enough. Where they diverge is in what the habitat is taken to be: a context-exchange space, an engineered practice, a runtime package, or an institutional integration layer.

v. limits of reliability synthesis

Reliable action is not the same as governed agency

Permissions exist who holds authority is unclear
Logs exist no one is accountable
Memory exists continuity is missing
Agents collaborate norms and conflict rules stay implicit
The harness is reliable actions pass local checks and damage the wider system

Research is beginning to name pieces of this layer, from organizational control layers to oversight structures and accountable delegation, and no vocabulary has settled yet.

Each of the habitat accounts above touches this wall at one point: Schenk isolates and packages the runtime, Miles grows working conventions, Eissens makes context and its use legible, and Cohen comes closest to the institutional core, though his habitat surrounds a single deployment and is measured from outside. The questions above arise inside systems where many agents and humans share work, memory, and consequences over time, and none of these accounts designs the shared world in which that happens.

vi. six dimensions working model

The structure of governed agency

Six connected dimensions, each with a diagnostic question.

Authority

A tool can make an action technically possible; whether this actor may perform it, who granted that power, and when it expires is decided by the habitat.

Under what authority does this agent act, and can it say so?

Norms

No permission system enumerates every future situation. Norms guide judgment where the rules run out, and they need ways to be taught, challenged, and revised.

What behavior is expected here, beyond what is allowed?

Identity

A role prompt configures a single session, while identity is what remains attributable across sessions and delegations, including ancestry when agents create subagents.

Who acted, under which mandate?

Memory

Habitat memory carries commitments, decisions, and provenance forward while staying distinguishable from truth, so that stale records can lose authority instead of silently keeping it.

What must persist beyond the context window, and with what standing?

Consequence

Governance only binds when something follows from ignoring it. Consequence includes attribution, correction, rollback, and changed future authority; none of this requires anthropomorphic punishment.

What happens after a harmful action, and who notices?

Continuity

Continuity connects otherwise isolated runs into a durable process: unfinished obligations remain visible, new agents inherit context without inheriting unsupported beliefs, and governance evolves without rewriting its own history.

What survives the end of a session?

vii. a practical test diagnostic

Harness vs. Habitat

  1. Who authorized this action?
  2. What persists after the run?
  3. Who bears the consequence?
  4. How does correction happen?

A system that cannot answer them can still act reliably; what it has is a harness. The habitat is the layer that would supply the answers.

This is also why a well-built harness can sit inside a poorly governed system. The harness answers a local question (may this process call this tool now?) one run at a time. Whether the goal was legitimately set, whether the memory being trusted deserves its standing, and whether anyone will notice the cumulative effect all lie outside that answer. Cohen's Cruise study makes the stakes concrete: the vehicles kept driving while the institutional habitat around them collapsed within three weeks, and a technically perfect driving system would have met the same end.

viii. limits of this definition open

Questions I can’t answer yet

ix. revision history

Tools let agents act. Harnesses make action reliable. Habitats make agency governable.