AI Library

AI Library

Books for Reading AI

Choose a book, then read it in order from the table of contents.

Chinese Government AI Regulations cover

Contents

Chinese Government AI Regulations

Kim Kyung-jin, Attorney at Law

Chinese originals, translations, terms, issuing bodies, effective dates, administrative interpretations, and judicial materials

This edition orders Chinese AI-related laws, administrative regulations, military regulations, departmental rules, policy documents, and national standards by legal force. Each entry keeps the Chinese original text and adds an English translation or explanation, legal terms, issuing body, effective date, administrative interpretations, and judicial materials where available.

Fathers of Chinese AI cover

Table of Contents

Fathers of Chinese AI

Kim Kyung-jin, Attorney at Law

Ten lives behind China's AI ascent

This book follows Kai-Fu Lee, Robin Li, Jie Tang, Liang Wenfeng, Yang Zhilin, Yan Junjie, Wang Xiaochuan, Jingren Zhou, Shunyu Yao, and Yonghui Wu through the laboratories, companies, models, and policy environment that shaped Chinese AI.

How Far Has AI Entered Chinese Hospitals? cover

Table of Contents

How Far Has AI Entered Chinese Hospitals?

Kim Kyung-jin, Attorney at Law

A quiet shift in clinics, imaging rooms, and hospital administration

This book follows how artificial intelligence has entered Chinese hospitals, using Chinese and English materials together with original Chinese policy texts. It covers national policy, medical foundation models, clinical decision support, image reading, hospital information departments, traditional Chinese medicine, AI-native hospitals, the patient experience, hallucination and responsibility, regulation, and money. The final chapters collect major Chinese guidelines and the 84 health-sector AI application scenarios, with translated text and summaries.

Andrew Ng Biography cover

Table of Contents

Andrew Ng Biography

Kim Kyung-jin, Attorney at Law

A central figure in AI education and public learning

This book follows Andrew Ng from London, Hong Kong, Singapore, Carnegie Mellon, MIT, Berkeley, and Stanford to Google Brain, Coursera, Baidu, DeepLearning.AI, Landing AI, AI Fund, and Amazon. It reads his career through research, teaching, company building, and his practical view of AI.

Mykhailo Fedorov, Leading Figure of Ukraine's Drone War cover

Table of Contents

Mykhailo Fedorov, Leading Figure of Ukraine's Drone War

Kim Kyung-jin

From the State in a Smartphone to the Defense Ministry of the Drone War

This book follows Diia, IT Army, Starlink, UNITED24, Brave1, the Unmanned Systems Forces, drone procurement, and battlefield data to explain how Mykhailo Fedorov tied technology to state power in wartime Ukraine.

China’s Leading AI Firms and Government Agencies cover

Table of Contents

China’s Leading AI Firms and Government Agencies

Kim Kyung-jin

Policy, Companies, Data, and Hardware in China’s Intelligent Economy

This book follows China’s AI policy arc from the 2017 next-generation AI plan to AI+ and the 15th Five-Year Plan. It maps the roles of the State Council, NDRC, CAC, MIIT, and SAC, then reads DeepSeek, the AI Tigers, Alibaba, Tencent, Baidu, ByteDance, iFLYTEK, Huawei Ascend, East Data West Computing, manufacturing, education, consumption, and humanoid robotics as one connected system.

U.S. Department of War CDAO (Chief Digital and AI Officer) cover

Table of Contents

U.S. Department of War CDAO (Chief Digital and AI Officer)

Kim Kyung-jin, Attorney at Law

How the Military’s Brain Is Being Redesigned

From the moment in January 2026 when the U.S. Department of War declared data hoarding a national security threat, this book follows the birth of the CDAO (Chief Digital and Artificial Intelligence Office) and the five organizations it absorbed, Advana and the War Department Data Platform, the Open DAGIR procurement experiment, Project Maven and CJADC2 on the battlefield, and Responsible AI, allies, and critics — the story of how America is redesigning its military’s brain.

Science and Technology Commission of the CMC of the Communist Party of China cover

Table of Contents

Science and Technology Commission of the CMC of the Communist Party of China

Kim Kyung-jin

STC, Military-Civil Fusion, and China’s Military Technology Innovation

This English AI Library edition follows the CMC Science and Technology Commission, the Equipment Development Department, military-civil fusion, intelligentized warfare, emerging technology competition, and the institutional limits of China’s military innovation system.

The Chinese Communist Party School cover

Table of Contents

The Chinese Communist Party School

Kim Kyung-jin

Where Power Is Trained

This book follows the Chinese Communist Party school system from Ruijin and Yan'an to the Central Party School, the National Academy of Governance, provincial and county schools, young-official training classes, Cai Qi's leadership, and the Mwalimu Julius Nyerere Leadership School.

DARPA, America’s Defense Research Lab cover

Table of Contents

DARPA, America’s Defense Research Lab

Kim Kyung-jin

This book follows DARPA through its 2026 office reorganization, budget signals, AIxCC, AI Forge, RACER, LongShot, quantum computing, space robotics, battlefield medicine, and strategic-material programs, using official sources as the main trail.

AI and the Classroom cover

Table of Contents

AI and the Classroom

Kim Kyung-jin

The AI Teacher That Does Not Give Answers

From Estonia's AI Leap and Khanmigo to answer leakage, Korean AI digital textbooks, and teacher-in-the-loop classrooms, this book asks how AI can protect thinking instead of replacing it.

Spiderweb cover

Table of Contents

Spiderweb

Kim Kyung-jin

Ukraine's drone revolution that changed the map of war

A narrative account of Operation Spiderweb on June 1, 2025, and how Ukraine's drones reached deep inside Russia and changed military planning, intelligence work, and security assumptions.

The Architect of Contradictions cover

Table of Contents

The Architect of Contradictions

Kim Kyung-jin

Peter Thiel and the empire built by a man who hated competition

Peter Thiel, from a South African childhood to PayPal, Facebook, Palantir, politics, and the dream of defeating death.

Claude, GPT, Palantir, and the 2026 World War cover

8 readings

Claude, GPT, Palantir, and the 2026 World War

Kim Kyung-jin

How Artificial Intelligence Came to Pull the Trigger of War. Prologue, 3 Parts / 6 Chapters, Epilogue

A single name sits on the screen. An intelligence officer looks at it for twenty seconds, confirms only that it is a man, and moves on. Inside those twenty seconds a person dies, and the responsibility for deciding to kill him disappears. From Lavender over Gaza to Maven in Ukraine, Epic Furies over Iran, and target selection in the skies of Venezuela, this book follows the hand that chooses targets as it passes from human to machine in the wars of 2026.

China's Robotics Industry 2026: The Age of Mass Production and Real-World Deployment cover

25 readings

China's Robotics Industry 2026: The Age of Mass Production and Real-World Deployment

Kim Kyung-jin

From the humanoid mass-production race to U.S.-China hegemony: the state of China's robotics industry in 2026. Table of Contents, Preface, 7 Parts / 23 Chapters, Epilogue

In a factory in Shenzhen, hundreds of humanoid robots repeat the same motion. This book traces the mass-production race between Unitree and UBTECH, the Optimus supply chain, real-world deployment sites, and where Korea stands amid the U.S.-China tech hegemony.

Crossing the Adolescence of Technology Cover

15 Parts in Total

Crossing the Adolescence of Technology

Kim Kyung-jin

Dario Amodei, Anthropic, and the Struggle Toward Controllable Intelligence. Table of Contents, Preface, Prologue, 12 Chapters, Epilogue

The struggle of a physicist who lost his father to create controllable artificial intelligence. The story of Dario Amodei and Anthropic clashing with the Pentagon and the White House, shaking the era with the scaling law and Constitutional AI.

37 Concrete Codex Use Cases cover

Book-style reading

37 Concrete Codex Use Cases

Kim Kyung-jin

From morning briefings to agent swarms: 37 real-world workflow automations

This guide gathers 37 ways to connect Codex and AI agents to real work: personal routines, data processing, marketing, sales, documents, development, and browser control.

Share

2026 Beijing: The Dangerous Dance of Two Giants book cover

16 posts available

2026 Beijing: The Dangerous Dance of Two Giants

Kim Kyung-jin

Table of Contents, Introduction, 13 Chapters, Epilogue

This book reads the Beijing summit through Hormuz, rare earths, Taiwan, Boeing, soybeans, AI chips, and Korea’s exposure to the U.S.-China bargain.

Share

Leaving It to AI and Stepping Away cover

27 posts

Leaving It to AI and Stepping Away

Kim Kyung-jin

A Complete Beginner’s Guide to YOLO Mode. Table of contents and 26 chapters

A beginner-friendly online book on YOLO mode in Claude Code and Codex. It explains how to let AI read files, write code, run commands, and finish work while keeping rollback, Docker sandboxing, and safety checks close at hand.

Share

Artificial Intelligence Fighter, Artificial Intelligence Air Force book cover

43 posts available

Artificial Intelligence Fighter, Artificial Intelligence Air Force

Kim Kyung-jin

Table of Contents, Preface, 40 Chapters, Epilogue

Artificial Intelligence Fighter, Artificial Intelligence Air Force is an online AI Library book by Kim Kyung-jin. It covers AI fighters, autonomous air power, unmanned combat aircraft, CCA, MUM-T, sixth-generation fighters and is organized as Table of Contents, Preface, 40 Chapters, Epilogue.

Share

Artificial Intelligence on Trial book cover

26 posts available

Artificial Intelligence on Trial

Attorney Kyungjin Kim

Table of Contents, Preface, 21 Chapters, 3 Appendices

Artificial Intelligence on Trial is an online AI Library book by Attorney Kyungjin Kim. It covers artificial intelligence and law, AI liability, algorithmic judgment, courts and technology and is organized as Table of Contents, Preface, 21 Chapters, 3 Appendices.

Share

PALANTIR book cover

16 posts available

PALANTIR: War, Surveillance, Artificial Intelligence

Attorney Kyungjin Kim

Table of Contents, Preface, 14 Chapters

PALANTIR: War, Surveillance, Artificial Intelligence is an online AI Library book by Attorney Kyungjin Kim. It covers Palantir, war, surveillance, artificial intelligence, data analytics, national security and is organized as Table of Contents, Preface, 14 Chapters.

Share

Brain Readers: Neuralink and the Final Human Revolution book cover

21 posts available

Brain Readers: Neuralink and the Final Human Revolution

Kim Kyung-jin

Table of Contents, Prologue, 18 Chapters, Epilogue

Brain Readers: Neuralink and the Final Human Revolution is an online AI Library book by Kim Kyung-jin. It follows Neuralink, brain-computer interfaces, brain data, medicine, neurorights, and the future of human enhancement.

Share

Artificial Intelligence and the Reshaping of Society book cover

16 posts available

Artificial Intelligence and the Reshaping of Society

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Epilogue

Artificial Intelligence and the Reshaping of Society is an online AI Library book by Kim Kyung-jin. It follows how artificial intelligence changes work, education, inequality, cities, democracy, and human relationships.

Share

The Jensen Huang Story book cover

16 posts available

The Jensen Huang Story

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Epilogue

The Jensen Huang Story is an online AI Library book by Kim Kyung-jin. It covers Jensen Huang, NVIDIA, GPUs, AI chips, and the AI industry.

Share

Ten Questions AI Poses to Humanity book cover

12 posts available

Ten Questions AI Poses to Humanity

Kim Kyung-jin

Table of Contents, Preface, 10 Chapters

Ten Questions AI Poses to Humanity is an online AI Library book by Kim Kyung-jin. It asks how artificial intelligence changes truth, weapons, work, data, identity, and human control.

Share

Malaysia and the Malacca Strait book cover

23 posts available

Malaysia and the Malacca Strait: Whoever Controls It Controls the World

Kim Kyung-jin

Table of Contents, Preface, 20 Chapters, Epilogue

Malaysia and the Malacca Strait is an online AI Library book by Kim Kyung-jin. It covers Malaysia, the Malacca Strait, maritime logistics, geopolitics, global trade, and Southeast Asia’s strategic future.

Share

Georgia history and culture travel book cover

24 posts available

A Journey Through Georgia’s History and Culture

Kim Kyung-jin

Table of Contents, Preface, 17 Chapters, 4 Appendices, Epilogue

A Journey Through Georgia’s History and Culture is an online AI Library book by Kim Kyung-jin. It covers Georgia’s history, culture, religion, politics, travel, and the Caucasus crossroads between Europe and Asia.

Share

Reading Armenia book cover

13 posts available

Reading Armenia: A Thousand Prayers, One Mountain

Kim Kyung-jin

Table of Contents, Preface, 10 Chapters, Epilogue

Reading Armenia: A Thousand Prayers, One Mountain is an online AI Library book by Kim Kyung-jin. It covers Armenian history, faith, Mount Ararat, cultural memory, travel, and the endurance of a small nation.

Share

Mastering Claude Code book cover

41 posts available

Mastering Claude Code

Kim Kyung-jin

Table of Contents, Preface, Chapters, Appendices

Mastering Claude Code is an online AI Library book by Kim Kyung-jin. It covers Claude Code setup, commands, workflows, automation, agents, and practical methods for using Claude Code in real work.

Share

Claude Cowork and Agent manual book cover

11 posts available

Claude Cowork and Agent Utilization Manual

Kim Kyung-jin

Table of Contents, Preface, 8 Chapters, Closing Note

Claude Cowork and Agent Utilization Manual is an online AI Library book by Kim Kyung-jin. It covers Claude Code, AI agents, coding automation, work automation, and practical agent-based collaboration.

Share

2026 U.S.-Iran War and the Global Energy Crisis book cover

39 posts available

The 2026 U.S.-Iran War and the Global Energy Crisis

Kim Kyung-jin

Table of Contents, Preface, Chapters and Appendices

The 2026 U.S.-Iran War and the Global Energy Crisis is an online AI Library book by Kim Kyung-jin. It covers war, oil, the Strait of Hormuz, maritime security, energy markets, and the global consequences of conflict.

Share

The Traces Han Dong-hoon Left on South Korea book cover

13 posts available

The Traces Han Dong-hoon Left on South Korea

Kim Kyung-jin

Table of Contents, Prologue, Chapters, Epilogue

The Traces Han Dong-hoon Left on South Korea is an online AI Library book by Kim Kyung-jin. It examines his record in justice policy, immigration reform, public institutions, and the structural questions facing South Korea.

Share

The Han Dong-hoon Story book cover

39 posts available

The Han Dong-hoon Story

Kim Kyung-jin

Table of Contents, Prologue, Chapters, Epilogue

The Han Dong-hoon Story is an online AI Library book by Kim Kyung-jin. It traces Han Dong-hoon’s life, public career, political choices, and the changing landscape of South Korean conservative politics.

Share

Beyond the Glass Ceiling cover

39 entries

Beyond the Glass Ceiling

Kim Kyung-jin

Table of contents, prologue, 31 chapters, epilogue, 5 appendices

A political biography tracing Sanae Takaichi’s rise from Nara to Japan’s premiership, through party struggles, security policy, diplomacy, and the meaning of Japan’s first female prime minister.

Share

AI Hegemony War book cover

8 posts available

AI Hegemony War

Kim Kyung-jin

Table of Contents, 7 Chapters

An online AI Library book by Kim Kyung-jin on AI superintelligence, the U.S.-China technology race, Europe and Korea’s AI laws, and international AI governance.

Share

Sam Altman Biography: Pioneer of the AI Revolution cover

22 posts

Sam Altman Biography: Pioneer of the AI Revolution

Kim Kyung-jin, Kim Kyung-ran

Table of contents, preface, 7 parts, 20 chapters

An online biography following Sam Altman’s childhood, startups, Y Combinator, OpenAI, ChatGPT, the 2023 board crisis, and his sense of responsibility in the AI era.

Share

From Chaiwala to Prime Minister cover

13 entries

From Chaiwala to Prime Minister

Kim Kyung-jin

Table of contents, preface, 10 chapters, epilogue

A political biography tracing Narendra Modi from a chai-selling boy in Vadnagar to RSS organizer, Gujarat chief minister, and three-term prime minister, while reading modern India, Korea-India relations, and the risks of a rising power.

Share

AI Classroom: Your Grades Will Change book cover

26 posts available

AI Classroom: Your Grades Will Change

Kim Kyung-jin

Table of Contents, Preface, 24 Sections

An online AI Library book by Kim Kyung-jin on how AI can support elementary, middle, and high school learning, teaching, assessment, and educational equity.

Share

Military Artificial Intelligence cover

17 entries

Military Artificial Intelligence

Kim Kyung-jin and Kim Won-tae

Table of contents, preface, 14 chapters, epilogue

A full-length study of military artificial intelligence, from autonomous weapons, drones, command systems, logistics, and cyber defense to the strategies of the United States, China, Israel, Korea, and global defense AI companies.

Share

Global Case Studies in Introducing AI into Public Administration book cover

25 posts available

Global Case Studies in Introducing AI into Public Administration

Kim Kyung-jin

Table of Contents, 23 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on public-sector AI adoption, national strategies, administrative services, governance, and future policy tasks.

Share

Seven Misunderstandings About the Arctic Route book cover

10 posts available

Seven Misunderstandings About the Arctic Route

Kim Kyung-jin

Table of Contents, Preface, 7 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on seven common misunderstandings about the Arctic Route, including speed, liner service, insurance, safety rules, year-round access, carbon impact, and infrastructure.

Share

Artificial Intelligence Election cover

14 posts

Artificial Intelligence Election

Kim Kyung-jin

Table of contents, author preface, 11 chapters, closing essay

An online book on campaign messaging, publicity materials, digital campaigning, data analysis, campaign operations, disinformation defense, legal risk, and ready-to-use prompts.

Share

Demis Hassabis book cover

34 posts available

Demis Hassabis, Father of Google’s Artificial Intelligence

Kim Kyung-ran, Kim Kyung-jin

Table of Contents, Author’s Preface, 31 Chapters, Epilogue

Demis Hassabis, Father of Google’s Artificial Intelligence is an online AI Library book by Kim Kyung-ran, Kim Kyung-jin. It covers Demis Hassabis, Google DeepMind, artificial intelligence, AlphaGo, AI research and is organized as Table of Contents, Author’s Preface, 31 Chapters, Epilogue.

Share

The Dhammapada 423 Verses book cover

28 posts available

The Dhammapada: 423 Verses

Kim Kyung-jin

Table of Contents, Editor’s Note, 26 Chapters, 423 Verses

An online AI Library book by Kim Kyung-jin. This edition arranges all 423 verses of the Dhammapada into 26 chapters for slow, poetic reading.

Share

Nano Banana Pro Practical Prompt Book cover

24 posts

Nano Banana Pro Practical Prompt Book

Kim Kyung-jin

6 parts, 22 chapters, classroom prompt appendix

An online book for using Nano Banana Pro in classes and real work, covering image generation, editing, text rendering, character consistency, business use cases, and monetization.

Share

Liberal Arts AI for College Students book cover

16 posts available

Liberal Arts AI for College Students

Kim Kyung-jin

Table of Contents, Preface, 13 Chapters, Closing Essay

An online AI Library textbook for college students. It introduces AI history, daily use, document work, research, images, presentations, video, productivity, learning, careers, copyright, and governance.

Share

Legal Practice and Artificial Intelligence book cover

16 posts available

Legal Practice and Artificial Intelligence

Kim Kyung-jin

Table of Contents, Preface, 14 Parts

An online AI Library book by Kim Kyung-jin on legal research, drafting, evidence analysis, contract review, NotebookLM, and practical generative AI workflows for legal practice.

Share

Hello, I Am Kim Kyung-jin book cover

10 posts available

Hello, I Am Kim Kyung-jin

Kim Kyung-jin

Table of Contents, Preface, Recommendations, 6 Chapters, Closing

An online AI Library book on Kim Kyung-jin’s life, science and technology policy, parliamentary diplomacy, legislative battles, Dongdaemun vision, and proposals for Korea’s demographic future.

Share

Politics and People book cover

25 posts available

Politics and People

Kim Kyung-jin

Table of Contents, Prologue, 22 Chapters, Epilogue

An online AI Library book by Kim Kyung-jin on how politics begins with reading people, winning trust, keeping relationships, and enduring seasons of crisis.

Share

[AI Library] Chapter 26: Agent Teams: Agents Working in Conversation

Mastering Claude Code
Author
Kim Kyung-jin
Date
2026-05-06 09:09
Views
647

Mastering Claude Code

Chapter 26: Agent Teams: Agents Working in Conversation

Kim Kyung-jin

Mastering Claude Code

The Core Difference Between Subsidiary Agents and Agent Teams

You enter a single prompt: "Create a landing page for a fictional AI startup." A moment later, the screen splits. Three agents wake up simultaneously: a frontend developer agent marked in blue, a backend developer agent in green, and a QA agent in yellow. Each of the three agents begins work in its own domain. But something different happens compared with subsidiary agents.

The frontend developer sends a message to the backend developer. The QA agent sends revision requests to both developers. The agents are communicating with one another.

This is an agent team.

The difference between subsidiary agents and agent teams lies in their communication structure. Subsidiary agents are one-way. When the main session sends a prompt, a subsidiary agent performs the task and returns the result to the main session. In this process, subsidiary agents cannot communicate with one another. Even if they run in parallel, each works in isolation.

Agent teams are two-way. Team members can exchange messages with each other. They can assign tasks to one another. They manage a shared task list together. Direct communication among team members is possible without passing through the main session.

[Figure 26-1] Comparison of communication structure between subsidiary agents and agent teams: Subsidiary agents have only one-way arrows between the main session and themselves. Agent teams have two-way arrows among team members and a shared task list.

The consequences of this structural difference are dramatic.

In a subsidiary agent structure, when you request "Refactor the code and write tests," the main session sends tasks to the refactor agent and the test-writing agent separately. Both agents complete their work independently and send their respective results back to the main session. The main session synthesizes the two results.

The problem is that the refactor agent may have changed the function signature, but the test-writing agent may have written tests based on the original signature. Since they cannot communicate with each other, there is no way to detect such mismatches.

In an agent team structure, the situation is different. When the refactor agent changes a function signature, it can send a message to the test-writing agent: "This function's signature has changed, so please take note." The test-writing agent writes tests reflecting the changed signature. If the QA agent discovers a problem, it requests the fix directly from the relevant agent. There is no need to route through the main session as an intermediary.

An agent team has a main orchestrator that serves as the team lead, much like a project manager. It creates agents, initializes the task list, monitors overall progress, and confirms the quality of results. However, not all communication goes through this orchestrator. Team members communicate directly when necessary.

The Shared Task List and Mutual Task Assignment

The core infrastructure that makes collaboration possible in an agent team is the shared task list.

When the main orchestrator creates an agent team, the first action is to construct a task list. Items such as frontend development, backend API implementation, test writing, and QA verification are listed, and each item is assigned to an owner.

The fact that this task list is shared is crucial. Every team member can see the entire task list. When a member completes their work, they update the status. They can check other team members' progress. And here is the decisive difference from subsidiary agents: a team member can assign new tasks to another team member.

This mechanism came vividly to life in one demonstration. The frontend and backend developers each completed their work and sent their results to the QA agent. The QA agent's verification revealed three critical issues. The QA agent returned these issues to both the frontend and backend developers, assigning each of them a fix task.

After the two developers completed their revisions and sent them back to the QA agent, the second round of verification resulted in a pass. All three critical issues had been resolved.

[Figure 26-2] Detailed flow of collaboration based on a shared task list: frontend and backend work complete → QA agent verification → 3 issues identified → fix tasks assigned to respective developers → revalidation → pass.

Throughout this process, the main orchestrator monitored the entire flow and provided status updates, but the communication between the QA agent and the developer agents regarding requested fixes happened directly. This is direct team member-to-member communication, bypassing the main orchestrator.

Team members use a send message tool to communicate with one another. If the prompt specifies "When your work is done, send a message to the frontend developer," the agent delivers that message directly to the team member.

The Collaboration Scenario Between the Refactor Agent and the Test-Writing Agent

Let us trace the workings of an agent team through a concrete scenario.

A user makes a request to the main session: "Refactor this module and add tests."

The main session analyzes the request. Two specialist domains are needed: refactoring and test writing. The main session searches for agents and locates the refactor agent and the test-writing agent.

In the subsidiary agent approach, it would proceed as follows. The main session sends the refactor agent a prompt: "Refactor this module." Simultaneously, it sends the test-writing agent a prompt: "Write tests for this module." The two agents work in parallel. Their respective results return to the main session. The main session combines the two results.

The tests may need to be updated to match the refactored code. This revision would either be done by the main session directly or require calling the test-writing agent again.

In the agent team approach, the flow is different. The main orchestrator assembles a refactor plus tests team. A shared task list is created.

The refactor agent begins work first. It performs function extraction, variable renaming, interface cleanup, and other operations. When the work is complete, it sends a message to the test-writing agent: "Refactoring is complete. The changed function signatures are as follows." The test-writing agent writes tests based on this information. The resulting tests accurately reflect the changed interface.

If some tests fail when executed, the test-writing agent can send a message to the refactor agent: "This function's return type differs from the documentation. Please verify." The refactor agent checks and makes corrections. The tests are run again. This iteration happens within the team itself.

[Figure 26-3] Detailed flow of agent team collaboration scenario: Refactor agent completes work → Conveys changes to test agent → Test writing → If tests fail, test agent sends feedback to refactor agent → Refactor agent fixes → Retest → Pass → Reports completion to main orchestrator.

Using a T-Mux terminal, you can observe this process visually. The screen is split to show each agent's work in real time. You can see the blue agent refactoring code while the green agent waits, and the moment it receives a message, it begins writing tests. You can even send direct messages to a specific agent to provide additional instructions if needed.

Architecture Principles to Consider When Building an Agent Team

Agent teams are powerful, but if misconfigured, you may end up with high costs and confusing results. Here are the principles to follow when assembling a team.

Role Clarity: Assign Each Agent a Distinct Domain

Each agent on the team should have its own files and its own deliverables. If multiple agents modify the same file, there is a risk that they will overwrite one another's work. Specify clearly in the prompt that the frontend developer modifies only frontend files and the backend developer modifies only backend files.

Deliverables must also be defined concretely. "Write good code" is vague. "Implement REST API endpoints and create a test file for each endpoint in the /tests/ folder" is clear. Make it explicit to agents what they must create and where to save it.

Communication Protocol: Design Who Speaks to Whom and When

The fact that agents can communicate freely does not mean you can skip designing a communication structure. Defining the communication flow explicitly in the prompt yields much better results.

"When backend development is complete, deliver the API specification to the frontend developer." "When all development is complete, send the results to the QA agent." "If issues are found in QA, request fixes from the responsible agent for that file." Specifying this explicitly helps agents understand dependencies and proceed through tasks in the correct order.

It is also important to specify the recipient by name. "Send this to another agent" is vague. "Send this to the frontend developer agent" is precise.

Preventing Conflict: Agents Don't Interfere with Each Other

We've already covered file ownership. Beyond that, several conflict prevention strategies exist.

Preapproved Permissions: If agents halt their work each time they need permission checks, the entire workflow slows down. By preapproving specific commands in your project settings or local machine settings, work flows without interruption. Team members inherit permissions from the main session, so setting Bypass Mode in the main session gives all team members the same permissions.

Plan Approval Mode: You can configure team members to draft plans before starting work, then execute only after the main orchestrator approves the plan. Initially, you approve each plan directly, but as you grow familiar with how the team operates, it's practical to delegate approval to the main session. You can also designate one team member to handle plan review and approval exclusively.

Graceful Shutdown: When work ends, the main orchestrator sends a shutdown request to each team member: "Save your work and shut down." A team member can respond "I'm not finished yet" if work is still in progress. The team dissolves only after all members confirm completion. Forcing a shutdown may leave work in a disorganized state, so going through a graceful shutdown procedure is safer.

Team Size and Cost

Each team member in an agent team runs an independent session. With three agents, costs are roughly triple. With five, they're five times higher.

We recommend team sizes of 3 to 5 members. Large agent swarms of 10 or more see costs rise sharply, and coordination complexity increases proportionally.

[Table 25-1] Criteria for Determining Agent Team Suitability

For work that can be processed sequentially, helper agents suffice. If agents don't need to communicate, helper agents are better. If multiple agents must edit the same file, you need to redesign your structure, whether with agent teams or helper agents.

How to Set Up Agent Teams

Agent teams are an experimental feature and are disabled by default. To activate them, add environment variables to your project's .claude/settings.local.json file. Copy the relevant JSON from the Agent Teams page in the Claude Code official documentation and paste it into your settings file.

Prompts that invoke agent teams follow this structure pattern:

1. Set the goal: Specify the goal the entire team must achieve. Since team members wake up with no context, the main session must communicate the goal clearly. 2. Form the team: Specify team size and model, as in "Create a three-member team using the Sonnet model." 3. Define roles: Describe each team member's role, responsibilities, and communication partners in detail. 4.

Define the final deliverable: Specify the final output the main session will receive from the team's work.

[Figure 26-4] Agent Team Prompt Structure: Goal → Team Formation → Role-Specific Instructions (Including Communication Partners) → Final Deliverable Definition]

Running agent teams in a T-Mux terminal lets you observe each agent's work in real time with split-screen views. You can spot agents heading in the wrong direction early and terminate them, preventing wasted costs. Since IDE extensions can't show agents' internal thinking in detail, T-Mux environments are better suited for complex agent team work.

Helper agents are specialists who work independently under the main session's direction. Agent teams are groups that communicate and collaborate toward a shared goal. Both are powerful tools, but they apply to different contexts. Choose helper agents for fast, efficient delegation; choose agent teams when complex interdependencies and high quality are required.

Combining these two structures appropriately for your situation is what makes an effective Claude Code operator, and it forms the foundation for moving to the next stage: designing workflows by weaving skills and agents together.

Attorney Kim Kyung-jin, AI Expert

Specialist in AI Policy and Law · Former Member of the National Assembly · Author of Multiple Books

If this book stayed with you even for a moment, please support it so the next story can reach the world.

(Voluntary support account: NH Bank 302-1096-0948-81 Account holder: Kim Kyung-jin)

Kim Kyung-jin

Attorney · Former Member of the National Assembly · AI Policy Researcher

kimkj.com

© 2026 Kim Kyung-jin. All rights reserved.

#KimKyungjin #AILibrary #MasteringClaudeCode
kimkj.com Home
Scroll to Top
kimkj.com Home