learn-claude-code
80,216
Stars
12,832
Forks
307
Watchers
59
Open Issues
MIT
许可证
Python
语言
2025-06-29
创建时间
2026-10-27
最近更新
项目能做什么
仅用 Bash 从 0 到 1 手写打造类似 Claude Code 的极简 Agent 运行底座。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[English](./README.md) | [中文](./README-zh.md) | [日本語](./README-ja.md) <a href="https://trendshift.io/repositories/19746" target="_blank"><img src="https://trendshift.io/api/badge/repositories/19746" alt="shareAI-lab%2Flearn-claude-code | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> # Learn Claude Code -- Harness Engineering for Real Agents ## Agency Comes from the Model. An Agent Product = Model + Harness. Before we write any code, one thing needs to be clear. **Agency -- the capacity to perceive, reason, and act -- comes from model training, not from external code orchestration.** But a working agent product needs both the model and the harness. The model is the driver. The harness is the vehicle. This repository teaches you how to build the vehicle. ### Where Agency Comes From At the core of every agent is a neural network -- a Transformer, an RNN, a trained function -- shaped by billions of gradient updates on sequences of perception, reasoning, and action. Agency was never bestowed by the surrounding code. It was learned during training. Humans are the original proof. A biological neural network, refined by millions of years of evolutionary pressure, perceives the world through senses, reasons through a brain, and acts through a body. When DeepMind, OpenAI, or Anthropic say "agent," they all mean the same core thing: **a model that learned to act through training, plus the infrastructure that lets it operate in a specific environment.** The historical record is unambiguous: - **2013 -- DeepMind DQN plays Atari.** A single neural network, receiving only raw pixels and game scores, learned 7 Atari 2600 games -- surpassing prior algorithms and beating human experts in 3 of them. By 2015, scaled to [49 games at professional tester level](https://www.nature.com/articles/nature14236), published in *Nature*. No game-specific rules. One model, learning from experience. - **2019 -- OpenAI Five conquers Dota 2.** Five neural networks played [45,000 years of Dota 2 against themselves](https://openai.com/index/openai-five-defeats-dota-2-world-champions/) over 10 months, then defeated **OG** -- the TI8 world champions -- 2-0 in a live match. In the public arena, the AI won 99.4% of 42,729 games. No scripted strategies. Models learned teamwork through self-play. - **2019 -- DeepMind AlphaStar masters StarCraft II.** AlphaStar [beat a professional player 10-1](https://deepmind.google/blog/alphastar-mastering-the-real-time-strategy-game-starcraft-ii/) in closed matches, then reached [Grandmaster rank](https://www.nature.com/articles/d41586-019-03298-6) on the European server -- top 0.15% of 90,000 players. An incomplete-information, real-time game with a combinatorial action space far exceeding chess or Go. - **2019 -- Tencent Jueyu dominates Honor of Kings.** Tencent AI Lab's "Jueyu" system [defeated KPL professional players in full 5v5](https://www.jiemian.com/article/3371171.html) at the World Champion Cup sem阅读完整原文
商业机会分析 AI 生成
深入自研 Coding Agent:从零手写生产级 Harness 商业实战营
| 产品构想 | 依托该开源项目的高关注度和教学定位,打包体系化高阶课程、代码工程演进记录与专属答疑服务,主打'不依赖 LangChain/LlamaIndex,用极简逻辑手写 Agent'。 |
| 核心功能 | Harness 核心循环解析、Tool Use 与 Bash 危险拦截设计、上下文管理与 Token 节省策略、多模型 API 对齐实战、工业级错误自愈机制。 |
| 目标用户 | 中高级后端/AI 工程师、正在预研内部代码助手的技术负责人。 |
| 难度/周期 | 低 · 2 - 4 周 · 成本:极低(主要是内容录制与文档整理的时间成本) |
| 收费模式 | 数字课程/电子书买断(如 Gumroad/小鹅通)、小班直播实战营、付费技术社区会员。 |
| 竞争风险 | 开源社区教程易被仿造或内容二次分发;开源模型生态变化快导致特定 Prompt/API 技巧失效。 |
| 依据 | 已验证事实(仓库主题包含 educational/teaching/tutorial 且 Star 量极高) |
Secure-Harness:企业内网轻量终端 Agent 安全网关与 SDK
| 产品构想 | 将 nano harness 升级为生产可用、带安全沙箱与权限拦截的企业级命令行 Agent 运行底座,防止 LLM 执行 rm -rf 等破坏性 Bash 指令。 |
| 核心功能 | Bash 命令静态语法树分析与高危拦截、轻量级 Docker/Firecracker 执行沙箱集成、执行审计日志全链路追踪、支持本地私有模型与商业大模型切换。 |
| 目标用户 | 有数据合规与私有化研发助手需求的企业技术团队、DevOps 架构师。 |
| 难度/周期 | 中等 · 2 - 3 个月 · 成本:低(基础测试服务器与沙箱测试环境) |
| 收费模式 | 双许可协议(开源核心 + 商业闭源插件)、企业席位订阅费、私有化部署实施咨询服务。 |
| 竞争风险 | 安全边界极难做到 100% 杜绝注入漏洞;企业销售周期较长。 |
| 依据 | 数据支持的判断(项目核心为 Bash agent harness,真实场景落地必然面临安全审计与隔离瓶颈) |
极简本地 DevOps/运维终端伴侣 CLI (商业增强版)
| 产品构想 | 基于 nano 架构封装一款专注于特定场景(如自动化日志排障、Git 复杂冲突合并、环境部署)的轻量终端 CLI 工具,为个人与小团队提供纯本地运行的智能体助手。 |
| 核心功能 | 开箱即用单文件二进制分发、终端上下文自动感知、预设标准化 DevOps 工作流 Prompt、一键回滚操作记录。 |
| 目标用户 | 独立开发者、SRE 工程师、小型外包团队开发人员。 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:极低(LLM API 调用测试成本及分发域名费用) |
| 收费模式 | 按设备授权买断/年订阅、增值高级工作流模板收费。 |
| 竞争风险 | 需直面官方 Claude Code 及 Cursor、Aider 等已有成熟终端工具的激烈竞争。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| morluto/rea | 中文介绍暂未生成 Reverse engineer anything with agents, from app behavior dow |
449,318 | TypeScript |
| mattpocock/skills | 中文介绍暂未生成 Skills for Real Engineers. Straight from my .agents director |
320,631 | Shell |
| obra/superpowers | 中文介绍暂未生成 An agentic skills framework & software development methodolo |
315,575 | Shell |
| affaan-m/ECC | 中文介绍暂未生成 The agent harness performance optimization system. Skills, i |
300,646 | JavaScript |
| NousResearch/hermes-agent | 中文介绍暂未生成 The agent that grows with you |
262,364 | Python |
| anomalyco/opencode | 中文介绍暂未生成 The open source coding agent. |
225,855 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2025-06-29,近 30 天仍在推送 |
| 社区活跃 | Star 80,216 / Fork 12,832 / Issue 59(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/shareAI-lab/learn-claude-code.git cd learn-claude-code # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。