Codecrafters Claude Code Python — AI skill for Claude Code
A minimal LLM coding agent in ~280 lines of Python — Read/Write/Edit/Bash/Glob/Grep tools with an agent loop.
How to install Codecrafters Claude Code Python
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open buildwithabid/codecrafters-claude-code-python and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Codecrafters Claude Code Python does
A minimal LLM coding agent in ~280 lines of Python — Read/Write/Edit/Bash/Glob/Grep tools with an agent loop. Built in under 48 hours with Claude Code (CodeCrafters Python rank #13).
Alternatives in AI
- Agmsg — Cross-vendor messaging for CLI AI coding agents — let Claude Code, Codex, Gemini & Copilot talk to each other 1.5k ★
- SEO Geo Claude Skills — 20 SEO & GEO skills for Claude Code, Cursor, Codex, and 35+ AI agents 888 ★
- CoreCoder — Minimal AI coding agent (~1,400 LoC Python) inspired by Claude Code 616 ★
README
[](https://app.codecrafters.io/users/BuildWithAbid?r=2qF)
Build Your Own Claude Code in Python — a minimal LLM coding agent from scratch
An **LLM-powered coding agent** in ~280 lines of Python. Give it a prompt, and it decides which tools to call (Read, Write, Edit, Bash, Glob, Grep), actually runs them on your filesystem, feeds the results back to the model, and keeps looping until the task is done. The tool surface mirrors the real [Claude Code](https://claude.com/claude-code) CLI.
Built in under **48 hours** with Claude Code itself, while reaching **CodeCrafters Python leaderboard rank #13**.
If you searched for *"build an LLM agent from scratch"*, *"OpenAI tool calling Python"*, *"AI coding assistant implementation"*, or *"agent loop tutorial"* — this repo is a compact, readable starting point.
What it does
export OPENROUTER_API_KEY=...
./your_program.sh -p "Summarize what app/main.py does and propose 2 refactors."
The agent will:
- Call Read on
app/main.py - Think about the content
- Possibly call Grep or Glob to explore the project
- Produce its final answer
Or:
./your_program.sh -p "Add a --verbose flag to app/main.py that prints each tool call."
And it will edit the file in place with **Edit** — because the model chose to.
Implemented tools (match the real Claude Code)
| Tool | Purpose |
|---|---|
Read |
Return the contents of a file |
Write |
Write content to a file (overwrite) |
Edit |
Exact string replace with uniqueness / replace_all checks |
Bash |
Run a shell command, return stdout/stderr/exit code |
Glob |
Find files by glob pattern, sorted by mtime |
Grep |
Related Skills
Go Surgeon
Deterministic Go code editing for LLM agents. AST-based CLI and MCP server that replaces Edit, Read, and Grep
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Ralph Builder
Structured wrapper for autonomous AI coding with Claude Code. PRD-driven task planning, atomic verification, a
Claw Hwp
AI(Claude·클로드 · Codex·코덱스)로 한글 문서(.hwp/.hwpx)를 한컴 없이 읽고·만들고·편집하는 오픈소스 스킬 · Read, create & edit Korean HWP in C
Code Context Control
Local MCP code-intelligence for AI coding tools: surgical search/read/edit, agent-config version history, path
Tellfigma
The missing piece of the AI + Figma loop. Create and edit designs directly on the Figma canvas from Claude, Cu
Related Agents
Code Free
WOZCODE free-plan fallback agent — active when the monthly free-plan cap is exhausted. Claude Code's built-in
Tp Run
PROACTIVELY use this general-purpose token-pilot workhorse for ANY coding task (read / edit / search / explore
Semble Search
Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, unders