Skip to content
docs/concepts
Get started

Instruction overlays

An instruction overlay is standing guidance attached to a bucket or a project, compiled into every session spawned under it. It is how a convention you want followed stops being something you retype into each agent.

Manage → Instructions is where you write them, and where the composed result for a given bucket, project and role can be read back — which is the only reliable way to see what a session will actually be told.

An overlay is addressed by bucket, optionally project, and role. A Worker and a Supervisor in the same bucket can be told different things, which matters because they do different jobs: a Supervisor needs instructions about dispatching, a Worker needs instructions about the code.

A project overlay composes with its bucket’s rather than replacing it, so what a session reads is the bucket’s text and the project’s together.

Every overlay is versioned, and set requires --expected-revision. If someone else changed it since you read it, your write is refused rather than silently overwriting theirs.

revert restores the previous version. Because the history is kept, you can see what a session was told at the time it ran, which is not the same as what the overlay says now — the distinction that makes an old session’s behavior explicable.

Overlays are one layer among several, and they are the layer you own. A spawned session also reads:

  • Its own agent’s configuration, from wherever that CLI normally reads it, including any repository-level instruction files the agent supports natively. Puppet Master does not replace or intercept those.
  • Its role, which carries the description of what a Worker or a Supervisor is and what tools it has.
  • Its session context — the project, the working directory, the worker, and the task it was spawned with.

Puppet Master injects its own layers through each agent CLI’s own configuration mechanism rather than by rewriting your files. Agent adapters describes how, and what each CLI makes possible.

Things that are true for all the work in a bucket and that an agent would otherwise have to be told every time: the conventions the repository enforces, what to do before committing, which tools to prefer, what not to touch.

Things not to put in one: anything about a single task, which belongs in the prompt or on the item, and anything secret, which belongs nowhere an agent can print it.