Claude Code in the Terminal: Agentic Coding Workflows for Developers

Claude Code runs in your terminal and turns plain-English tasks into code changes. Install it, run your first session, and build a workflow that works.

By Galactic News Editorial · Published 2026-11-16T13:47:22+00:00 · Updated 2026-11-16T13:47:22+00:00

Claude Code tutorial for developers using the terminal

Claude Code in the Terminal: Agentic Coding Workflows for Developers

Claude Code is Anthropic's agentic coding tool that runs in your terminal. It reads your codebase, edits files, runs commands, and works with Git, all from a chat prompt in your project folder. This tutorial takes you from installation to a productive daily workflow, with the commands and habits that matter.

The short answer is simple. Install it with the native installer, run claude in a project folder, sign in, and describe a task in plain English. Review every proposed change before it lands. That review step is the whole job.

What Claude Code Is, and What It Is Not

Claude Code is not an IDE plugin, a tab-completion engine, or a chatbot sidebar. It is an agentic tool: you give it a task, it explores the repo, proposes changes, runs tests, and shows you the result. You decide what lands.

It runs on several surfaces: the terminal, IDE extensions, a desktop app, and the web. The terminal is the most complete version, and it is the focus of this tutorial. Most surfaces need a Claude subscription or an Anthropic Console account. The free claude.ai plan does not include Claude Code.

What can it do? Build features, fix bugs, write tests, refactor code, explain unfamiliar code, and manage Git workflows. It understands your entire codebase, not just the file you have open. It can work across many files and tools in a single session.

What can it not do? It cannot know your product judgement, your team's conventions, or your production risks unless you tell it. It cannot guarantee its code is correct. It can write a plausible-looking bug as fast as a correct fix. Your review is the safety net.

Claude Code Tutorial: Install It in the Terminal

Anthropic recommends the native installer. It needs no Node.js, and it updates itself in the background. Run the command for your system, then open a new terminal window.

On macOS, Linux, or WSL, run:

curl -fsSL https://claude.ai/install.sh | bash

On Windows PowerShell, run:

irm https://claude.ai/install.ps1 | iex

When the installer finishes, open a new terminal window and check the install:

claude --version

A working install prints a version number. If your shell answers with a command-not-found error, the install folder is not on your PATH yet. Add the install folder, usually ~/.local/bin, to your PATH and open a new window.

System requirements are modest. Anthropic lists macOS 13.0 or later, Windows 10 1809 or later, Ubuntu 20.04 or later, Debian 10 or later, and Alpine Linux 3.19 or later, with 4 GB of RAM and a standard shell such as Bash, Zsh, or PowerShell.

Move into a project folder and start it:

cd your-project
claude

On first use, Claude Code asks you to log in with your Claude account. If you have set the ANTHROPIC_API_KEY environment variable and you approve the key when asked, it skips the login prompt.

Pricing is separate from the install. Claude Pro costs $20 a month billed monthly, or $17 a month billed annually, per Claude's pricing page as reported in October 2026. Max plans cost more and include higher usage limits. Console accounts are billed at standard Claude API rates instead.

Your First Session, Step by Step

Start small. Pick a task you understand well, so you can judge the result. A good first task is a small bug fix or a short feature with clear acceptance criteria. A bad first task is a large refactor of code you have never read.

  1. Open a terminal in the project folder and run claude. The prompt shows the version, the current model, and the working directory.
  2. Describe the task in plain English. Say what you want, where it lives, and how you will know it works. Example: fix the login form so an empty email shows an error instead of submitting.
  3. Let it explore. Claude Code reads the files it needs. It may ask a clarifying question. Answer briefly and let it continue.
  4. Review each proposed change. It shows a diff before editing. Read it. Check the logic, the edge cases, and the tests.
  5. Ask it to run the tests. Say: run the test suite for this area and fix any failures. Then check the results yourself.
  6. Commit when you are happy. Ask it to write a clear commit message and commit, or do the commit yourself. Either way, review the diff first.

Keep sessions focused. One task per session works best. When the task is done, exit and start fresh for the next one. Long sessions accumulate context, and stale context produces worse decisions.

Working with CLAUDE.md and Slash Commands

CLAUDE.md is the most important feature most new users skip. It is a Markdown file in your project root that holds instructions for Claude Code. It is checked into Git, so the whole team shares it.

Put project facts in it. The stack, the test command, the lint command, the code style, and the rules that matter. Example lines: run tests with npm test, never edit files in the dist folder, and always update the changelog when a public API changes. Short, specific rules work best. Long essays get ignored.

Slash commands control the session. Type / to see every command in your version. The most useful ones are /help for the command list, /model to switch models, /clear to reset context, and /compact to summarize a long session. Check /help in your version, since commands change between releases.

Models use aliases. The docs list aliases such as default, sonnet, opus, haiku, and fable, plus long-context variants. Sonnet is the usual default for everyday coding, balancing speed and capability. Opus suits complex reasoning and architecture. Haiku is fastest and cheapest for simple tasks. Switch with /model when the task changes, not out of habit.

Agentic Workflows That Actually Work

The best workflow is a loop: explore, plan, implement, verify. Ask Claude Code to explore first and explain the relevant code before changing anything. Then ask for a short plan. Then approve the plan and let it implement. Then ask it to run the tests and fix failures. Each step is a checkpoint where you stay in control.

Use it for code review too. Point it at a pull request and ask for issues, not praise. Ask specifically about security, error handling, and edge cases. It finds real problems, and it also flags non-problems, so judge each finding on its merits.

Use it for boring work. Updating dependencies, writing boilerplate, adding tests for existing code, and migrating small patterns across files are all good tasks. They are low-risk, easy to verify, and time-consuming by hand.

Keep it away from secrets. Do not paste API keys, passwords, or private customer data into prompts. Do not let it commit credential files. Check your .gitignore before any session that touches config.

Terminal choice matters more than people expect. Claude Code needs Shift+Enter to insert a newline without submitting. Ghostty, Kitty, WezTerm, Warp, Apple Terminal, and Windows Terminal need no setup for this. Inside tmux, Shift+Enter submits by default, and Anthropic documents a three-line tmux config fix with allow-passthrough and extended keys. Pick a terminal where Shift+Enter works, and the tool gets much easier to use.

Common Mistakes to Avoid

Five mistakes cover most bad sessions. First, vague prompts. Tell it where, what, and how you will check the result. Second, skipping the diff. Never approve a change you have not read. Third, giant tasks. Break large work into small steps with a check after each one. Fourth, no tests. If the code has no test, ask for one before the change, not after. Fifth, trusting the summary. Claude Code may say the tests pass. Run them yourself on important changes.

A related mistake is letting sessions run too long. Context fills up, the model forgets early decisions, and quality drops. When answers start drifting, use /compact or start a new session with a short summary of what is done and what remains.

Bottom Line

Claude Code in the terminal turns plain-English tasks into reviewed code changes. Install it with the native installer, start with small tasks, write a good CLAUDE.md, and review every diff. The tool is fast. Your judgement is what makes it safe. Use the loop, explore, plan, implement, verify, and it becomes a reliable part of a daily coding workflow.