LearnFrenzy
Sign in Take a free test

Claude & Anthropic API interview · Set 3 of 3

Claude Code and AI-Assisted Development

  • 5 follow-up questions
  • 4 key points
  • Code examples
Test yourself

Faster development, same standards

AI coding agents change how code gets written, not who is responsible for it. Interviewers look for good context-setting, a review habit and awareness of security and licensing.

  • ToolingClaude Code surfaces, CLAUDE.md and permissions.
  • ExtendingSlash commands, skills, hooks, subagents and MCP.
  • PracticePlan, implement, test, review and own the result.

Interviewers increasingly ask, “How do you use AI coding tools?” They are not checking whether you use them — most developers do — but whether you use them responsibly: giving good context, reviewing every change and keeping quality and security high. Claude Code is a common example, so it is worth knowing well.

1. What is Claude Code?

Claude Code is Anthropic's agentic coding tool. It works in your terminal, in IDEs such as VS Code and JetBrains, in a desktop app and on the web. It reads your codebase, plans changes, edits files, runs commands and tests, and can work with Git — asking permission before actions according to your settings. Unlike autocomplete, it can carry out a multi-step task such as “add pagination to the orders API and update the tests”.


2. What is CLAUDE.md and what belongs in it?

A Markdown file in the project (and optionally in your home folder) that Claude Code reads at the start of every session — the project's memory. Put the things a new teammate would need: how to build, test and lint; architecture notes; coding conventions; and rules such as “never commit .env files”. Keep it short and specific; update it when you correct the same mistake twice.

# Project notes for Claude

## Commands
- Install: `composer install && npm ci`
- Test: `php vendor/bin/phpunit` (all tests must pass before committing)
- Build assets: `npm run build`

## Conventions
- PHP 8.4, CodeIgniter 4; controllers stay thin, logic lives in app/Libraries
- Every new table is created by a migration; seeders never overwrite admin edits

## Never
- Commit or print the contents of `.env`
- Push to main without the team's review

3. How do permissions and plan mode work?

By default Claude Code asks before editing files or running commands, and you can allow trusted commands (like running tests) in settings. Plan mode lets it explore the code and propose a plan without changing anything — ideal for large or risky changes. You approve the plan, then it implements. Auto-accept modes exist for routine work, but review the result either way.


4. What are slash commands, skills and subagents?

Slash commands trigger built-in or custom workflows (for example a review or a test command). Skills package instructions, scripts and resources for a recurring task so Claude loads them only when relevant. Subagents are separate Claude instances with their own context and tools, used for focused or parallel work such as searching a large codebase or reviewing a change, so the main conversation stays clean.


5. What are hooks in Claude Code?

Hooks run your own shell commands automatically at points in Claude Code's lifecycle — for example after a file is edited (run the formatter or linter) or before a tool runs (block edits to protected files). Unlike instructions in a prompt, hooks are executed by the tool itself, so they always happen.

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [{ "type": "command", "command": "npm run lint --silent" }]
      }
    ]
  }
}

6. How does MCP extend Claude Code?

You can connect MCP servers — GitHub, issue trackers, databases, browsers, design tools, documentation — so Claude Code can read a ticket, query a staging database or check a page while it works. Add only servers you trust, with the narrowest permissions that work, because their output enters the model's context.


7. What does a good workflow with an AI coding agent look like?

1) Give the goal and context (the ticket, constraints, files involved). 2) Ask for a plan first and correct it. 3) Let it implement in small steps, with tests as the definition of done. 4) Review the diff yourself — logic, security, edge cases, naming. 5) Run the full test suite and commit with a clear message. Think of the agent as a fast teammate whose work you still review.


8. How do you talk about AI-assisted coding in an interview?

Be concrete and responsible: which tool, what kinds of tasks (refactors, tests, boilerplate, exploring unfamiliar code), how you verify output, and one example where you caught a wrong suggestion. Emphasise that you understand and own every line you merge, you never paste secrets or confidential code into tools your company has not approved, and you still design the solution yourself.


Remember

Key points

  • CLAUDE.md is project memory

    Commands, conventions and rules.

  • Plan before big changes

    Review the approach, then the diff.

  • Hooks always run

    Use them for formatting and guardrails.

  • You own the code

    Understand and review every change.

Interview drill

Follow-up questions

What the interviewer asks after your first answer. Turn on practice mode, answer each one aloud, then reveal.

  1. 1 How is an agentic coding tool different from code completion? Basic

    Completion suggests the next lines while you type. An agent takes a task, explores the repository, edits many files, runs commands and iterates on test results.

  2. 2 How do you keep secrets safe when using AI coding tools? Intermediate

    Keep secrets in environment files excluded from Git, deny the tool access to them where possible, use hooks or settings to block reading or committing them, and review diffs before committing.

  3. 3 What is the Claude Agent SDK? Intermediate

    Claude Code's agent harness packaged as a library (Python and TypeScript), with built-in tools for files, shell and search, so you can build your own agents on your own infrastructure.

  4. 4 How would you use AI to work in an unfamiliar legacy codebase? Intermediate

    Ask it to map the architecture and trace a request end to end, write characterisation tests around the code you will change, then refactor in small, test-backed steps.

  5. 5 What are the risks of AI-generated code? Advanced

    Subtle logic bugs, security issues (injection, missing authorisation), outdated APIs, hidden licensing concerns and code the team does not understand. Mitigate with reviews, tests, static analysis and clear ownership.

Preparing with friends?

Share this page with your study group or placement batch.

Search LearnFrenzy

Esc

Quick links