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
- Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
- SEO Geo Claude Skills — 20 SEO & GEO skills for Claude Code, Cursor, Codex, and 35+ AI agents 888 ★
- Semble Rs — Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp 210 ★
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
Rdocx Skills
📄 Word and PowerPoint skills for Claude and other AI agents: read, write, edit, redline and render .docx and
Weir
Claude Code wrote grep 4,575 times and rg zero times across 25,216 Bash calls in one user’s transcripts. weir
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
Reddit Slop
AI-writing check on a Reddit draft (phase 3 of reddit-strategist): quotes the lines that read as AI, most dama
Related Agents
Code Free
WOZCODE free-plan fallback agent — active when the monthly free-plan cap is exhausted. Claude Code's built-in
Voice Only
Minimal voice-only example — converse only; all other tools (Bash, Read, Write, Edit, …) are disabled by desig
Tp Run
PROACTIVELY use this general-purpose token-pilot workhorse for ANY coding task (read / edit / search / explore