Claude Code Interview Guide

This file is an interview-ready guide for Claude Code, Claude CLI, Claude models, Claude workflows, and related learning roadmaps.

Important note: Claude Code evolves quickly. Commands, plans, plugins, and model defaults can vary by version, platform, account type, and enabled features. Treat this as a current study guide, not a timeless spec.

1. What is Claude Code?

Claude Code is Anthropic’s agentic coding tool that runs in your terminal. It can inspect a codebase, plan tasks, edit files, run commands, use tools, connect to external systems through MCP, and manage multi-step software work.

Interview answer:

Official references:

2. Claude Code, CLI, Coding Agent, and Vibe Coding

What is Claude Code?

Claude Code is the product. It includes the CLI, built-in tools, slash commands, permissions, hooks, memory, and automation capabilities.

Claude CLI introduction

The CLI is how you launch and control Claude Code from the terminal.

Core commands:

Interview answer:

Official reference:

What is a coding agent?

A coding agent is an AI system that can do more than answer questions. It can:

Claude Code is a coding agent because it can complete multi-step software tasks with tool use and feedback loops.

What is Vibe Coding?

Vibe coding usually means steering development by describing intent in natural language and letting the AI generate, refactor, or explore quickly. The risk is shallow correctness. The best version of vibe coding still includes verification, tests, checkpoints, and tight prompting.

Interview answer:

Roadmap:

What is an agentic loop?

An agentic loop is the repeated cycle of:

  1. understand the task
  2. gather context
  3. choose tools
  4. act
  5. observe results
  6. revise plan
  7. continue until done

Claude Code is built around this pattern.

3. Ways to use Claude

Claude can be used in several ways:

Interview answer:

Official references:

4. Subscription vs API usage

This is a common interview topic.

Subscription usage

With a Claude.ai subscription, Claude Code is used as part of your Claude account experience. Some commands and features are plan-specific. The docs explicitly note that not all commands are visible to every user and some depend on platform, plan, or environment.

Examples:

API usage

With Anthropic Console authentication, Claude Code usage is billed through API consumption. When you first authenticate with an Anthropic Console account, a workspace named Claude Code is created for centralized cost tracking.

Interview answer:

Official references:

5. Understand the basics

The basics you should be able to explain:

6. CLAUDE.md, memory, and skills

What is CLAUDE.md?

CLAUDE.md is Claude Code’s memory/instruction file. It stores reusable context such as project architecture, commands, conventions, guardrails, and preferences.

Memory hierarchy:

Claude can also import extra files using @path/to/file.

Interview answer:

Official reference:

How to structure CLAUDE.md

Good sections:

Skills

Skills are reusable prompt-based extensions defined with a SKILL.md file. They can be personal, project-level, or plugin-scoped.

Skills can:

Interview answer:

Official reference:

7. Tools

Claude Code has built-in tools such as:

Interview answer:

Official reference:

8. Context modes, permission modes, and context management

Permission modes

Common modes:

Shift+Tab cycles through permission modes in interactive sessions.

Plan Mode

Plan Mode is for read-only analysis and planning before execution.

Use it when:

Examples:

Context management

High-signal commands:

Interview answer:

Official references:

9. Models, thinking modes, and effort

Models

Current Claude Code model aliases:

Key idea:

Understand the differences: Opus, Sonnet, Haiku

Official model positioning:

Interview answer:

Thinking modes and effort

Claude Code supports effort levels:

Commands:

Prompting also matters:

Interview answer:

Official references:

10. Using Claude Code

Common use cases

Common use cases include:

Headless mode

Headless mode means non-interactive execution, usually with -p.

Examples:

Use headless mode for:

Git worktrees

Git worktrees let you run separate Claude sessions in isolated directories with shared repo history.

Why it matters:

Examples:

Interview answer:

Official reference:

11. Commands, slash commands, and shortcuts

CLI cheat sheet

Session and help commands

Context and memory

Configuration

Desktop and integrations

Shortcuts and prefixes

Interview answer:

Official references:

12. Hooks

Hooks let Claude Code run custom logic around lifecycle events.

Hook types:

Hook inputs usually include:

Hook outputs can:

Important hook events:

Common interview talking points:

Matchers:

Interview answer:

Official reference:

13. Subagents, agent teams, and plugins

Subagents

Subagents are specialized AI assistants with their own prompt, tool access, and context window.

Benefits:

Locations:

Agent teams

Claude Code can support coordinated multi-agent workflows. This is useful for parallel tasking, decomposition, and larger orchestrated changes.

Plugins

Plugins package capabilities such as:

Interview answer:

Official references:

14. Code intelligence, desktop app, and community tools

Code intelligence

Claude Code becomes significantly better when it can use project-aware signals such as:

Interview answer:

Desktop app

Claude Code supports handing a session to the Claude Code Desktop app with /desktop on supported platforms. This is useful when you want a richer UI without losing session state.

Community tools

The ecosystem around Claude Code also includes:

Best-practice answer:

15. MCP, extensions, and external tools

Connecting tools with MCP

MCP stands for Model Context Protocol. It is the standard way to connect Claude Code to external tools, APIs, databases, and services.

What MCP enables:

Be mindful of extensions and MCP plugins

This is both a security and interview topic.

Best-practice answer:

Official references:

16. Pricing, usage, prompt caching, and scaling

Understand Claude pricing

For Claude Code API usage:

Official model pricing examples:

Understand Claude Code cost behavior

Anthropic’s Claude Code docs say:

Prompt caching

Prompt caching is an API optimization, not just a Claude Code trick.

Key facts:

Interview answer:

Scaling Claude

Best practices:

Official references:

17. Security best practices

You should be ready to say this in an interview:

Official references:

18. Output styles, status line, editor extensions, and setup

Output styles

Claude Code supports built-in output styles:

Use them when you want more teaching, more collaboration, or more direct execution.

Customize status line

The status line can display model, directory, branch, cost, and other context.

Editor extensions

Claude Code integrates with:

Capabilities include:

Setting up Claude

Basic install:

npm install -g @anthropic-ai/claude-code
claude

Interview answer:

Official references:

19. Common best practices

20. When to use what model?

Use Haiku when:

Use Sonnet when:

Use Opus when:

Use opusplan when:

21. Ready-for-interview one-liners

What is Claude Code?

Claude Code is Anthropic’s terminal-native coding agent that can inspect codebases, use tools, edit files, run commands, and automate software workflows.

What is the difference between Claude Code and the Anthropic API?

Claude Code is a developer product and agentic workflow environment; the API is the programmable interface used to build your own applications and automations.

What is CLAUDE.md?

It is Claude Code’s memory file for reusable project and user instructions.

What is Plan Mode?

A read-focused planning mode that lets Claude analyze and propose a plan before making changes.

What are hooks?

Hooks are lifecycle-triggered automations that can validate, block, modify, or enrich Claude’s behavior around prompts, tools, and stopping conditions.

What is MCP?

MCP is the Model Context Protocol, an open standard for connecting Claude to external tools and data sources.

What is agentic loop?

It is the repeated cycle of reasoning, tool use, observation, correction, and continuation until the task is complete.

What is the difference between skills and subagents?

Skills are reusable prompt-based workflows; subagents are delegated specialist agents with their own context windows and tool permissions.

What is prompt caching?

An API feature that reuses repeated prompt prefixes to cut cost and latency.

Why use Git worktrees with Claude?

They allow isolated parallel branches and cleaner multi-agent or multi-task workflows.

Main roadmap hub

Note: roadmap.sh search results clearly expose PDF versions for Prompt Engineering, AI Engineer, Git and GitHub, and Shell/Bash. The site also lists Claude Code and Vibe Coding as newer roadmap entries, but their PDF links were not surfaced in the retrieved results, so use the interactive roadmap pages for those.

Similar roadmaps worth studying

If you are preparing for Claude Code or AI engineer interviews, these are the most relevant adjacent roadmaps:

Good learning order

Recommended order:

  1. Prompt Engineering
  2. AI Engineer
  3. AI Agents
  4. Git and GitHub
  5. Shell / Bash
  6. Claude Code
  7. Vibe Coding

23. Final interview positioning

If asked for a high-level summary, say this:

Claude Code is a terminal-native coding agent built by Anthropic. It combines LLM reasoning with tools, permissions, memory, hooks, subagents, MCP integrations, and workflow controls like Plan Mode, worktrees, headless execution, and checkpointing. In practice, the most important skills are choosing the right model, managing context, structuring CLAUDE.md, using hooks and subagents carefully, and balancing speed with verification and security.

Sources