Claw Code Agent: Python Reimplementation of Claude Code Architecture for Local Models

Claw Code Agent is a complete Python reimplementation of the Claude Code agent architecture, built from reverse-engineering work shared in a tweet. The project addresses the original Claude Code's npm/TypeScript/Rust implementation, which can be challenging for Python developers to read or extend.
Core Features
The agent implements a full agentic coding loop with tool calling. Key components include:
- Core tools: file read/write/edit, glob, grep, shell
- Slash commands: /help, /context, /tools, /memory, /status, /model
- Context engine with CLAUDE.md discovery
- Session persistence — save and resume agent runs
- Tiered permissions: read-only → write → shell → unsafe
Model Compatibility
The agent works with any OpenAI-compatible backend:
- vLLM (documented path)
- Ollama
- LiteLLM Proxy
The recommended model is Qwen3-Coder-30B-A3B-Instruct, which runs fully local and free.
Development Status
The project is actively maintained with the team working on adding features and accepting pull requests. Users are encouraged to open issues for missing features or bugs.
This implementation makes the Claude Code architecture accessible to Python developers who want to understand, modify, and run agentic coding systems with local models.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Session Siphon: Open Source Tool Consolidates AI Coding Agent Conversations
Session Siphon is a free, open source tool that consolidates and indexes conversation history from multiple AI coding agents across different providers and machines. The developer created it using Claude to solve the problem of tracking conversations across different platforms.

Open Source Book Genesis: 20 Claude Code Skills for Autonomous Book Writing
Book Genesis is an open-source system of 20 specialized Claude Code skills that takes a book idea and produces a complete, publish-ready manuscript through a 14-phase autonomous pipeline. It includes a 'Chaos Engine' to break AI predictability patterns and has generated a 68,000-word memoir scoring 9.0/10 on its Genesis Score.

MCP Support Merged into llama.cpp with New WebUI Features
The Model Context Protocol (MCP) pull request for llama.cpp has been merged, adding MCP support, tool calls, an agentic loop, and a server selector to the llama-server/WebUI side.

IronBee: Open-source verification layer for Claude Code and Cursor
IronBee is an open-source verification layer that forces AI coding agents to test changes in a real browser before completing tasks. In testing, it caught bugs in 82% of Claude Code sessions that would have shipped without verification.