inflearn logo

The Complete Practical Guide to Claude Code — Build an AI Development Team on Your Own with Harnesses, Subagents, MCP, and Hooks, Plus 3 Hands-On Projects

Learn how to build a harness that lets you trust the results when assigning work to Claude Code—covering CLAUDE.md, permissions, hooks, skills, subagents, MCP, headless mode, and verification—through 54 lessons with real execution screens, and build three projects from start to finish: a web service, a data pipeline, and an internal tool.

2 learners are taking this course

Level Intermediate

Course period Unlimited

Model Context Protocol
Model Context Protocol
Git
Git
CI/CD
CI/CD
Software Test
Software Test
Python
Python
Model Context Protocol
Model Context Protocol
Git
Git
CI/CD
CI/CD
Software Test
Software Test
Python
Python

What you will gain after the course

  • I set up CLAUDE.md, settings.json (allow/deny), and a Stop hook (preventing exit before tests pass) in my repository, then quantify the results.

  • Block dangerous commands, secret files, out-of-scope writes, and prompt injection with permission rules and hooks.

  • Turn recurring requests into slash commands and skills, package them as a plugin, and share them with the team.

  • Separate the author and reviewer subagents, and run tasks in parallel using Git worktrees.

  • Build Internal Tools Directly as MCP Servers (Using Only Standard Libraries) and Connect Them Securely to Claude

  • Use `claude -p` headlessly to run reviews and reports in scripts and CI, and evaluate the results as JSON.

  • Build a store pickup reservation web service, an order data pipeline, and an internal customer support tool from end to end.

Same model, same request—the harness alone changes the acceptance test results. How to install that harness in your repository

Learn through 54 lessons, with real execution screens, how to build a harness (CLAUDE.md, permissions, hooks, skills, subagents, MCP, headless mode, and verification) that lets you trust the results when delegating work to Claude Code, and build three projects from start to finish: a web service, a data pipeline, and an internal tool.

Every scene shows real terminal output from actual executions. We extract response, token, and cost figures from stream-json logs and compare them; when the results differ from expectations, we show them as they are. We build an MCP server directly with Python’s standard library, without the SDK, automate CI and daily reports with claude -p in headless mode, and complete all three projects with their harnesses. No package installation is needed—just Python, git, and Claude Code.

By the end of this course, you will be able to

  • I set up CLAUDE.md, settings.json (allow/deny rules), and a Stop hook (preventing the session from ending before tests pass) in my repository, then measure the impact.

  • Block dangerous commands, secret files, out-of-scope writes, and prompt injection with permission rules and hooks.

  • Turn repetitive requests into slash commands and skills, bundle them into a plugin, and share it with the team.

  • Separate author and reviewer subagents, and run parallel tasks with git worktree.

  • Build internal tools directly as MCP servers (using only the standard library) and connect them safely to Claude.

  • Run Claude headlessly with `claude -p`, integrate reviews and reports into scripts and CI, and evaluate the results as JSON.

  • Build an online store pickup reservation service, an order data pipeline, and an internal customer support tool from end to end.

Recommended for people like these

  • Developers who have tried Claude Code but can’t trust it to get the job done.

  • A lead who needs to establish standards for adopting Claude Code across their team (permissions, verification, and cost)

  • For those who want to learn about harnesses, hooks, subagents, and MCP through execution results rather than concepts.

Curriculum (11 sections · 54 lessons · approximately 818 minutes)

  • Section 1. Claude Code: Start with the Results — Claude Code without a harness vs. Claude Code with a harness — same request, different results, Installation, login, and your first session — open the practice kit and send your first request, Dissecting the agent loop — the sequence of reading, thinking, using tools, and checking, Interactive mode and headless -p — three output formats and exit codes, Git checkpoint habits — revert a failed task in 30 seconds

  • Section 2. CLAUDE.md, memory, and context — What CLAUDE.md changes — comparing the same request with and without it, instruction hierarchy — user, project, subfolder, and local instructions and imports, instruction length and cost — seeing tokens for yourself, what a good CLAUDE.md looks like — commands, prohibitions, and verification methods, five bad examples, techniques for carrying a session forward — context compression, resumption, and handoff files

  • Section 3. Permissions, Sandboxing, and Security — Four permission modes — hands-on testing of Default, Accept Edits, Plan, and Bypass Permissions; settings.json allow/deny rules — syntax and priority; defining work boundaries — blocking writes outside folders and dangerous commands; protecting secrets — blocking .env reads and checking output; preventing prompt injection — a harness that filters instructions in external documents

  • Section 4. Enforcing with Hooks — Hook Map — What Gets Called When, PreToolUse Hook — Block Dangerous Commands Before Execution, PostToolUse Hook — Automatically Run Checks on Every Modified File, Stop Hook — Prevent Completion Until Tests Pass, Logging and Notification Hooks — Leave Audit Logs and Work Summaries, Debugging Hooks and Failure Cases — Slow Hooks, Infinite Loops, and Path Issues

  • Section 5. Slash Commands, Skills, and Plugins — Custom slash commands — Turn recurring requests into a single line; Skill structure — SKILL.md and the conditions for invoking it; Adding scripts to skills — Handle deterministic tasks with code; Plugins — Bundle commands, skills, hooks, and agents for distribution; Fine-tuning your work environment — Output style, status line, and model selection

  • Section 6. Subagents · Parallel Work — Defining Subagents — Creating Teammates with Different Roles, Tools, and Models, Easy Bugs Get Caught Before Bias Is Introduced — Bias Should Be Tested on Subtle Bugs, When Parallel Investigation Pays Off — It Was Slower and Twice as Expensive in Small Repositories, Parallel Work with git worktree — Multiple Sessions That Don’t Get in Each Other’s Way, Consensus Isn’t Free — The Two-out-of-Three Rule Reduces Recall, When Not to Use Subagents — Costs and Break-Even Criteria

  • Section 7. Building Your Own MCP Server — MCP connection basics — scope, configuration files, and tool lists; Building Your Own MCP Server 1 — standard input/output and JSON messages; Building Your Own MCP Server 2 — tool design, input validation, and error responses; Building Your Own MCP Server 3 — read-only data tools; MCP testing and security — unit tests, tool description injection, and permissions

  • Section 8. Headless, CI, and Validation Harnesses — claude -p scripts — JSON results, exit codes, and retries, Claude Code in CI — add review and inspection tasks to the pipeline, TDD harness — make it write failing tests first, regression gates — check existing tests and the scope of changes, cost and context management — measure compaction, models, and caching in practice, plan mode and task breakdown — define scope using a request form

  • Section 9. Hands-On Project 1 — Store Pickup Reservation Web Service — Project 1 Kickoff — Define requirements, set up CLAUDE.md and the harness, Project 1 Implementation — Write Tests First for the Reservation API, Project 1 Bugs and Regression — No Bugs Were Intentionally Introduced, Fix a Real Defect Found at the Boundary, Project 1 Wrap-Up — All the Way Through the UI with a Review Subagent

  • Section 10. Hands-on Project 2 — Order Data Pipeline — Starting Project 2 — Clean and load order CSVs, the order of evaluation changes the numbers, validating Project 2 — Data checks that catch outliers, duplicates, and empty values, automating Project 2 — Generate daily reports headlessly and send alerts even on days when it fails

  • Section 11. Hands-On Project 3 — Internal Customer Inquiry Tool — Project 3 Kickoff — A Command-Line Tool for Classifying Customer Inquiries, Project 3 Integration — Connect the Internal Tool to Claude as an MCP Server, Project 3 Deployment — Bundle It as a Plugin and Check for Gaps in the Hooks, Wrap-Up — Transfer the Harnesses from All Three Projects to My Repository Using a Single Checklist

Practice environment

Download the hands-on kit (Python 3.10+ standard library, git, and Claude Code) and follow along. It includes the cc wrapper (which makes `claude -p` easier to read), ccstat (turns, tokens, and costs), four projects, a harness for each lesson, and all the scenarios used in the recordings. Each lesson includes an exercise guide (commands, expected results, troubleshooting tips, and review questions with answers), starter and completed files, and a PDF guide.

Prerequisites

  • Able to run terminal commands

  • Can read Python code (you don’t need to write much yourself)

  • An account that can log in to Claude Code

What This Course Does Not Cover

  • Frontend frameworks · cloud deployment

  • Explanation of the model’s internal architecture

  • Comparison of Other Coding Agent Products

  • No-code automation without looking at any code

Guide

The video was made using slides and synthesized speech (TTS). The terminal footage shows the training kit running in practice, and the numbers on screen were taken from that original run. Claude responses, token counts, and costs may vary each time it runs. All data is fictional and for educational purposes; figures may vary depending on the execution environment.

Recommended for
these people

Who is this course right for?

  • A developer who has tried Claude Code but can’t trust it to get things right.

  • A team lead who needs to set criteria for adopting Claude Code (permissions, validation, and cost)

  • For those who want to learn harnesses, hooks, subagents, and MCP through hands-on results rather than theory.

Need to know before starting?

  • Can run terminal commands.

  • Can read Python code (even without writing much of it yourself)

  • An account that can log in to Claude Code

Hello
This is dorian05202988

Career Verified

179

Learners

4

Reviews

3.0

Rating

50

Courses

A data craftsman with over 20 years of experience in databases and IT. As a DBA and manager of a DB Platform team, I work with database platforms and specialize in MySQL, PostgreSQL, Oracle, MongoDB, SQL tuning, AWS, Terraform, and Python. Drawing on experience in the gaming, finance, and IT services industries, I explain database and cloud architecture. I have published 『Oracle Practical Tuning: Learning SQL Patterns』 and 『Oracle Pro*C Practical Project Guide』, and have presented on serverless architectures, database selection, and multi-database strategies at AWS Summit 2018 and 2019 and DataYa Nolja 2020. Recently, I have been working on slow-query analysis and tuning recommendations using Bedrock LLM, automated DB specification sizing, and query workflows through a DB metadata MCP server and Slack bot. I explain database automation for developers and AI applications for non-developers through hands-on exercises tailored to the audience and objectives of each course. Rather than applying AI suggestions as-is, I teach a decision-making framework that verifies result equivalence, execution plans, and observability conditions, and defers action when the supporting evidence is insufficient. Company operational data and credentials are not included in the course materials.

More

Curriculum

All

54 lectures ∙ (16hr 3min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

Not enough reviews.
Please write a valuable review that helps everyone!

dorian05202988's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Limited time deal

$26.40

47%

$50.60