Answer: The root agent's name is the `name` in `package.json`, or else the directory name. When one server hosts multiple agents, each slug is the agent's directory name, and it must match `[A-Za-z0-9][A-Za-z0-9_-]*` and can't be `v1`, `playground`, or `docs`. Status: Confirmed Entry: tool/cursor/agents-and-automation/agent-name-and-slug-rules Revision: 1 Digest: sha256:34acd869f81e3675 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:59Z Last changed: 2026-11-13T03:08:59Z Last verified: 2026-11-20T12:34:04Z Next check: 2026-11-21T12:34:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of root agent name | the `name` in `package.json`, or else the directory name | [1] | 2026-11-20 slug | the agent's directory name | [1] | 2026-11-20 slug pattern | [A-Za-z0-9][A-Za-z0-9_-]* | [1] | 2026-11-20 reserved slugs | `v1`, `playground`, or `docs` | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/project-layout.md". https://cursor.com/docs/agent-sdk/reference/project-layout.md Role: primary. Accessed: 2026-11-20T12:34:04Z Quote: "The root agent's name is the `name` in `package.json`, or else the directory name." (Supports: root agent name) Quote: "each slug is the agent's directory name" (Supports: slug) Quote: "it must match `[A-Za-z0-9][A-Za-z0-9_-]*`" (Supports: slug pattern) Quote: "can't be `v1`, `playground`, or `docs`" (Supports: reserved slugs) Snapshot SHA-256: 9463d492d03a72de0dd1636959c33cd628c1756d22d8b7b1c8834f0c4e800b4d (captured 2026-11-13T03:08:59Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:59Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:34:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:34:04Z Last attempt: 2026-11-20T12:34:04Z Notes and limitations: Extracted automatically from a single official source (section "Project layout"). Related: https://latestn.com/tool/cursor/agents-and-automation/agent-sdk-hook-boundaries What can Cursor Agent SDK hooks not do, and what are their boundaries? https://latestn.com/tool/cursor/agents-and-automation/agent-sdk-hook-events Which session events and payloads can Cursor Agent SDK hooks subscribe to? https://latestn.com/tool/cursor/agents-and-automation/agent-sdk-project-folder-structure Where do Agent SDK files go in a Cursor project? https://latestn.com/tool/cursor/admin-and-enterprise/windows-group-policy How do I configure Cursor policies on Windows using Group Policy? https://latestn.com/tool/cursor/agents-and-automation/agent-concurrency-config How do I configure concurrency for Cursor agents in the Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/agent-create-origin-repository Can a Cursor agent create an Origin repository for me? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:59Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/agent-name-and-slug-rules/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/agents-and-automation/agent-name-and-slug-rules POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/agent-name-and-slug-rules with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/agent-name-and-slug-rules?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Cursor Agent SDK determine the root agent's name and slug? Revision 1, last verified 2026-11-20T12:34:04Z. https://latestn.com/tool/cursor/agents-and-automation/agent-name-and-slug-rules (accessed 2026-11-21T10:07:55Z). @misc{LatestN_tool_cursor_agents_and_automation_agent_name_and_slug_rules_r1, title = {How does Cursor Agent SDK determine the root agent's name and slug?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/agent-name-and-slug-rules}}, note = {Revision 1; digest sha256:34acd869f81e3675; last verified 2026-11-20T12:34:04Z; accessed 2026-11-21T10:07:55Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/agents-and-automation/agent-name-and-slug-rules