inflearn logo

Claude Code Harness and Mods, Graph Engineering: Advanced CLI Harness Engineering in Practice

The lecture explains why the harness is more important than the model through the lens of Claude Code architecture. It also covers how to design a Claude Code work system around six structures: Context Harness, Permission Harness, Verification Harness, Tool Harness, Subagent & Worktree Harness, and Debugging Harness. It then connects these concepts to CLAUDE.md, session management, controlling large codebases, parallel worktree operations, error log analysis, and tracking environment variable and configuration scope issues, helping you establish practical standards for continuing to use Claude Code in real-world backend and DevOps work.

(4.5) 71 reviews

834 learners

Level Basic

Course period Unlimited

AI
AI
claude
claude
Vibe Coding
Vibe Coding
harness
harness
AI
AI
claude
claude
Vibe Coding
Vibe Coding
harness
harness

Reviews from Early Learners

4.5

5.0

제현우

61% enrolled

Thank you for the informative lecture.

5.0

wogml6026

100% enrolled

I now have a good understanding of the harness structure and how to use it in practice.

5.0

이태용

61% enrolled

It's great because it allows for a solid understanding of the basic knowledge of harness engineering.

What you will gain after the course

  • Design Criteria for a Harness That Integrates Claude Code CLI into Real-World Projects

  • The ability to design a workspace for working on large codebases through CLAUDE.md, session management, and context control

  • The ability to design permissions / authorization policies that define the scope of actions Claude can take

  • Practical know-how for a Verification Harness that validates Claude’s output through tests, diffs, and counterexamples instead of trusting it as-is

  • Subagent & Worktree operational skills for safely isolating multiple tasks using worktrees and parallel sessions

  • Practical Debugging Harness skills for organizing error logs, environment variables, configuration scopes, and hard-to-reproduce bugs so Claude can solve them

Once you’re familiar with Claude Code, the next step is designing a harness.

We design what to review after making code changes with Claude Code, along with the scope of execution and verification procedures.

Hello, I’m Migukdalpaengi. If you’re comfortable using Claude Code to write and edit code, the next questions are what to have it read, how much to allow it to do, and how to verify the results. This course covers how to connect the Claude Code CLI to your project’s code, tests, and Git workflow. We’ll explain these through Context, Permission, Verification, Tool, Subagent, and Debugging Harness.


We pick things back up from where we knew features only by name or had AI handle even the Skills and Hooks setup, but couldn’t integrate them into the project. We break down when to use Skills and Hooks, and how to verify changes after modifying code, at the harness level.


Starting with CLAUDE.md and session management, we connect workflows from GitHub Issues to PRs, worktrees and parallel sessions, and CodeCraft design, implementation, and verification. We also cover establishing a baseline for token usage, finding the code needed for each request, and using Mods to record, edit, or reject tool-use requests.

Recommended for these people.

Developers who tried integrating Claude Code or a harness into their workflow but got stuck because they couldn’t establish a clear system

It covers cases where people added features without clear criteria for when to use Skills and Hooks, or even left the configuration up to AI. It first lays out the information needed and the criteria for checking each step, then shows how to connect Claude Code to the process of reading logs, running tests, reviewing diffs, and preparing PRs. This isn’t a course just for job seekers or an introductory course on quickly building a single app.



Developers wondering what to read in a large codebase

Rather than putting all the documentation in CLAUDE.md, separate shared instructions from task-specific procedures. Learn to build a context harness that classifies requests, searches relevant files first, and broadens the search when there isn’t enough evidence.

Developers who want to divide the scope of work and verification criteria across multiple Claude sessions

We don’t treat multi-agent work as simply a matter of increasing the number of agents. We distinguish between a subagent’s context and the file and branch isolation provided by worktrees, and cover a workflow in which parallel work is reviewed through its diffs and tests before a human merges it sequentially. In Graph Engineering, we design task dependencies and validation checkpoints.

After completing the course,

In the course, you’ll learn how to answer questions such as: What code should Claude read now? Does this instruction belong in CLAUDE.md, or should it be enforced through execution permissions? Which tests and diffs should you review? How should work be divided across multiple sessions and then combined?

To ensure the material goes beyond papers and concepts, the CodeCraft case starts by clarifying the requirements, inputs and outputs, constraints, and separation of responsibilities, then connects them to implementation and testing. Token optimization is evaluated not just by whether it reduces usage, but by comparing task success, regression errors, and execution time as well. When adapting an example to your own project, check that the paths and test commands match your environment. CLAUDE.md contains instructions for the model to refer to. Merely writing something there does not enforce it on every execution. Distinguishing the roles of instructions, permissions, Hooks, and validation is the starting point of this course.

Change the flow for handling tool-use requests with Claude Code Mods.

We’ll cover how to record which tools Claude Code tried to use, and how to pass requests through unchanged, modify them as needed, or reject them directly. The hands-on project is Harness Guard Kit.

In the first Mods lesson, we clarify the relationship between Plugins and Mods, and

We’ll create our first Mod, which logs tool-use requests.

  • In the next lesson, we compare Observe, Rewrite, and Answer

  • We examine how prompts and tool calls are processed.

  • Rejecting a request before execution is different from changing the result after execution.

  • Changing the wording of the result does not undo an action that has already been performed.

  • We also examine why you shouldn’t blindly retry an operation that changes state, since it may have been performed even if an error occurred.

The exercises use test inputs and functions.

Installing Mod alone does not mean that all execution paths are restricted or that it replaces the organization’s authorization policy.



Features of This Course

1. Rather than listing features, it explains the harness’s role and boundaries.

Drawing on lecture materials based on research papers, we distinguish Context, Permission, Verification, Tool, Subagent, and Debugging Harness. We begin by looking at what procedures Skills convey, when Hooks are triggered, and what tool connections MCP handles—and when to use each. Rather than putting the same instructions everywhere, we cover how to choose the right place for each purpose. We also review the key terms used at each stage and in different situations.

2. Connect code exploration, parallel work, and implementation validation into a single workflow

Find the files needed for a request, reorganize the context when a session gets long, and split multiple tasks across worktrees. In the CodeCraft case study, connect design, implementation, and testing; in Graph Engineering, examine dependencies between tasks and verification steps. In Mods, distinguish where tool-use requests are observed, modified, or rejected.

What you’ll learn

CLI / Architecture / Memory

CLAUDE.md / Plan Mode / Skills

Starting with installing Claude Code CLI and your first session, this covers architecture, memory across sessions and CLAUDE.md, Plan/Thinking Mode, Subagents, and the differences between Skills and tool use. Then practice managing context by writing project rules and using clear, compact, and summary updates, along with a workflow from GitHub Issue to PR.

Harness Map / 6 Harnesses

Connect Context, Permission, Verification, Tool, Subagent & Worktree, and Debugging Harness to the questions of what each should read, what it should run, and how it should be verified.

In parallel work, separate files and branches by worktree and define the scope of each session, then review the diff and tests for each change. Launching multiple sessions does not mean their work will integrate without conflicts. Treat merging and integration testing as separate steps. In CodeCraft, use DoorDash delivery fee calculations, Netflix viewing history, and Spotify playlists to break down requirements and responsibilities, then connect implementation and testing. Use SOLID not as terminology to memorize, but as a way to assess where changes may occur and how testable the code is. When measuring usage, distinguish token counts, API costs, and subscription usage. For the context harness, keep CLAUDE.md concise, classify requests with Task Router, and select the relevant files and necessary Skills and documentation. Also cover how to broaden the search when reading too little causes you to miss the root cause.



A harness configuration file to review and adapt for your project

In the CodeCraft hands-on exercises, CLAUDE.md, Skills, Hooks, and tests are connected.

To use the example settings in your own project, check that the paths, test commands, and execution permissions match your environment.

  • Put shared work rules in CLAUDE.md.

  • In codecraft-harness/SKILL.md, define a process for documenting requirements, inputs and outputs, constraints, and the implementation plan.

  • Use solid-review/SKILL.md to check separation of responsibilities and design complexity.

  • block-sensitive-paths.sh checks access requests for specified sensitive paths.

  • run-tests-after-edit.sh connects test execution after making changes.

  • block-stop-without-tests.sh covers the pre-exit procedure for checking test status.

  • guard.sh

Registering a hook is not the same as enforcing restrictions across every path.

You need to check which tools and paths the example handles, and what happens when it fails.

Review the instructions, execution restrictions, and test results separately.


3. Model-Specific Prompt Playbook

Even when using the same harness, different models vary in which instructions they follow well and which they are likely to miss.

In this course, instead of using the same prompt for every model, we provide five copy-ready prompt blocks that outline which instructions to remove and which to add to suit each model’s characteristics.

  • Opus 5
    Reduce the verification instructions the model performs on its own to prevent unnecessary duplicate work.

  • Opus 4.8
    Make the tool execution conditions more explicit so that the necessary tools are used at exactly the right time.

  • Sonnet 5
    This covers how to write, in literal and specific terms, the files that need to be modified and the scope of the changes.

  • Haiku 4.5
    It lays out the execution procedure step by step so you can work reliably even with models that do not have an effort option.

  • Fable 5
    We provide, for reference, an approach that avoids giving the model excessive instructions and retains only the necessary prescriptions.

Each playbook also includes the following content.

  • Parameter combinations that cause a 400 Error when requested

  • Default parameters and behavioral differences by model

  • A record sheet for comparing results while changing the effort value

  • Lab 04 exercise: Run the same prompt on multiple models and compare the results

Rather than simply explaining which model is better, you'll learn how to find the optimal settings for each model yourself by repeatedly running the same task and recording the results.


Graph Engineering Lab Materials, Lab 05

Compare a Loop that repeats a single task with a Graph that links the dependencies among multiple tasks. Distinguish between a Node as a unit of work, an Edge as a connection for required data, and State as information preserved for the next execution. Separate tasks that can be handled independently from those that must wait for prior results, and explore how to validate the results from multiple Agents. Also cover retrying failed tasks, saving state, and points where human approval is required. The material also explains how to decide whether a Graph is really necessary for a short task.

Interactive Learning Sheet

You can use it by opening the HTML file in a browser—no separate installation or server required.

You can replay step by step how the same request is handled differently in these two approaches.

  • Repeating a single flow with loop-based execution

  • Graph-based execution that divides a task into multiple nodes and dependencies

When you select each step, you can also view the configuration file that created that action, allowing you to immediately understand the relationship between the execution result and the configuration.

Step-by-Step Learning Guide

We provide a learning guide totaling 645 lines.

Rather than explaining the theory at length from the start, it is organized in the following order.

Check the conclusion → 30-minute practice → core concepts → advanced theory

There are also separate learning paths for non-majors and for learners with development experience.

Even those using Claude Code for the first time through vibe coding can start with hands-on practice, while developers can delve deeper into its internal workings and design principles.

Three demo projects you can run yourself

Rather than simply reading configuration files, you will run claude in an actual project folder and directly observe how Hooks block and validate tasks.

Each project intentionally includes the following issues.

  • Type error

  • Test failure

  • A logic bug that appears normal on the surface

Learners will directly experience the following flow.

Detect the issue → Block the task → Fix the code → Run the tests → Pass validation

Loop-based and graph-based projects use the same code, with only the harness configuration set up differently.

Therefore, you can accurately compare how the results differ due to the way the work is organized, not differences in the code.


Reference documents

Practical documentation is also provided so that you can refer to it when setting up projects or solving problems even after completing the course.

  • Environment Setup Guide
    A summary of how to prepare the execution environment, register Hooks, and resolve common errors.

  • Distinguishing the Roles of Skills, Hooks, CLAUDE.md, and Tests
    Explains what each component is responsible for and which tool to use for each problem.

  • Harness Inspection Checklist
    Verify that nothing is missing from the prompt, design, implementation, tests, and completion criteria.

  • Question and test cards
    Provides questions to use when requirements are ambiguous, test design criteria, and verification table templates.

  • Model-Specific Playbook Documents
    Parameters, behavioral characteristics, and prompt-writing guidelines for each model are organized in one place.

  • Model Evaluation Record
    You can run the same task with multiple models and configurations, then compare and record the results.

These materials are not merely course supplements; they comprise a Claude Code harness operations manual that you can repeatedly use in real-world projects.


The person who created this course

  • Silicon Valley Survivor | American Snail 

    Drawing on experience and expertise gained at the forefront of the Global Tech Scene, this course shows non-majors how to overcome technical barriers and become the owners of their businesses.

    • Current) Founder of a Silicon Valley AI coding & local model fine-tuning agent startup

      • Development and operation of Closiro CLI/Mac Desktop (20K+ downloads)

      • Selected for the Google for Startups Program

      • Selected for the Anthropic for Startups Program

    • Former engineer at U.S. Big Tech companies and promising startups

      • Gave up the final stage at Amazon to start a company

      • Silicon Valley AI Fintech Startup Engineer

      • OpenAI / Meta / Apple / Adobe / Amazon Full-Stack Fellowship

      • Domestic search engine portal, fintech development

      • AI startup AR/B2B/SDK development

    • Proven teaching expertise

Do you have any questions?

Q. I’ve tried Claude Code a little. Will this still be helpful?

This is for people who have tried modifying files with Claude Code and are now wondering how to connect code exploration, testing, and Git workflows. It also covers people who know Skills or Hooks only by name, or who have left configuration to AI and lack clear criteria for when to use them. Through session management, context redesign, parallel work with worktrees, and the CodeCraft case study, it covers what to check at each stage.

Q. How is it different from the official documentation?

While referring to the official documentation and lecture materials based on research papers, we compare the roles of the features within the project workflow. We distinguish between instructions to include in CLAUDE.md, actions to restrict with permissions, procedures to organize with Skills, and when to use Hooks. Before applying these in practice, please also check the official documentation for the version and environment you’re using.

Q. What level does this course cover?

Rather than an introductory course on quickly building an app or one focused solely on job preparation, this course covers the workflow structure of the Claude Code CLI.

The course covers everything from the fundamentals of the CLI to harness design, session management, worktrees and parallel sessions, CodeCraft design, implementation, and verification, Graph Engineering, token usage measurement, and context routing. Concepts are explained repeatedly using terms suited to each stage and situation, but the hands-on exercises are easier if you have basic terminal and Git knowledge. In the Mods section, you can start with the first currently available Mod and the lesson on event handling. Please refer to the published lesson list in the curriculum for details on which bonus and additional lessons are included.

Things to Note Before Enrolling

Practice Environment

  • The exercises focus on the Claude Code CLI. They’ll be easier if you’re familiar with the basics of terminals, project files, and Git. In the worktree exercises, you’ll separate files and branches while also checking shared elements such as auto memory in the same repository.

Learning Materials

  • PPT, Notion

  • The course provides materials centered on templates and reference guides that you can apply directly at work, rather than just a collection of links. For example, it includes a CLAUDE.md template, context pack examples, session wrap-up prompts, a worktree operations playbook, and model routing guidelines, so you can review the material without having to replay the videos from the beginning.

  • Provided Materials


    ▎ GitHub repository exclusively for students (33 documents · 5,540 lines)


    ▎ - 5 hands-on exercises — step-by-step guides + 29 copy-ready prompts + sample data


    ▎ - Complete harness configuration — 2 Skills, 4 Hooks, CLAUDE.md (operation verified)


    ▎ - 5 prompt blocks by model — Opus 5 / 4.8 / Sonnet 5 / Haiku 4.5 / Fable 5


    ▎ - Graph Engineering materials — interactive learning sheet + 3 runnable demo projects


    ▎ - 6 reference documents, environment setup, verification checklist, question and test cards, and record sheets. You can also discuss questions and hands-on exercises during the course in our active Discord community. https://discord.gg/4Ea38HWuY

Prerequisites and Notes

  • Basic development experience, familiarity with using the CLI, and an understanding of Git concepts are recommended. The course is for people who want to use Claude Code in real projects, regardless of their major or whether they are job hunting or already working in the field. Concepts are explained repeatedly, step by step and with context-specific terminology, so that people without a technical background can follow along. However, during the exercises, you’ll need to inspect the project files and settings yourself.

  • The hands-on work combines sections where the instructor demonstrates the workflow with sections where you check and apply the prompts in the class notes and the provided configuration files in your own environment. Simply playing the lecture does not produce a finished result. The course starts by explaining the role of the harness and its terminology, then connects these concepts to hands-on exercises, configuration files, and the CodeCraft case study. The instructions in CLAUDE.md, execution permissions, Hooks, and tests each serve different purposes. Even after applying the examples, you need to check how requests are handled in your environment and what the checks are verifying. Plugins or Hooks alone cannot block every risk or validate every result.

Recommended for
these people

Who is this course right for?

  • Developers who installed Claude Code but couldn’t get themselves to keep using it in real projects

  • Developers who feel limited by GUI-based Claude and need practical CLI-based usage techniques

  • Those who want to learn CLAUDE.md, permissions, hooks, MCP, and subagents from a practical, hands-on perspective rather than through feature introductions

  • Developers who want to take AI coding tools beyond merely “trying them out” and up to the level of “operating them as a work system”

Need to know before starting?

  • Experience using LLMs such as ChatGPT or Claude is a plus.

Hello
This is americasnail

Inflearn Verified

2,326

Learners

139

Reviews

87

Answers

4.5

Rating

9

Courses

  • Silicon Valley Survivor | American Snail

    Drawing on experience and know-how gained at the forefront of the Global Tech Scene, I show non-majors how to overcome technological barriers and become the owners of their businesses.

    • Current) Founder of a Silicon Valley AI coding & local model fine-tuning agent startup

      • Development and operation of Closiro CLI/Mac Desktop (20K+ downloads)

      • Selected for the Google for Startups Program

      • Selected for the Anthropic for Startups Program

    • Formerly: Engineer at U.S. Big Tech Companies and Promising Startups

      • Gave up Amazon’s final stage to start a company

      • Silicon Valley AI Fintech Startup Engineer

      • OpenAI / Meta / Apple / Adobe / Amazon Full-Stack Fellowship

      • Development at a leading domestic search portal and fintech company

      • AI Startup AR/B2B/SDK Development

    • Proven teaching expertise

      • Double major in computer science and business administration at a four-year university in Seoul, with extensive startup experience.

      • Trained over 2,300 students; 4.6K+ followers on Threads and 500+ on Substack.

More

Curriculum

All

59 lectures ∙ (8hr 34min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

71 reviews

4.5

71 reviews

  • dolilu님의 프로필 이미지
    dolilu

    Reviews 12

    ∙

    Average Rating 4.8

    2

    23% enrolled

    I can't focus because the lecture materials are completely out of sync with the content. I honestly wonder what the intention was behind recording it this way—with all the zooming in, zooming out, and moving the materials around—it makes it impossible to immerse myself in the lecture. Many others have also pointed out issues with the lecture materials, to the point where I started wondering if you recorded the audio first and then used AI to match the visuals to it. I purchased this course with high expectations for the content, but I've stopped watching because I simply can't concentrate. I hope you can improve this.

    • americasnail
      Instructor

      Hello, Doriru. Thank you for your valuable feedback. As you mentioned, I fully understand your point that the lecture materials and screen layout made it difficult to focus on the content. Since many other students also expressed disappointment regarding the lecture materials, we have already distributed a completely revised set of new materials. While the core content of the lecture remains largely unchanged, leading us to prioritize video updates lower, we plan to continuously improve the screen layout and delivery methods. My intention was to help understanding by showing the explanation and materials together, but if it ultimately hindered immersion, I agree it is an area that needs improvement. I also noted your comment about it feeling like an AI voice was used. Because many people found the speaking style and pace in previous lectures uncomfortable, I have been recording and editing multiple times during the production process to enhance clarity and naturalness. However, if it felt that way from a student's perspective, I believe the delivery method is also something that needs to be improved. In the future, I will organize the materials to be easier to read and minimize screen transitions, zooming in, and zooming out so that you can focus more on the lecture content itself. I will actively reflect your feedback to create better lectures.

    • americasnail
      Instructor

      The improvement has been completed.

  • hoojunlee7658님의 프로필 이미지
    hoojunlee7658

    Reviews 1

    ∙

    Average Rating 3.0

    Edited

    3

    37% enrolled

    The instructor's level of knowledge is high, but the delivery of the lecture fell short of expectations, so I am leaving feedback focused on drawbacks and areas for improvement. 1. The teaching materials are poor. Regarding the attached PPT materials: I can tell they were made with Claude, but shouldn't there at least be some post-editing for line breaks or broken blocks? (It's only a few pages, so it wouldn't even take 30 minutes.) The font in the video materials is too small to see clearly, and the focus keeps shifting, so I gave up trying to follow along visually. The explanation and the materials feel disconnected. 2. There is too much redundant and unnecessary theoretical explanation from the beginning through the middle. (It felt like being teased, wondering when we would finally get to the main point.) It seems like you have a lot of information to share, but from a learner's perspective, it is difficult to summarize or organize the core points. 3. I was expecting hands-on practice in the latter half, but it ultimately felt like just watching the instructor's demo presentation. It would be much better if you organized the curriculum to be more core-focused, added practical explanations, and guided students to actually type out sample code or markdown files while explaining. I've only skimmed parts of the latter half, but I still have high hopes and will definitely finish the course.

    • americasnail
      Instructor

      Hello jjun1004, First of all, thank you very much for your suggestions for improvement. We will review the points you mentioned and update the service by reflecting those improvements in the latter half of July. We apologize for any disappointment caused. Thank you for taking the course, and we wish you a wonderful day.

    • Now I understand what this review was about. I paid today and realized it after getting past three pages... I’ve already gone over 7%, so I can’t cancel it. Sigh... Ah... the text is way too hard to see...

  • jonghun7lee0826님의 프로필 이미지
    jonghun7lee0826

    Reviews 1

    ∙

    Average Rating 2.0

    2

    32% enrolled

    • americasnail
      Instructor

      Hello, Jonghoon Lee. Thank you for leaving a course review. Since you gave a 2-star rating after completing 32% of the course, I take this to mean that there were areas that did not meet your expectations. However, as there are no specific comments provided, it is difficult for me to pinpoint exactly what needs improvement. If you could let me know which parts you found disappointing, I will actively reflect your feedback in future course updates. Currently, I am planning to update the CodeCraft Harness Engineering practice course to include new updates aligned with the release of the Opus 4.8 model. I will continue to improve the course to make it easier to understand and more applicable. Thank you.

  • kmsaa2862님의 프로필 이미지
    kmsaa2862

    Reviews 2

    ∙

    Average Rating 3.5

    2

    68% enrolled

    1. There is a lot of unnecessary content in the middle. 2. The target audience is unclear. - Is it for non-majors? Or for majors? - Is it for job seekers? Or for working professionals? - Etc. 3. Looking at the curriculum and titles, it seems like a course for professional developers, but the actual hands-on sessions are nothing more than just watching the instructor do it.

    • americasnail
      Instructor

      Hello Min-seok, thank you for your course review. 1. First, I will review and improve the unnecessary content in the middle to reflect your feedback. 2. When creating the course, the target audience was both non-majors and majors. 3. In the practical lectures, I made it possible to use the prompts directly from the class notes. I also divided the lectures so that you can practice at every step. I believe that if students do not actively participate, the practical lectures will just feel like watching. Nevertheless, to improve upon the feedback you provided, I will reinforce the course with checkpoints and missions so that students can follow along and create actual practical results. Thank you, and have a great day.

  • claid님의 프로필 이미지
    claid

    Reviews 10

    ∙

    Average Rating 4.2

    1

    8% enrolled

    Unlike the previous lectures, this PPT seems to have been created using an AI tool, so the text is too small to understand the content. In addition to the small font size, the text has borders around it on the PPT, which significantly reduces readability. The lecture materials you created yourself, as you did before, were much higher quality, so I’m somewhat disappointed with these materials.

    • americasnail
      Instructor

      Hello NPE, thank you for your feedback. We understand that you found the materials difficult to read at the 8% completion point. We will review the font size and layout you mentioned. However, this course is structured as a complete flow that includes hands-on exercises and additional materials in the latter half. If possible, we would appreciate it if you could continue a little further and then reevaluate the course as a whole.

americasnail's other courses

Check out other courses by the instructor!

Similar courses

Explore other courses in the same field!

Limited time deal ends in 7 days

$51.70

24%

$68.20