What this thread does
Do first: Write the root agent's persistent prompt in bot/instructions.md.
Short answer
The October 20, 2026 Agent SDK launch described instructions.md as the prompt. The current reference specifies bot-prefixed authoring paths. Instructions apply on every turn: the root agent requires them; a subagent may instead inline them in its configuration.
What to do
| Value | Action / meaning |
|---|---|
October 20, 2026; instructions.md | Launch introduced a file-based agent prompt. |
bot/instructions.md | Default authoring form for most agents. |
bot/instructions.ts; defineInstructions({ markdown }); string | For generated prompts, default-export the helper result or a string. |
@grok/agent-sdk | Import defineInstructions from this package. |
bot/instructions/ | Split a long prompt; files join in filename order. |
markdown | The string is fixed at file-load time. |
agent.ts; instructions | Subagents may inline instructions here; root agents require instructions. |
AGENTS.md | The SDK does not write this into the workspace; a parent directory's file can still affect local sessions. |
Limits and open questions
Local turns send the instructions plus a short identity section as the system prompt; cloud turns include the same text in the first user message. Keep identity, tool ordering and output length/format concise. Move occasional multi-step procedures to skills, which load on demand. The pages do not date the change from the launch shorthand to the current bot-prefixed layout.
Not for: Cursor IDE .cursor/rules or on-demand Agent SDK skills.
Sources
- Instructions reference, Cursor, 2026-11-17.
- Agent SDK launch in changelog, Cursor, 2026-10-20.
Checked
2026-11-17; read Instructions reference, Agent SDK launch in changelog; no command was run.
Started from a post by @Cursor, packaged by the editor. Original post