“If both Cowork and Code can create files and run commands, which one should I use?”
“I tried to check a setting on an internal server from Cowork, but it couldn’t connect.”
Claude’s desktop app has three tabs side by side: Chat, Cowork, and Code. Cowork and Code can both read and write files, run commands, and take on multi-step work, so it looks as if either one would do. But where each runs, what each can reach, and what each leaves behind are very different.
In Part 2, we confirm the official positioning and then compare those differences. At the end, the author, who works in infrastructure, shares one example of why they move their work to Code.
▶ This part is also available as a YouTube video (about 20 min) (it is also embedded at the end of this article).
The official positioning of the three tabs
| Tab | Official description | Intended users |
|---|---|---|
| Chat | Conversation. Questions, brainstorming, and short exchanges. For when the output is “your own thinking” | Everyone |
| Cowork | Dispatch and longer agentic work. Creates deliverables for other people across multiple files and tools. Scheduled runs are also possible | Knowledge workers who are not developers |
| Code | Software development | Developers. The documentation states that “if you are not a developer, you do not need the Code tab” |
The sources are the Claude Code documentation for the desktop app (code.claude.com/docs/en/desktop) and Claude 101 from Claude Academy. As noted in Part 1, Chat and Cowork have been merged into a single conversation, rolling out gradually starting with Pro and Max. It became generally available on October 23, 2026 for Enterprise and on November 12 for Team. After the merger, Claude decides whether to use tools.
The officially recommended split

- Five conditions that suit Cowork (official blog, June 3, 2026): there are multiple inputs, the work outputs files, it recurs, the quality standard is clear, and the intermediate steps are repetitive
- How Dispatch routes work: Cowork’s persistent conversation (Dispatch) sends fixing bugs, running tests, updating dependencies, and creating pull requests to a Code session. Research, editing documents, and spreadsheet work stay in Cowork
- The official view, in short: “If you write and run code, use Code; for creating other kinds of deliverables, use Cowork“
- However: the official documentation does not say “do not use Code for non-development work.” In Anthropic’s research, data analysis and document and presentation creation account for 13% of Claude Code sessions, and “writing and data analysis” doubled from about 10% to 20% in six months
It is a good idea to use this official split as your baseline. Then think about how the difference in “where it runs,” covered next, affects your own work.
Where it runs
| Code | Cowork | |
|---|---|---|
| Where it runs | You can choose. Local: your PC. WSL: inside a WSL 2 distribution. SSH: on a remote machine you manage (a server or a cloud VM). Cloud: Anthropic’s infrastructure | On Pro and Max, from October 6, 2026, all new tasks run in an isolated environment on Anthropic’s infrastructure (the cloud). Tasks started on a PC before then run in a dedicated Linux VM on the PC, isolated from the host OS by a hypervisor |
| Files it can handle | The project folder you choose | Only the folders and files the user connects |
| After you close the app | Local stops. Cloud continues | PC sessions stop. Cloud sessions continue |
Claude Code’s cloud sessions (Claude Code on the web) are available on Pro and Max as well.
Network and local tools
The biggest difference is the network and your local tools.

- A Code Local session runs on your PC as it is, so it reaches whatever your PC can reach. You can SSH to internal servers and use Ansible, the AWS CLI, PowerShell, and WSL’s Linux tools that you have installed locally
- Cowork’s commands run inside an isolated environment. Traffic goes through an enforced proxy and reaches only destinations on the allowlist. The official documentation states that “private, internal, link-local, and cloud metadata addresses are not reachable” (the same on every plan)
- From Cowork, tools installed on the host cannot be run
In other words, running an Ansible playbook against internal or home servers, or driving PowerPoint from PowerShell to create a pptx, cannot be done in Cowork; only Code can do it. This is the cause of the second question at the start of this article.
Differences in settings, sharing, and records
The settings it loads
| Code | Cowork | |
|---|---|---|
| Settings it loads | The same settings files as the CLI: CLAUDE.md, .mcp.json, hooks, Skills, and the permission rules in settings.json | The “Customize” settings of your claude.ai account (Skills, plugins, connectors). It does not read the CLI’s ~/.claude |
| Sharing settings | They are files, so you can distribute them through Git or a shared folder | Settings are per account |
| Permission checks | Manual, Accept edits, Plan, and Auto modes (Part 5) | Manual approval and automatic approval |
In Code, the CLAUDE.md, Skills, and permission rules you create work as they are in both the terminal CLI and the Code tab of the desktop app.
Who you can share with

- Cowork sessions cannot be shared (official: “Sessions can’t be shared with others”). Only deliverables (Artifacts, documents, and tables) can be shared
- In Code, the “how” stays as files. CLAUDE.md, Skills, playbooks, and md files are files, so you can share them through Git or a shared folder
- The conversation of a Code Local session stays on your PC and cannot be shared by link
- A Code cloud session can be shared by link with a visibility setting you can switch. On Pro and Max, the options are Private and Public (anyone signed in to claude.ai can view it); on Team and Enterprise, they are Private and Team (inside the organization). The recipient sees the latest state at the moment they open it. Before you make a session Public, check that it contains no code or credentials
- In Cowork, you can hand over deliverables, but you cannot show other people how you got there (what you looked into and what you decided), which makes reviews and handovers harder
Across devices
- Code: A Local session can be operated from your phone or a browser with Remote Control. In the desktop app, Continue in can move a Local session to the cloud (except SSH sessions)
- Cowork: Cloud sessions follow your account. A session you ran on a PC stays on that PC only
How records remain
| Code | Cowork | |
|---|---|---|
| Deliverables | Remain as files and diffs in the repository or folder. You can follow the history with Git | Files in the connected folder, or Artifacts |
| Conversation logs | Stored in plain text in ~/.claude/projects/ on your PC. Deleted after cleanupPeriodDays (30 days by default) | Cloud sessions are stored in your Claude account. The log of a session run on a PC stays on that PC |
In both, a conversation run on your PC stays on your PC. The difference is that in Code the results of the work remain as files that a team can follow. How long Anthropic retains data and whether it is used for training follow your account’s privacy settings (Part 6).
The decision flow
Combining the official split with the differences in where each runs, you can decide as follows.
- ① Just getting an answer, or brainstorming → Chat
- ② Using internal or home servers, a cloud CLI, or local tools (Ansible, AWS CLI, PowerShell, WSL) → Code (Local, WSL, SSH). Cowork cannot reach them
- ③ Writing and running code → Code (per the official split)
- ④ Creating documents, tables, or slides for other people from files or connectors, on a recurring basis → Cowork (per the official split)
- ⑤ Keeping the way you did something as files, to share and reuse with a team → Code
The author’s example: moving infrastructure work to Code
From here on, this is not the official recommendation but one example of how the author works, as someone whose job is building and operating infrastructure. The author makes Code the default for work that produces deliverables, uses Chat for short questions and brainstorming, and treats Cowork as the exception.

The official documentation treats research and document work as Cowork territory, but if the research results lead into a runbook or a configuration change, it is more efficient to carry on in the same Code session. Written with this approach, the decision flow looks like this.

Task-by-task cheat sheet (the author’s example)
| Task | What to use | Why |
|---|---|---|
| Creating and running Ansible playbooks (Linux and Windows) | Code (Local, WSL, SSH) | It reaches internal hosts. You can check with --check --diff before running |
| Cloud operations (AWS CLI, etc.) | Code (Local, WSL) | It uses your local credentials and CLI. Permission rules can narrow what it is allowed to do |
| Writing scripts and code | Code | It matches the official definition |
| Creating slides (md → pptx) | Code (Local) | It drives PowerPoint from PowerShell. If you fix the md, you can regenerate the slides |
| Researching and summarizing official documentation | Code | Subagents research in parallel, and the results are saved in md to carry into the next step |
| First-pass incident investigation | Code | You can examine logs, metrics, and settings from your PC |
| Short questions and advice on phrasing | Chat | It uses no files and no commands |
| Gathering email and Drive content into a weekly summary | Cowork is also fine | Connectors and scheduled tasks. It does not touch internal hosts |
Infrastructure work in Code: an Ansible playbook

- Investigate: Have Claude check the inventory and the current configuration with read-only commands
- Create the playbook: Have Claude write the changes into a playbook. Compared with having it type commands directly, you can review, rerun, and keep a record
- Dry run: Check the differences with
ansible-playbook --check --diff - A human approves: Look at the differences and decide whether it is safe to run in production
- Run and verify: Run it and have Claude check the result
- Manage in Git: Keep the playbook in the repository and reuse it next time
Permission rules (Part 5) are split like this: --check is allowed (allow), running against production requires confirmation (ask), and destructive commands are denied (deny).
How to carry out this flow in Claude Code is covered in Part 2 (scope and planning), Part 6 (permission rules and Ansible configuration examples), and Part 8 (an exercise creating a chrony playbook) of the follow-up series Claude Code in Practice.
Research and work with an unclear breakdown also go to Code

- For work whose breakdown is unclear, use plan mode: have Claude first read and investigate and produce only a plan, and let it execute after a human reviews it. You have Claude think about how to divide the work itself
- For research, have subagents investigate several perspectives in parallel and receive only the conclusions. The main conversation is not filled with the details of what they looked at, so even long tasks are less likely to lose sight of the original instructions
- Save the research results in md and lead straight into slides or configuration changes (this series is also written this way: the official information is researched by subagents and the draft md is produced from it)
Plan mode and subagents are covered in detail in Part 5. Subagents increase usage, so use them only when needed (Part 3).
When Cowork fits
Even in the author’s way of working, Cowork fits in the following situations.
| Situation | Reason | Caution |
|---|---|---|
| Work by people who are not used to terminals or file layouts | The screen is simple and easy to start with | Share deliverables as files |
| Recurring work that uses connectors such as email, Drive, and Slack | Connectors and scheduled tasks are available | It cannot reach internal hosts |
| Work requested from a phone through Dispatch | Dispatch handles development work in Code and everything else in Cowork | From October 6 it runs in the cloud, so you can use it across devices |
| Work where you want to handle files in an isolated environment | It runs in an isolated environment and touches only the files and folders you give it | Do not give it important files or folders |
The official safety guide recommends using a dedicated working folder for Cowork, not connecting financial documents, credentials, or personal records, and approving important work manually.
Think about it
- List three tasks you asked Claude to do last week. Which of Chat, Cowork, and Code would each be under the official split? Which would each be under the decision flow in the author’s example?
- You tried to check the settings of an internal Linux server from Cowork, and it couldn’t connect. Why?
- When you want to reuse the way you did something across a team, what is different between Cowork and Code?
Hint: Review the sections on the official positioning, where it runs, and who you can share with.
Summary
- The official split is “if you write and run code, use Code; for creating other kinds of deliverables, use Cowork.” Chat is for conversation and brainstorming
- Code runs on your local PC, in WSL, or on the far end of SSH, so it reaches whatever your PC can reach and can use your local tools
- Cowork runs in the cloud (for new tasks on Pro and Max, from October 6) or an isolated VM, cannot reach internal or private addresses, and cannot use your PC’s tools
- In Code, the “how” stays as files and can be shared through Git. In Cowork, sessions cannot be shared, and what you can hand over is the deliverables
- For infrastructure work that involves internal servers, moving work that produces deliverables to Code is one possible approach (the author’s example)
Next time, we cover how to choose Model and Effort, which determine both usage and quality.
Update history
- November 24, 2026: Added the general availability dates of the Chat and Cowork merger for Team and Enterprise to the section on the official positioning of the three tabs
Watch the video
This part is also explained in a YouTube video (about 20 min).
All parts of the series are in the Claude Fundamentals playlist on YouTube.
The Claude Fundamentals series (6 parts)
All 6 parts with a reading guide: Claude Fundamentals
- The Big Picture of Claude and Its Plans
- Choosing Between Chat, Cowork, and Code (this article)
- Model and Effort
- Prompting Basics and Example Instructions
- Claude Code Best Practices
- Using Claude Safely
This series is the English edition of 【Claude活用入門】, originally written in Japanese.


コメント