Claude Code tutorial
Start a safe Claude Code session in an existing repo—context, commands, and review habits.
GuideWebsites, apps, and software built with AI—you own the code.
Short answer
Claude Code is Anthropic’s terminal-first coding agent; Cursor is Anysphere’s IDE with inline agent edits. Pick Claude Code when work is scripted, SSH-heavy, or batch-shaped. Pick Cursor when engineers live in a GUI diff review loop. Many teams use both; neither replaces tests, specs, or human approval on production paths.
Both products help you edit a repository with AI; they differ in where the agent runs and what context arrives by default. This guide is workflow comparison—not a scorecard. For delivery help, see Claude Code development and website development.
Claude Code is Anthropic’s agent oriented around a terminal in your repo. Official docs live on code.claude.com. You steer with prompts, file references, and tool use; output lands as ordinary git diffs.
Cursor is an IDE from Anysphere with agent chat, inline edits, and project rules documented at cursor.com/docs/rules. Engineers see changes in the same UI they use for manual edits.
Neither product is a substitute for architecture decisions, compliance review, or your merge gate. PunkSolid’s methodology treats both as draft engines.
Teams already on SSH-heavy workflows, remote build boxes, or automation pipelines often add Claude Code when they want an agent that behaves like a contractor in the tree without opening a GUI.
Batch refactors—import path renames, mechanical test updates, codemods too messy for a one-shot script—can run as a bounded Claude Code session with a written spec. The terminal session log becomes part of the audit trail.
Claude Code’s risks mirror any shell-capable agent: unscoped commands, lockfile drift, and edits outside the task. Pair it with AGENTS.md verify commands and deny lists for infra directories.
Product engineers who live in visual diffs, breakpoints, and multi-file review usually move faster in Cursor for feature work. Project rules under .cursor/rules/ encode habits—git safety, canonical URL policy, test commands—so the agent does not improvise organization norms each session.
Cursor also fits mixed-skill teams: designers and PMs can inspect hunks without reading terminal scrollback. Optional 1:1 Cursor coaching helps after handoff.
Claude Code governance is environmental: which directories are writable, which commands require human approval, whether the agent may touch CI or production config. You implement that in scripts, container sandboxes, or policy docs—not only in chat reminders.
Cursor governance is repository-local: rules files, .cursorignore, and team norms about when to accept multi-file agent proposals. Rules set habits; they do not replace acceptance tests for large features.
For a neutral view of adjacent categories (PR bots, chat-only assistants), read AI coding agents compared.
Many PunkSolid deliveries use Cursor for implementation and Claude Code for a scoped migration slice—for example, regenerating thousands of content files after a schema change while humans review templates in the IDE.
The important part is a single verify command (pnpm test, pnpm validate, or your stack’s equivalent) that both tools must respect. Mixed-vendor teams should document which directories are Claude Code–eligible in AGENTS.md and which require IDE-only edits.
Confirm seat counts, data handling, and allowed repositories against each vendor’s current terms before you standardize. PunkSolid does not resell licenses; clients bring appropriate Claude Code and Cursor access.
Agents can exfiltrate secrets if you paste them or if rules are weak. Keep credentials out of rules and chat. On regulated sites, human review remains mandatory for patient-facing or financial copy—whether the diff came from Claude Code or Cursor.
For rescue work on repos that were “vibe coded” without gates, see AI code review.
New to Claude Code? Start with our Claude Code tutorial. Tuning IDE behavior? Read the Cursor rules guide. Building repo norms for any agent? Use the AGENTS.md guide.
If you need production delivery—not just tooling comparison—scope Claude Code development or general website development with your compliance constraints on the contact form.
When designers stay in Figma and engineers split between terminal and IDE, document where each role lands changes. A common pattern: product specs in a ticket, Claude Code for repository-wide search-and-replace behind a feature flag, Cursor for component work and Storybook or visual review. Daily standups should reference the same branch name and verify command output—not which vendor was “faster.”
Train reviewers to read diffs for intent, not authorship. A multi-file Cursor accept and a Claude Code patch series both need the same security pass on auth and payments.
Vendor pricing and context limits change frequently; verify on official sites before budgeting. Terminal sessions sometimes encourage larger single prompts; IDE sessions encourage smaller iterations. Neither replaces trimming scope in your spec.
Long monorepos may need explicit “read only these packages” instructions regardless of tool. That belongs in AGENTS.md and rules, not in ad hoc chat each morning.
Some clients forbid cloud retention of agent transcripts. Others require redacted logs for SOC reviews. Decide policy before you grant contractors either tool. Mixed tooling does not relax the policy—both can touch PHI or secrets if rules are weak.
For agencies, state in MSAs whether subcontractors may use Claude Code or Cursor on client orgs and whether client-provided API keys are required.
Over-broad refactors without tests; “helpful” dependency upgrades; silent edits to redirect tables; duplicated canonical tags after partial template migrations. AI code review often finds the same patterns whether the repo history shows Cursor or Claude Code commits.
Prevention is cheaper: one verify command, branch protection, and migration inventories signed before DNS.
PunkSolid ships Astro and Next marketing sites, Medusa-backed storefronts, and static site networks with mirror canonicals—work shaped heavily in Cursor. Claude Code appears when scripted refactors or content generation batches fit the task. See custom software development for scope outside marketing sites.
The PunkSolid network build case study describes how this repository enforces content quality gates while agents draft pages—useful when your leadership asks whether “AI coding” can coexist with SEO discipline.
High-level contrast as of November 2026 (confirm features against each vendor site before procurement).
| Claude Code | Cursor | |
|---|---|---|
| Primary interface | Terminal session in the repository | Desktop IDE with chat and inline diffs |
| Context | Files and tools you attach; agent reads via CLI tools | Open files, codebase index, project rules under .cursor/ |
| Governance | Shell and tool policies you define in the environment | Workspace rules, ignore files, and review UI in the editor |
| Typical fit | Batch refactors, remote servers, scripted agent loops | Day-to-day feature work, visual review, tight edit-test cycles |
| Handoff surface | Git diffs and terminal logs | Git diffs and IDE checkpoints |
Migrations need redirect maps, tests, and human sign-off. Cursor fits template and component work in a GUI; Claude Code fits scripted tree refactors. Scope the task, not the brand.
No. You hold vendor licenses. See [Claude Code development](/services/claude-code-development/) for how we deliver with your accounts.
Both can touch production code. Pair tooling with [spec-driven development](/guides/spec-driven-development/), branch protection, and review on regulated pages.
Yes. Claude and Claude Code are Anthropic trademarks; Cursor is an Anysphere trademark. This page uses them nominatively to compare workflows. PunkSolid is not affiliated with either vendor.
Cursor is a trademark of Anysphere, Inc. Claude Code is a product of Anthropic. PunkSolid is not affiliated with either company.
Send the site, the stack, and the deadline. We reply with questions, risks, and a proposed first step.
Start a safe Claude Code session in an existing repo—context, commands, and review habits.
GuideProject rules and skills that steer IDE agents—scope, tone, and test discipline.
GuideProduction delivery using Claude Code alongside human architecture review, tests, and full repository handoff.
ServiceAgents as loops of observe, act, and verify—plus where they fail without engineering discipline.
Guide