Answer: To create a subagent, place it under `bot/subagents//` with a required `agent.ts` file, and optionally add `instructions.md` or inline `instructions` in `agent.ts` for a custom prompt. Omit `model` to inherit the parent's model. Status: Confirmed Entry: tool/cursor/agents-and-automation/create-subagent Revision: 1 Digest: sha256:24a156e0b6f61a53 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:09:03Z Last changed: 2026-11-13T03:09:03Z Last verified: 2026-11-20T12:34:13Z Next check: 2026-11-21T12:34:13Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of directory | bot/subagents// | [1] | 2026-11-20 required file | agent.ts | [1] | 2026-11-20 optional prompt file | instructions.md | [1] | 2026-11-20 model inheritance | Omit `model` to inherit the parent's model. | [1] | 2026-11-20 example path | bot/subagents/researcher/ | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/subagents.md". https://cursor.com/docs/agent-sdk/reference/subagents.md Role: primary. Accessed: 2026-11-20T12:34:14Z Quote: "Each one lives under `bot/subagents//` with a required `agent.ts`." (Supports: directory) Quote: "with a required `agent.ts`" (Supports: required file) Quote: "Add `instructions.md`, or inline `instructions` in `agent.ts`, for a custom prompt." (Supports: optional prompt file) Quote: "Omit `model` to inherit the parent's model." (Supports: model inheritance) Quote: "bot/subagents/researcher/" (Supports: example path) Snapshot SHA-256: 339302cb03ff60f08752cd73790f4af90f02f0a1f082ab01d0b88583adf0a40c (captured 2026-11-13T03:09:03Z) 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:09:03Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:34:13Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:34:13Z Last attempt: 2026-11-20T12:34:13Z Notes and limitations: Extracted automatically from a single official source (section "Subagents"). Related: https://latestn.com/tool/cursor/agents-and-automation/custom-modes-skill How do I use a skill as a Custom Mode in Cursor so it stays active across turns? https://latestn.com/tool/cursor/agents-and-automation/customize-approval-rules How do I customize approval rules for PR Routing & Approval in Cursor? https://latestn.com/tool/cursor/agents-and-automation/declare-artifact-kinds How do I declare artifact kinds in the Cursor Agent SDK? https://latestn.com/tool/cursor/agents-and-automation/create-automation How do I create a Cursor automation? https://latestn.com/tool/cursor/agents-and-automation/create-custom-subagent How do I create a custom subagent in Cursor? https://latestn.com/tool/cursor/agents-and-automation/create-plugin How do I create a plugin for Cursor? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:09:03Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/create-subagent/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/create-subagent POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/create-subagent with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/create-subagent?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a subagent in Cursor's Agent SDK? Revision 1, last verified 2026-11-20T12:34:13Z. https://latestn.com/tool/cursor/agents-and-automation/create-subagent (accessed 2026-11-21T09:57:05Z). @misc{LatestN_tool_cursor_agents_and_automation_create_subagent_r1, title = {How do I create a subagent in Cursor's Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/create-subagent}}, note = {Revision 1; digest sha256:24a156e0b6f61a53; last verified 2026-11-20T12:34:13Z; accessed 2026-11-21T09:57:05Z} } 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/create-subagent