姊妹版: mini-spring (简化版的spring框架) mini-spring-cloud (简化版的spring cloud框架) mini-netty (简化版的netty框架).
$ npx -y skills add DerekYRC/mini-claude-code --agent claude-code
English | 简体中文
姊妹版:
mini-claude-code 是一个简化版的Java版 Claude Code 编程 Agent 项目,能帮助你快速理解编码 Agent 的核心原理。项目抽取了 Agent Harness 的关键机制,代码尽量精简,保留核心功能,如 Agent Loop、工具调用、权限控制、Hooks、Todo、Subagent、Skill Loading、上下文压缩、记忆系统、任务系统、后台任务、定时调度、多 Agent 协作、团队协议、自主认领任务和 MCP Plugin 等功能。
项目按章节拆解一个编码 Agent 的核心机制,每章对应一个独立分支,并尽量保留理解当前机制所需的最小代码。
如果本项目能帮助到你,请给个 STAR,谢谢!
本项目需要 Java 17 和 Maven。
运行真实模型 demo 前,先在 shell 中设置:
export ANTHROPIC_BASE_URL='你的 Anthropic 兼容 API Base URL,如: https://api.deepseek.com/anthropic'
export MODEL_ID='你的模型 ID'
export ANTHROPIC_API_KEY='你的 API Key'
每章对应一个教学分支。比如学习 s01:
git switch s01-agent-loop
使用 Maven 启动指定 demo:
mvn -q compile exec:java -Dexec.mainClass=org.miniclaudecode.demo.S01AgentLoopDemo
阅读 changelog.md
欢迎 Pull Request。
mini-claude-code is a Claude Code plugin with 1 hand-picked skill, indexed on Flowy in the Code Review category. Install it with the command on its page. It includes code-review. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it