[Claude Fundamentals Part 2] Choosing Between Chat, Cowork, and Code: Where Each Runs and What It Reaches, Differences in Settings, Sharing, and Records, and Moving Infrastructure Work to Code

Claude Fundamentals Part 2 Choosing Between Chat, Cowork, and Code: Where Each Runs and What It Reaches, Differences in Settings, Sharing, and Records, and Moving Infrastructure Work to Code Generative AI

“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

TabOfficial descriptionIntended users
ChatConversation. Questions, brainstorming, and short exchanges. For when the output is “your own thinking”Everyone
CoworkDispatch and longer agentic work. Creates deliverables for other people across multiple files and tools. Scheduled runs are also possibleKnowledge workers who are not developers
CodeSoftware developmentDevelopers. 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

Diagram showing that Dispatch in the Cowork tab, which receives requests (for example from a phone), sends development work (fixing bugs, running tests, updating dependencies, pull requests) to Code and keeps everything else (research, editing documents, spreadsheets) in Cowork, and that the official position is Code for writing and running code and Cowork for creating other kinds of deliverables
  • 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

CodeCowork
Where it runsYou 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 infrastructureOn 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 handleThe project folder you chooseOnly the folders and files the user connects
After you close the appLocal stops. Cloud continuesPC 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.

Diagram showing that Code's Local, WSL, and SSH sessions use tools such as Ansible, AWS CLI, PowerShell, and WSL on your local PC as they are and can reach internal and home servers and cloud APIs, whereas Cowork runs in the cloud from October 6 (tasks started earlier on a PC run inside a dedicated Linux VM); Claude's commands and connected folders live in an isolated environment where tools installed on your PC cannot run, traffic goes through an allowlist proxy so internal and private addresses are not reachable, and work on internal servers or with your PC's tools can only be done in Code
  • 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

CodeCowork
Settings it loadsThe same settings files as the CLI: CLAUDE.md, .mcp.json, hooks, Skills, and the permission rules in settings.jsonThe “Customize” settings of your claude.ai account (Skills, plugins, connectors). It does not read the CLI’s ~/.claude
Sharing settingsThey are files, so you can distribute them through Git or a shared folderSettings are per account
Permission checksManual, 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

Diagram showing that in Code, CLAUDE.md, Skills, scripts, and playbooks are shared through Git or shared folders so teammates or your future self can reproduce the same steps, and conversation logs stay on your PC (~/.claude/projects/, 30 days by default); in Cowork, sessions cannot be shared with other people and only deliverables (files and Artifacts) can be handed over; Code keeps the how as files, and Cowork can hand over only deliverables
  • 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

CodeCowork
DeliverablesRemain as files and diffs in the repository or folder. You can follow the history with GitFiles in the connected folder, or Artifacts
Conversation logsStored 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.

Diagram showing three reasons for moving infrastructure work to Code: (1) it runs in Local, WSL, or SSH, so Ansible playbooks can be run against Linux and Windows servers and it reaches internal and home servers (not reachable from Cowork's environment); (2) CLAUDE.md, Skills, and playbooks are shared through Git so the next person can reproduce the same steps; (3) CLAUDE.md, permission rules, and Skills work as they are in both the terminal and the desktop app; and that this is the author's own approach, which differs in part from the official split

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.

Decision flow diagram: Chat for just getting an answer or brainstorming; Code (Local, WSL, SSH) when using internal servers, the cloud, or local tools; Code when you want to keep deliverables as files and share and reuse them with a team; Code for research or work whose breakdown is unclear; Cowork is also possible when the work centers on a browser or connectors and does not touch internal hosts; and when in doubt, use Code

Task-by-task cheat sheet (the author’s example)

TaskWhat to useWhy
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 codeCodeIt 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 documentationCodeSubagents research in parallel, and the results are saved in md to carry into the next step
First-pass incident investigationCodeYou can examine logs, metrics, and settings from your PC
Short questions and advice on phrasingChatIt uses no files and no commands
Gathering email and Drive content into a weekly summaryCowork is also fineConnectors and scheduled tasks. It does not touch internal hosts

Infrastructure work in Code: an Ansible playbook

Diagram showing the flow of (1) investigate (read-only), (2) create the playbook, (3) --check --diff, (4) a human approves, (5) run and verify, (6) manage in Git, and an example of permission rules (settings.json): allow permits ansible-playbook --check, ask confirms runs against the production inventory, and deny blocks destructive commands
  1. Investigate: Have Claude check the inventory and the current configuration with read-only commands
  2. 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
  3. Dry run: Check the differences with ansible-playbook --check --diff
  4. A human approves: Look at the differences and decide whether it is safe to run in production
  5. Run and verify: Run it and have Claude check the result
  6. 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

Diagram showing that a vague request is turned into a plan in plan mode and reviewed by a human; during execution, subagents research perspectives A, B, and C in parallel, and the conclusions are saved in md and lead into slides (pptx) or configuration changes
  • 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.

SituationReasonCaution
Work by people who are not used to terminals or file layoutsThe screen is simple and easy to start withShare deliverables as files
Recurring work that uses connectors such as email, Drive, and SlackConnectors and scheduled tasks are availableIt cannot reach internal hosts
Work requested from a phone through DispatchDispatch handles development work in Code and everything else in CoworkFrom October 6 it runs in the cloud, so you can use it across devices
Work where you want to handle files in an isolated environmentIt runs in an isolated environment and touches only the files and folders you give itDo 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

  1. 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?
  2. You tried to check the settings of an internal Linux server from Cowork, and it couldn’t connect. Why?
  3. 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

  1. The Big Picture of Claude and Its Plans
  2. Choosing Between Chat, Cowork, and Code (this article)
  3. Model and Effort
  4. Prompting Basics and Example Instructions
  5. Claude Code Best Practices
  6. Using Claude Safely

This series is the English edition of 【Claude活用入門】, originally written in Japanese.

コメント

Copied title and URL