/ 目录 / 演练场 / Learn Claude Code
● 社区 shareAI-lab ⚡ 即开即用

Learn Claude Code

作者 shareAI-lab · shareAI-lab/learn-claude-code

Reverse-engineered, readable harness for Claude Code in bash — the 'nand2tetris' version of an AI coding agent.

Learn Claude Code is a teaching artifact: a working bash-implemented agent harness that mimics Claude Code's loop. The skill packages it so you can install, run, and read along inside Claude itself.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

作者仓库 · Claude Skills 官方文档

使用场景

实战用法: Learn Claude Code

Understand the Claude Code loop by reading 200 lines of bash

👤 Claude Code users ⏱ ~15 min intermediate

何时使用: You want to know what really happens between user prompts and tool calls.

步骤
  1. Install
    Clone the repo.✓ 已复制
    → Files local
  2. Read
    Follow main.sh.✓ 已复制
    → Mental model
  3. Run
    Run the harness; trace executions.✓ 已复制
    → Aha moments

结果: Real understanding of agent loops.

组合

与其他 MCP 搭配,撬动十倍杠杆

learn-claude-code-skill + nanobot-mcp

Bash harness for learning; Nanobot for a Python version of the same idea

Combine learn-claude-code-skill with nanobot-mcp: Bash harness for learning; Nanobot for a Python version of the same idea✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
run / trace (see docs) Two flows 1 call

成本与限制

运行它的成本

API 配额
N/A
每次调用 Token 数
Small
费用
Free
提示
Skip to main.sh — the rest is examples

安全

权限、密钥、影响范围

凭据存储: None
数据出站: Configured LLM
切勿授予: Run with API keys you don't want to lose if the harness misbehaves

故障排查

常见错误与修复

Bash agent loops infinitely

It's educational — add a step cap at the top of main.sh

替代方案

Learn Claude Code 对比其他方案

替代方案何时用它替代权衡
Read Claude Code source (not OSS)HypotheticalNot actually available

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills