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

Mandala v0.3: Open-Source Async Runtime to Unify Logistics Telemetry as OpenTelemetry Spans for Agent Reasoning
Mandala v0.3 provides an open-source async runtime that ingests telemetry from Samsara, Descartes, Vizion, and FMCSA via webhooks, emits events as OpenTelemetry spans, and exposes data via MCP tools for LLM agents.

Caveman: A Claude Code Skill That Cuts 75% of Tokens by Using Caveman-Style Speech
Caveman is a Claude Code skill that reduces token usage by approximately 75% by making Claude respond in a concise, caveman-like style while maintaining full technical accuracy. It's installed via npx or the Claude plugin marketplace.

Claude Code Remote Control: Continue Local Sessions from Any Device
Claude Code Remote Control lets you continue local Claude Code sessions from other devices like phones or browsers while keeping everything running on your machine. It's available as a research preview on Pro and Max plans, requiring authentication and workspace trust setup.

Building a Coding Agent for 8k Context: Planner/Executor Split, Token Budgeting, and Parallel Execution
A detailed breakdown of building a CLI coding agent designed around 8k token limits, using a planner/executor architecture, strict token budgeting, and parallel task execution.