Skip to main content

Module instructions

Module instructions 

Source
Expand description

What the model is told before the conversation: who it is working for, where, and with which tools, followed by the folder’s own AGENTS.md when it has one.

Constants§

AGENTS_FILE
The name of the file a folder keeps its instructions for coding agents in.

Functions§

agents
The folder’s AGENTS.md, when it has one that can be read as text.
body
The body of the next request: the conversation so far, the system prompt and the tools.
system
The system prompt for work in root.