Claude Code is the most mature terminal agent of 2026: skills, hooks, project memory, work with entire repositories. A guide from zero to your first working session: installation, a rules file, discipline, a typical workday.
Installation and the first launch
npm install -g @anthropic-ai/claude-code
cd my-project
claude # interactive session
claude "fix the failing test" # a one-line task
claude --resume # continue the last sessionRequirements: Node.js, an Anthropic account with a subscription (Pro/Max) or an API key. Regional access from Russia — via a VPS with a static IP and reliable payment; anti-ban discipline is covered in the access rules.
Step 1: the project rules file
Before the first task — a CLAUDE.md in the project root. Five short paragraphs: goal, stack, prohibitions, working format, privacy. An example of a live file:
# Project: marketing dashboard
## Stack
React + TypeScript, FastAPI, Postgres. Do not change without discussion.
## Rules
- Minimal code changes outside the current task.
- Secrets stay in .env only; keys are never pasted into prompts.
- Tests are mandatory: npm test before delivering a stage.
## Format
Plan before code. After a stage — a diff and a short summary.The file is created with the agent’s own help: “ask me questions about the project and assemble a CLAUDE.md” — it will pull out requirements you would have forgotten yourself. The complete memory system (skills, hooks, updates) is in the guide on CLAUDE.md and skills.
Step 2: the first session — discipline
- One task — one session. Do not mix features and debugging.
- Plan before code: “show the plan and ask clarifying questions” — you confirm — then you allow it to write.
- Checkpoint before and after: a git commit before the session and after an accepted stage.
- Findings into the rules: at the end — “update CLAUDE.md with what we learned”.
git add -A && git commit -m "checkpoint before the session"
claude
# ... work ...
git add -A && git commit -m "stage 1 done"Step 3: a typical workday
Morning — the session for task 1 with a clear head and the rules file. Midday — tasks 2 and 3 in separate sessions. Between them — findings into files, checkpoints. Evening — a final session to “collect the day’s findings into CLAUDE.md”. This rhythm keeps sessions in the working zone of 200–300K context with a live cache — the economics are described in the material on session discipline.
Extensions that make the agent a grown-up
- Skills: .claude/skills/name/SKILL.md — repeatable processes (a release, a report) are executed literally.
- Hooks: interceptors in the settings — enforcement against destructive commands.
- MCP connectors: access to external services with minimal permissions.
- Spec-based plans: Compound Engineering — decomposing issues → specs → workers, for long projects.
Each extension is a separate step of maturity; do not enable everything at once. The learning order and the Cowork levels are covered in the agent materials.
Mistakes of the first weeks
Most disappointment with a terminal agent comes not from the tool’s limits but from repeated startup mistakes. The list is drawn from the practice of first projects: check your first week against it before random missteps become habits.
- Living in one session for days. Context grows past the working zone of 200–300K, the cache gets more expensive, and requirements from different tasks mix together; the right rhythm is one task, one session, a checkpoint after each accepted stage.
- Formulating tasks vaguely. “Improve the code” without a rules file produces random edits; a concrete task plus a CLAUDE.md narrow the agent’s actions down to a predictable plan. The more precise the wording, the shorter the path to an accepted diff.
- Skipping the checkpoint before a session. Without a git commit before the start, rolling back a failed attempt turns into manual archaeology across files and diffs. Two git commands before and after are cheap insurance against an hour of rollback.
- Accepting code without a confirmed plan. The “plan before code” point exists exactly for this: a confirmed plan is a contract, edits without one are a lottery. A plan nobody agreed on is cheaper to fix before the code than after.
- Starting without a rules file. The agent does not know the project’s stack and prohibitions; the very first edits go against conventions, and time goes into rework. An hour spent on a CLAUDE.md pays for itself by the second session.
- Enabling all extensions at once. Skills, hooks, and MCP connectors are learned one at a time: in a mixed setup you cannot see what exactly broke. One extension per week is the pace at which each one becomes a habit.
Every mistake is treated with the same discipline from the guide: a rules file, a plan before code, checkpoints, separate sessions per task. Running through the list before the first task takes ten minutes — cheaper than a week of rework and lost evenings.
Frequently asked questions
CLI or IDE agent? CLI for tasks and repositories, IDE for a stream of edits; the applicability matrix is in the comparison of the two forms.
How much does it cost? Subscriptions from $20 (Pro) to $200 (Ultra with no usage windows); the SDK trap and the window diary are in the pricing breakdown.
Does it write Russian texts? Yes, the top tier of models does it cleanly; language rules are fixed in CLAUDE.md.
Is giving file access dangerous? With hooks on destructive actions the working risk is acceptable; without them — no.
Do you need git to work with the agent? Practically yes: checkpoints before and after a session are the backbone of the discipline, and stage diffs are what you review instead of reading every line. Without a repository, rolling back a failed experiment turns into manual work.
What if the agent broke working code? Roll back to the checkpoint from before the session, then analyze the cause: the task was vague, the rules file was incomplete, or the plan was not confirmed. The lesson is recorded in CLAUDE.md — repetition is prevented by editing the rules, not by hoping memory will hold.
Can you work with an API key instead of a subscription? Yes: paying per token instead of a fixed plan. For rare sessions a key is more convenient; for daily work a subscription is usually cheaper. The economics of the plans and the SDK trap are covered in a separate material.
How many projects can you run in parallel? The rules file lives in the root of each repository, and the agent picks it up when launched from the project folder. A separate session per project follows the same principle as a separate session per task; mixing two projects in one conversation is not worth it.
An hour on the rules file plus session discipline — and Claude Code turns from “a chat in a terminal” into an engineering tool with memory. The guide reflects the practice of fall 2026.
