claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Productivity

mini-claude-code

mini-claude-code: a simplified Java Claude Code agent distilling core Agent Harness mechanisms. Features: Agent Loop, tools, permission control, Hooks, Todo,…

// Productivity[ api ][ web ][ claude ]#claude#productivity$open-sourceupdated 14 days ago
Actively maintained
96/100
last commit 16 days ago
last release none
releases 0
open issues 0
// install
git clone https://github.com/DerekYRC/mini-claude-code

mini-claude-code mini-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,谢谢!

功能

使用方法

1. 准备环境

本项目需要 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'

2. 切换章节分支

每章对应一个教学分支。比如学习 s01:

git switch s01-agent-loop

3. 启动 Demo

使用 Maven 启动指定 demo:

mvn -q compile exec:java -Dexec.mainClass=org.miniclaudecode.demo.S01AgentLoopDemo

4. 阅读源码说明

阅读 changelog.md

提问

点此提问

贡献

欢迎 Pull Request。

参考项目

// compatibility

Platformsapi, web
Operating systems
AI compatibilityclaude
License
Pricingopen-source
LanguageJava

// faq

What is mini-claude-code?

mini-claude-code: a simplified Java Claude Code agent distilling core Agent Harness mechanisms. Features: Agent Loop, tools, permission control, Hooks, Todo, Subagent, Skill Loading, context compression, memory, tasks, background tasks, scheduling, multi-agent collaboration, team protocol, autonomous claiming, MCP Plugin.. It is open-source on GitHub.

Is mini-claude-code free to use?

mini-claude-code is open-source, so it is free to use.

What category does mini-claude-code belong to?

mini-claude-code is listed under mcp-servers in the Claudeers registry of Claude-compatible tools.

0 views
84 stars
unclaimed
updated 14 days ago

// embed badge

mini-claude-code on Claudeers
[![Claudeers](https://claudeers.com/api/badge/mini-claude-code.svg)](https://claudeers.com/mini-claude-code)

// retro hit counter

mini-claude-code hit counter
[![Hits](https://claudeers.com/api/counter/mini-claude-code.svg)](https://claudeers.com/mini-claude-code)

// reviews

// guestbook

0/500

// related in Productivity

🔓

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

// productivitykepano/40,030MIT[ claude ]
🔓

Garry's Opinionated OpenClaw/Hermes Agent Brain

// productivitygarrytan/TypeScript25,386MIT[ claude ]
🔓

Open source repository of plugins primarily intended for knowledge workers to use in Claude Cowork

// productivityanthropics/Python22,343Apache-2.0[ claude ]
🔓

An open-source alternative to Claude Cowork (powered by opencode)

// productivitydifferent-ai/TypeScript16,671NOASSERTION[ claude ]
→ see how mini-claude-code connects across the ecosystem