Short answer. Day to day, Claude Code gets pointed at a short list of recurring jobs: learning an unfamiliar codebase, fixing bugs, refactoring, working with tests, opening pull requests, editing documentation, and running unattended in scripts or on a schedule. Anthropic’s documentation groups these as prompt recipes, alongside session controls for planning, resuming, parallel work and delegation (Claude Code docs).
Applies to: Claude Code, as documented on the “Common workflows” page of Anthropic’s docs at code.claude.com/docs/en. Last checked November 18, 2026.
On this page
Core coding workflows
The recipes start with the job most people hit first, which is reading code someone else wrote. The docs split it into a quick overview and a narrower search for the code behind a specific feature, and the example prompt is deliberately plain: “give me an overview of this codebase” (Claude Code docs). Running the broad pass before the narrow one gives the later questions somewhere to land.
Maintenance follows as three separate recipes: fix bugs, refactor code, and work with tests (Common workflows). They are listed separately because each begins with a different input. A bug fix starts from a symptom, a refactor starts from code you can already name, and test work starts from a failure or a gap in coverage. One further recipe points inward, asking Claude Code about its own capabilities, which is the cheapest way to check whether a workflow exists before you build it by hand.
Collaboration and review workflows
Creating pull requests is a documented recipe of its own, and the reverse direction has a flag: a session can start from an existing pull request (Claude Code docs).
claude --from-pr 1234
History can arrive the same way. The docs show commit history piped straight into a prompt:
git log --oneline -20 | claude -p "summarize these recent commits"
That line also contains the whole idea of headless use: anything a shell command produces can become the input, and -p returns an answer without an interactive session (Common workflows).
Documentation, notes and images
Two recipes cover work that is not code. One handles documentation, the other covers notes and other non-code folders, which matters if specs, meeting notes or runbooks live in the same repository as the source (Claude Code docs). A third recipe covers working with images, so a screenshot or a diagram can be part of the request instead of a description of one.
File references and context limits
The @ prefix references a file or directory inside a prompt, which keeps a question anchored to the right part of the tree. Three limits shape how far that goes: a file mention has a 256KB cutoff, the Read tool’s default limit is 25,000 tokens, and file mentions can be disabled with CLAUDE_CODE_DISABLE_FILE_MENTIONS, which requires Claude Code v2.1.299 or later (Claude Code docs).
One behavior is worth planning around. “Claude reads files fresh on each tool call,” according to the same page, so a long session is not working from a snapshot taken at the start.
Planning, parallel sessions and subagents
Three session controls separate a careful run from a fast one.
claude --permission-mode plan
claude --worktree feature-auth
claude --continue
Plan mode plans before editing, which suits changes where the approach carries the risk. The worktree flag runs parallel sessions in separate git worktrees, so two branches can progress without competing for one checkout. claude --continue resumes the previous conversation. Research can also be delegated to subagents instead of running in the main session (Common workflows).
Scheduling and headless runs
For work that should repeat without you, the docs compare four options by what each is best for (Claude Code docs):
| Option | Best for |
|---|---|
| Cloud scheduled tasks (claude.ai/code/routines) | Recurring hosted automation |
| Desktop scheduled tasks | Scheduling on your own machine |
| GitHub Actions | Runs triggered from CI |
/loop slash command | A self-paced interval you run yourself |
The difference is mostly where the run happens and what starts it. A hosted task does not depend on your own machine, a CI workflow reacts to repository events, and /loop stays inside a session you are already running.
Where the docs go deeper
Each of these workflows has a page behind it under code.claude.com/docs/en: Best practices, Subagents, Worktrees, Non-interactive mode, Hooks, Permissions and Plan mode. For guidance rather than mechanics, use the current Best practices page in the docs, which supersedes the older Claude Code best-practices engineering blog post that still circulates.





