Loveca

Tiny Claude Code — Design skill for Claude Code

Design community

A hands-on tutorial for building a Claude Code-style coding agent with tools, memory, hooks, subagents, and plugins.

How to install Tiny Claude Code

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Loveca/tiny-claude-code and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Tiny Claude Code does

A hands-on tutorial for building a Claude Code-style coding agent with tools, memory, hooks, subagents, and plugins.

Alternatives in Design

  • Interface Design — Design engineering for Claude Code 4.3k ★
  • New Module — Create a new LaraDashboard module with proper structure, CSS prefixing, hooks, menu, and CLAUDE.md 407 ★
  • Hermes Studio — Web UI & dashboard for Hermes Agent — chat, memory, skills, terminal, approvals, multi-agent orchestration 354 ★

README

tiny-claude-code

[English](./README.md) | [中文](./README.zh-CN.md)

Build a Claude Code-style coding agent in one week.

`tiny-claude-code` is a 15-chapter Python AI coding agent tutorial for developers who want to understand how tools like Claude Code, Codex, Cursor, and other LLM coding assistants work under the hood: the agent loop, tool calling, shell commands, file access, permission checks, hooks, context compaction, memory, tasks, subagents, background jobs, and plugins.

[Quick Start](#quick-start) | [Curriculum](#curriculum) | [Roadmap](./docs/ROADMAP.md)

![tiny-claude-code terminal demo](./docs/assets/demo.gif)

Unlike a black-box demo, this repository gives you both:

  • src/tiny_claude_code/: a student skeleton with TODOs
  • src/tiny_claude_code_ref/: a complete reference implementation

You can learn chapter by chapter, run focused tests without an API key, then compare your implementation against the reference agent.

What You Will Learn

This project is useful if you are searching for:

  • how to build a coding agent from scratch
  • how Claude Code-style tool calling works
  • how to implement an LLM agent loop in Python
  • how tool_use and tool_result messages work
  • how to add shell, file, memory, hooks, subagents, and plugins to an AI coding assistant
  • how to test an agent without paying for LLM API calls

Preview

The core idea is small:

messages -> LLM -> response -> tool_use -> tool_result -> messages

After implementing the early chapters, the agent can inspect a project through shell commands:

> list the files in this repo and tell me what kind of project this is

[tool_use: bash]
command: dir

[tool_result]
exit_code: 0
stdout:
README.md
src
tests
chapters

This is a hands-on Python tutorial project for building a coding agent...

By the end, you will have a compact but complete agent framework with tools, safety boundaries, memory, task tracking, subagents, and extension points.

Why This Project

Most