Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin Chain SAFU CryptoTax DeFAI AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
Exploring the Frontier of AI Intelligence
claude-me.com
LATEST
OpenRouter Fusion API Launches: Three-Model Panel Nears Fable 5 Scores at Half the Cost — But Fable Itself Was Just Pulled by the US Government  ·  Getting Started with Claude Cowork: Hand a Whole Task to AI Without It Crashing at the Last Step  ·  Claude Code vs Cursor vs GitHub Copilot: Which AI Coding Tool Should You Actually Use?  ·  Turning Repeat Work into Reusable Skills in Claude: Stop Re-pasting the Same Long Instructions  ·  Build Your Own MCP Server: Safely Connect Claude to Your Internal Tools (With Permissions and Debugging)  ·  Claude Code Getting Started: Complete Flow from Installation to Your First Real Task
tools

Claude Code Getting Started: Complete Flow from Installation to Your First Real Task

30-Second Version · For the impatient
Claude Code's most underrated feature for new users: CLAUDE.md. Place a CLAUDE.md file in your project root with tech stack, directory structure, code style, common commands — Claude Code automatically reads it every launch. Without it, Claude Code re-'feels out' your codebase every time. With it, every session starts like an assistant already familiar with your project.

Full Explanation +
01 · Why did this happen?

What's the fundamental difference between Claude Code and claude.ai's Artifacts? When should I use which?

Artifacts (claude.ai interface): runs in sandbox, can't access local files, can't install packages, can't run your real code. Good for: quick code prototypes, logic demonstrations, small tool quick previews.

Claude Code (command line): runs in your real dev environment, can read your entire codebase, install packages, run tests, directly modify files. Good for: real development tasks — debug, refactor, write tests, analyze entire projects.

Selection guide: just want to quickly see code effect or prototype an idea → Artifacts. Any meaningful work in your real codebase → Claude Code.

Practical example: 'write me a sorting function' → Artifacts is enough. 'Find out why my sorting behaves abnormally with duplicate values and fix it' → Claude Code (needs to read your code, possibly run your tests).

02 · What is the mechanism?

When Claude Code executes tasks, how do you ensure it doesn't make unwanted changes?

Built-in mechanisms: for all side-effect operations (create/modify/delete files, run terminal commands, install packages), Claude Code defaults to showing what it plans to do and waiting for your confirmation before executing. This lets you review each impactful step.

Your protections: most importantly, work under Git control. Before each batch of changes: ensure git status is clean. After Claude Code finishes: use git diff to carefully review all changes, git commit once confirmed; git checkout . to revert in one second if unsatisfied.

Use /permissions command to check and adjust Claude Code's operation permissions.

For complex tasks, use 'tell me what you plan to do, don't execute' mode to get a plan first, then execute after confirming it's reasonable.

Practical habit: after each meaningful sub-task (e.g., 'tests written'), do a git commit with a clear description. Gives you a clear progress record; any step that goes wrong can be precisely reverted.

03 · How does it affect me?

How do you control Claude Code API Key costs? Is there an estimation method?

Rough estimates: small task (fix a bug, read 2-3 files): $0.05-0.20; medium task (write test suite, read 5-10 files): $0.20-0.80; large task (refactor a module, read 20+ files): $1-5.

Cost control methods: specify file scope — don't let Claude Code read the entire codebase; tell it 'only look at files in src/auth/ directory.' Regularly use /clear to reset context — long conversations accumulate costs faster. Set monthly spending limit in console.anthropic.com.

Usage monitoring: type /cost at end of Claude Code conversation to see cost statistics for that session.

Claude Pro users: if you have Claude Pro, preferably log in via claude.ai account (included in subscription); only switch to API Key when Pro usage limit is exhausted.

04 · What should I do?

What advanced Claude Code features are worth exploring after mastering the basics?

Subagents: spawn multiple child Claude Code instances in parallel from main instance. Example: 'simultaneously analyze three modules of this codebase, each finding potential performance issues' — three child agents run in parallel, much faster than serial.

MCP Integration: connect GitHub, Jira, databases, and other tools via MCP. Example: 'find all open bug-related Issues on GitHub, sort by priority, then start fixing from highest priority' — Claude Code autonomously executes the entire flow.

Headless mode: claude --print "your task" runs Claude Code non-interactively. Good for CI/CD integration or automation scripts.

Plan mode: output a complete execution plan before any operations; you review and approve before execution. Especially useful for high-risk operations.

Recommendation: explore these after you're comfortable with basic task execution and Git workflows.

Full Content +

Claude Code is a command-line AI agent that reads, modifies, and executes your code directly in the terminal. Unlike claude.ai's chat interface, Claude Code can directly operate on your local files — reading entire codebases, finding bug root causes, writing tests, refactoring code — without copy-pasting.

Before Installation

Requirements: Node.js 18+; macOS, Linux, or Windows (WSL2 recommended); Anthropic API Key or Claude Pro/Max subscription. Cost: Claude Pro ($20/month) includes Claude Code with usage limits; API Key users pay per token (~$0.10-0.50 per coding conversation depending on complexity).

Installation (5 minutes)

Run: npm install -g @anthropic-ai/claude-code. Launch with claude. First launch asks you to authenticate via Claude.ai account or API Key. Verify success: run claude in any directory and see the interactive prompt (`>`).

Your First Claude Code Task

Start with a medium-difficulty task from your real codebase. Good first tasks: fixing a known bug, writing tests for existing code, refactoring a complex function.

For 'writing tests' example: navigate to project → run `claude` → describe the task: 'Write unit tests for all functions in src/utils/formatter.js using Jest, place test files in tests/utils/.' Claude Code reads the file, analyzes each function, and starts writing tests — showing each step.

CLAUDE.md: Key Setup for Your Codebase

Create a CLAUDE.md file in your project root with: tech stack, project structure, code style guidelines, common commands, special configurations. Every Claude Code session automatically reads this — no need to re-explain context each time.

Five Habits for More Effective Claude Code Use

Describe outcomes not steps. Use /clear to reset context between tasks. Work under Git tracking (git diff to see changes, git checkout to revert). Use /compact to compress long conversations. For complex tasks, ask for a plan before execution.

Diagram
Claude Code 工作流程:從任務到執行的五個步驟橫向流程圖展示 Claude Code 的標準工作循環:你輸入任務 → Claude Code 讀取代碼庫相關文件 → 制定執行計畫並徵求確認 → 執行操作(修改文件/執行指令)→ 你審閱 git diff 確認改動,每個步驟標注你和 Claude Code 各自的角色。Claude Code Workflow — Five Steps1. YouDescribe taskin plain language2. ReadClaude Code readsrelevant files + CLAUDE.md3. PlanShows planawaits your approval4. ExecuteModify filesrun commands5. Reviewgit diffcommit or revertKey Setup: CLAUDE.md in Project RootWhat to write:• Tech stack (language, framework)• Directory structure overview• Code style guidelines• How to run tests / buildWhy it matters:• Auto-loaded every session• No re-explaining context• More relevant responses• Works across all tasksQuick commands:/clear — reset context/compact — compress history/cost — view session cost/permissions — check accessClaude Me · claude-me.com
Feel free to share. Please credit the source.
Ask a Question
Please enter at least 10 characters
Related Articles
Claude Code Complete Guide: From Installation to Advanced Workflows, All in One Place
tools · Jun 08
Getting Started with Claude Cowork: Hand a Whole Task to AI Without It Crashing at the Last Step
tools · Jun 15
MCP Quick Start: Connect Claude Desktop to Your Google Drive in Five Minutes
mcp · Jun 14
Claude Code Honest Review: Three Months of Real Developer Use
reviews · Jun 02
Related News
More Related Topics