BeClaude

claude-code-book

New
3.7kGitHubGeneralby lintsinghua

《御舆:解码 Agent Harness》42万字拆解 AI Agent 的Harness骨架与神经 —— Claude Code 架构深度剖析,15 章从对话循环到构建你自己的 Agent Harness。在线阅读网站:

First seen 5/22/2026

Summary

This skill provides a comprehensive 42-chapter guide to the architecture of Claude Code's Agent Harness, covering everything from the dialogue loop to building your own harness.

  • It helps developers understand the internal mechanics of AI agents and apply those patterns to their own projects.

Install & Usage

1
Create the agents directory
mkdir -p .claude/agents
2
Save the agent file

Add the configuration to .claude/agents/claude-code-book.md

3
Invoke with @agent-name
@claude-code-book

Use Cases

Study the dialogue loop and message processing pipeline of Claude Code.
Learn how to build a custom Agent Harness for your own AI applications.
Understand the skeleton and neural architecture behind autonomous AI agents.
Debug or extend Claude Code's behavior by referencing its internal design.
Use the book as a reference for implementing agentic patterns in your codebase.

Usage Examples

1

Explain the dialogue loop from chapter 3 of the Claude Code book.

2

How does the Agent Harness manage tool calls? Refer to the book.

3

Show me the architecture diagram for building my own harness from chapter 15.

View source on GitHub
agent

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is claude-code-book?

This skill provides a comprehensive 42-chapter guide to the architecture of Claude Code's Agent Harness, covering everything from the dialogue loop to building your own harness. It helps developers understand the internal mechanics of AI agents and apply those patterns to their own projects.

How to install claude-code-book?

To install claude-code-book: create the agents directory (mkdir -p .claude/agents), then add the config to .claude/agents/claude-code-book.md. Finally, @claude-code-book in Claude Code.

What is claude-code-book best for?

claude-code-book is a agent categorized under General. It is designed for: agent. Created by lintsinghua.

What can I use claude-code-book for?

claude-code-book is useful for: Study the dialogue loop and message processing pipeline of Claude Code.; Learn how to build a custom Agent Harness for your own AI applications.; Understand the skeleton and neural architecture behind autonomous AI agents.; Debug or extend Claude Code's behavior by referencing its internal design.; Use the book as a reference for implementing agentic patterns in your codebase..