Answer: You can have Claude write a workflow by including the keyword `ultracode` in your prompt (or asking in your own words, e.g. "use a workflow"), or by setting `/effort ultracode` so Claude plans a workflow for every substantive task. To save it, run `/workflows`, select the run you want to keep, and press `s`, then choose a save location and press Enter. Status: Confirmed Entry: tool/claude-code/agents-and-automation/claude-write-save-workflow Revision: 2 Digest: sha256:51d582cd399c2a74 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:08Z Last changed: 2026-11-15T12:26:38Z (key to save selected run: — → s) Last verified: 2026-11-20T12:26:19Z Next check: 2026-11-21T12:26:19Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of keyword to request a workflow | ultracode | [1] | 2026-11-20 session setting for automatic workflows | /effort ultracode | [1] | 2026-11-20 save command | /workflows | [1] | 2026-11-20 key to save selected run | s | [1] | 2026-11-20 project save location | .claude/workflows/ | [1] | 2026-11-20 personal save location | ~/.claude/workflows/ | [1] | 2026-11-20 how saved workflow runs | / | [1] | 2026-11-20 Sources: [1] Anthropic. "Orchestrate subagents at scale with dynamic workflows". https://code.claude.com/docs/en/workflows.md Role: primary. Accessed: 2026-11-20T12:26:19Z Quote: "include the keyword `ultracode` in your prompt" (Supports: keyword to request a workflow) Quote: "set `/effort ultracode` and Claude plans a workflow for every substantive task in the session" (Supports: session setting for automatic workflows) Quote: "Run `/workflows`, select the run you want to keep, and press `s`." (Supports: save command) Quote: "select the run you want to keep, and press `s`" (Supports: key to save selected run) Quote: "`.claude/workflows/` in your project: shared with everyone who clones the repo" (Supports: project save location) Quote: "`~/.claude/workflows/` in your home directory: available in every project, visible only to you." (Supports: personal save location) Quote: "The workflow runs as `/` in future sessions from either location." (Supports: how saved workflow runs) Published: 2026-11-20T03:05:16Z Snapshot SHA-256: 0854f460f06e03fd7edccc1cb277fd29b0535a10c03d2c5560fd449c0c7f4c52 (captured 2026-11-14T12:21: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-14T12:22:01Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:26:19Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:26:19Z Last attempt: 2026-11-20T12:26:19Z Notes and limitations: Extracted automatically from a single official source (section "Have Claude write a workflow"). Related: https://latestn.com/tool/claude-code/agents-and-automation/claudesdkclient-interrupts How do I interrupt a running Claude Code session with ClaudeSDKClient in Python? https://latestn.com/tool/claude-code/agents-and-automation/configure-hooks How do I configure hooks in Claude Code to intercept tool calls? https://latestn.com/tool/claude-code/agents-and-automation/configure-tool-search How do I configure tool search in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/choose-and-weight-graders What grader types exist for Claude Code plugin evals and how do I choose and weight graders? https://latestn.com/tool/claude-code/agents-and-automation/choose-display-mode How do I choose the display mode for my Claude Code agent team? https://latestn.com/tool/claude-code/agents-and-automation/choose-hook-type-sdk When should I use which hook type in the Claude Code SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:26:38Z | changed | key to save selected run: — → s | [1] 2026-11-15T12:26:38Z | changed | session setting for automatic workflows: — → /effort ultracode | [1] 2026-11-15T12:26:38Z | changed | setting for automatic workflows: /effort ultracode → — | [1] 2026-11-13T03:06:08Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/claude-write-save-workflow/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/claude-code/agents-and-automation/claude-write-save-workflow POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/claude-write-save-workflow with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/claude-write-save-workflow?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I have Claude write and save a workflow in Claude Code? Revision 2, last verified 2026-11-20T12:26:19Z. https://latestn.com/tool/claude-code/agents-and-automation/claude-write-save-workflow (accessed 2026-11-21T09:58:40Z). @misc{LatestN_tool_claude_code_agents_and_automation_claude_write_save_workflow_r2, title = {How do I have Claude write and save a workflow in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/claude-write-save-workflow}}, note = {Revision 2; digest sha256:51d582cd399c2a74; last verified 2026-11-20T12:26:19Z; accessed 2026-11-21T09:58:40Z} } 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/claude-code/agents-and-automation/claude-write-save-workflow