Everything Claude Code: Install, Sandbox, Parallel Sessions
Key takeaways
- Claude Code is Anthropic's terminal coding agent that reads your repo, edits files, runs tests, and commits from a single goal prompt.
- Run parallel sessions safely by giving each agent its own git worktree and container, keeping .env, SSH keys, and cloud credentials outside the sandbox.
- Permission modes stop accidental damage but are not real isolation; unattended runs need a restrictive mode inside an actual sandbox boundary.
- A shared board where agents claim cards and leave handoff notes prevents two sessions from picking up the same task.
- Switch to Cursor, Codex, or Copilot when you mostly edit single files, since Claude Code pays off mainly with three or more parallel sessions.
Everything Claude Code: Install, Sandbox, Parallel Sessions, and When to Switch
Everything Claude Code, in one guide: installation, sandboxing, and the daily workflow for running three or more agent sessions in parallel with git worktrees and a shared board, plus a decision framework for when Cursor, Codex, or Antigravity fits better. It assumes a CLAUDE.md, tests, and some task setup already.
What is Claude Code and what is an agent in AI, in plain terms?
Claude Code is Anthropic's terminal coding agent: you type a goal in your shell, it reads your repo, edits files, runs commands and tests, and commits when the work is done. Setup is a single install, per the official Claude Code documentation.
What an agent actually does in a loop
An agent is a model running a loop: look at the task, take an action (edit, run, search), observe the result, repeat until done or blocked. No magic, no autonomy beyond the tools you grant it. That loop is why parallel sessions work at all: each one is independent, which is also why they know nothing about each other unless you give them a shared board or file.
Why Claude Code is terminal-first
Terminal-first means it fits the workflow you already have: git worktrees, a CLAUDE.md, your test suite, your editor's diff view. You can run three sessions in three tabs and review each git diff in the morning. For how to point one at a shared task board, see KanbanMCP's Claude Code guide.
How do you set up Claude Code step by step?
Install and authenticate
Install with npm install -g @anthropic-ai/claude-code, then run claude inside a repo and complete the browser login. You can auth with a Claude subscription or an Anthropic API key; pick one and stick with it so billing stays predictable across parallel sessions. Do this once per machine, not per project.
Write a CLAUDE.md that agents actually follow
Keep CLAUDE.md short: build commands, test commands, conventions, and what never to touch. Every agent session reads it, so a stale instruction poisons all three of your running sessions at once. Anything project-specific and long belongs in separate docs that CLAUDE.md points to, not in the file itself. If you run several agents across repos, a shared board like KanbanMCP keeps the handoff notes outside git entirely, so each worktree stays clean.
First run on a real repo
Start in a scratch branch or a git worktree, never main. Give it one small task, watch the diff, and run the tests yourself before accepting. Correct it once, then fold that correction back into CLAUDE.md so the next session inherits it.
How do you run Claude Code in a sandbox safely?
Permission modes vs real isolation
Claude Code's permission modes control what the agent may do without asking: default mode prompts per command, acceptEdits auto-approves file changes, and bypassPermissions skips prompts entirely. That is convenience, not containment. A prompt-based permission system stops accidental damage; it does not stop a confused or injected agent that decides to delete files or push to the wrong remote. Anthropic's own guidance treats sandboxing as a separate layer from permissions (Claude Code security docs). For unattended runs, use both: a restrictive mode inside a real boundary.
Container and devcontainer options
The practical setup is a devcontainer or Docker container per agent session, with the repo mounted as the working directory and credentials kept outside. Pair each container with its own git worktree so parallel sessions never touch the same checkout. This is the same pattern that makes multi-agent boards work: one card, one worktree, one container (see how we map this for VS Code Copilot in GitHub Copilot (VS Code) | KanbanMCP).
What to never leave writable
Keep .git/ read-only if the agent should not commit unreviewed, and never mount .env, SSH keys, cloud CLI credentials, or your global config directory. Give the container its own git identity so a stray push is traceable. Everything else (source, tests, CLAUDE.md) can stay writable, because a sandboxed agent that cannot run your tests is not worth running.
What does day-to-day Claude Code usage actually look like?
A typical day runs three parallel sessions: one per worktree, each working from a card on a shared board. You start the morning with git diff on what the agents finished overnight, then review, merge or reject, and pull the next cards into the empty lanes. The board, not your chat history, is the system of record.
One worktree per session. Each agent gets its own checkout under .worktrees/, its own branch, and its own test run, so two sessions never edit the same files at the same time. Sessions stay disposable: if a run goes sideways, you kill it and the worktree goes with it, and the only cleanup is deleting a directory. Nothing lives only in a chat window, because a project that exists only across chats becomes hard to recover a week later, and the agent's context dies with the tab. The worktree is also your review unit: one branch, one diff, one card, so the morning review is a git diff per lane rather than an archaeology project across three chat histories. If a session produces something worth keeping but not worth merging, commit it to a scratch branch and move on.
Claiming cards and leaving handoff notes. This is the part home-made setups struggle with. When three agents pull from the same backlog.md file at once, two of them pick up the same task and you find out from a merge conflict. A board where an agent claims a card fixes the race: the card is taken, the other agents pick the next one. The handoff note matters just as much.
The finishing agent writes what it did, what it left broken, and what the next session needs to know, directly on the card. The next agent reads the card, not a 200-line chat scrollback. If you run Claude Code alongside other tools, the same pattern holds across them; KanbanMCP's Claude setup page shows the wiring for one agent, and the same claim-work-note loop applies to every session you run. You watch the lanes and steer from the same board the agents read.
Reviewing the morning git diff. Human review stays in git, where it belongs. Each card maps to a branch, so the diff is the truth and the note is the context. Read the note, skim the diff, run the tests, merge or send it back with a comment on the card.
How do you coordinate Claude Code with your other agents?
Once you run three or more agent sessions in parallel, the question stops being "how do I prompt Claude Code?" and becomes "where does the work live?" Chat sessions are disposable; if a project only exists across chats, you cannot recover its context a week later. Keep tasks in a system of record and let each session read from it and write back.
System of record vs working memory
Your CLAUDE.md holds standing instructions, not tasks. Tasks belong on a board each agent can claim: an agent picks up a card, does the work, and leaves a handoff note for the next session. You steer from the same board and check the git diff in the morning.
Board options compared
| Tool | Shape | Best fit |
|---|---|---|
| Vibe Kanban | Direct competitor | Managing parallel coding agents |
| Taskmaster | Adjacent | Task lists driven from a PRD |
| backlog.md | Status quo | Simple file-based board with a web UI |
| KanbanMCP | Hosted board via MCP | Mixed-tool agents claiming cards with handoff notes |
Running KanbanMCP through the same criteria
KanbanMCP is built for exactly this: agents claim a card, work in a worktree, and leave a note the next agent reads, regardless of which tool ran the session. The honest caveat: it assumes you want a hosted board rather than files in your repo, which some developers prefer. Claude Code pricing itself is per Anthropic's subscription plans, so the board is a separate, small decision.
What are the best Claude Code alternatives and when should you switch?
Switch triggers
Claude Code earns its keep when you run three or more parallel sessions, work from worktrees, and lean on a CLAUDE.md plus tests as your guardrails. If you are mostly editing single files with quick completions, you are paying for coordination you are not using. Switch when the cost of context handoffs between tools exceeds the value any single tool gives you.
Where each alternative wins
Cursor fits developers who want tight in-editor iteration: hover, refactor, run tests, repeat, without leaving the buffer. Codex suits scripted or batch work where you fire a task and read the git diff in the morning. GitHub Copilot wins on low-friction inline suggestions inside an editor you already keep open. Antigravity and similar agentic IDEs suit builders who want the agent to own longer stretches of a task with less steering.
Honest criteria for any of them, including our own KanbanMCP: does it survive a week of real parallel sessions, does handoff state live somewhere you can read, and does human review stay in your hands? If a tool fails the third test, it fails.
How does Claude Code fit into a UI and UX developer's workflow?
Claude Code is strongest on the code side of UI work: refactoring components, wiring state, writing tests, and grinding through repetitive prop plumbing across a component library. Point it at a design token file or a component spec in your CLAUDE.md and it will follow your conventions without re-explaining them every session. Where it falls short is anything that needs eyes. Claude Code has no sense of what a layout looks like rendered, so "make it feel less cramped" is a prompt it will guess at. The workable pattern is a visual review loop: let the agent build the component, run it yourself in the browser, then feed back concrete diffs (spacing values, breakpoints, specific states) rather than adjectives. Treat it as a fast implementer with no taste, and keep the judgement calls in your own review pass.
Where can you find the everything claude code GitHub resources and C code examples?
Start with the repos you already trust: the Claude Code docs repo, dotfiles collections where people share their CLAUDE.md, and prompt libraries that grew out of parallel sessions. Copy one file at a time into your own setup rather than adopting a whole starter kit, so you know what each line does.
For C code examples, ask for a compilable snippet plus the exact build command: "Write a C program that reads a CSV and prints column sums. Give me the gcc command and the expected output." Then run it in a worktree and let the tests decide.
When you outgrow hand-written handoff notes, a board built for agents doing the claiming helps. That is the problem KanbanMCP takes on: cards, notes for the next session, and you reviewing the git diff in the morning.
FAQ
Is Claude Code free to use, and what does it cost per month?
Claude Code itself is free to install, but you pay for usage. You authenticate either with a Claude subscription plan or an Anthropic API key, and billing follows whichever you pick. Pick one and stick with it, because running three parallel sessions on mixed auth makes costs unpredictable. Check Anthropic's pricing page for current plan rates.
Can I run multiple Claude Code sessions at the same time on one machine?
Yes, and it is the core workflow this guide recommends. Give each session its own git worktree, its own branch, and ideally its own container, then pull tasks from a shared board so two agents never claim the same card. Three sessions in three tabs is a normal day; review each diff in the morning.
Does Claude Code work on Windows or do I need WSL?
Claude Code is a terminal tool, so on Windows the practical route is WSL, where it gets a real Unix shell, git, and your normal toolchain. If your stack already runs inside a devcontainer or Docker, you can run the agent there instead, which doubles as your sandbox boundary and keeps credentials outside the container.
How is Claude Code different from using the Claude app or Claude Desktop?
The Claude app is a chat interface; Claude Code is an agent that acts on your repository. It reads files, edits them, runs commands and tests, and commits, looping until done or blocked. It also runs unattended in parallel sessions, which a chat window cannot do. Chat history is disposable; Claude Code works from your repo and a task board.
Do I need a CLAUDE.md file for every repo?
Yes, one per repo, because every session in that repo reads it. Keep it short: build commands, test commands, conventions, and what never to touch. Anything long belongs in separate docs it points to. A stale instruction poisons every running session at once, so fold corrections back into it after each review.