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

git-prism v0.9.0: Give AI Coding Agents Structured Diffs via MCP
git-prism is an MCP server that replaces raw git diff text with structured JSON for AI coding agents. v0.9.0 intercepts git calls at the PATH layer, catching subprocess and gh commands.

Local AI Development with Qwen3.6-27B and Opencode on a 5090
A Reddit user shares their experience switching from cloud AI coding tools (Claude Code, Cursor) to a local setup using Opencode + llama-server + Qwen3.6-27B at 128K context on a single RTX 5090, citing freedom from usage limits and account risks.

Antibody System: Out-of-Band Watchdog for OpenClaw Agents
The Antibody System is an open-source watchdog that runs on a separate machine and monitors OpenClaw agents over SSH, implementing tiered responses from detection to service recovery. It's designed to survive failures that take down the primary agent.

Speak with Claw: Open Source iOS Voice Interface for OpenClaw Telegram Bots
An open source iOS app that enables voice interaction with OpenClaw-powered Telegram bots. The app sends audio to a local Mac server for processing, with responses returned as both text and audio.