We reimplemented Claude Code entirely in Python — open source, works with local models

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Intermediate, quick

Summary

HarnessLab has released Claw Code Agent, a full Python reimplementation of the Claude Code agent architecture, based on reverse-engineering insights. The original Claude Code is built with npm/TypeScript/Rust, making it less accessible for Python developers. Claw Code Agent aims to provide a pure Python alternative that is easier to understand, modify, and run with local open-source models. It features a complete agentic coding loop with tool calling, including file operations, glob, grep, and shell access. The agent also supports slash commands, a context engine with CLAUDE.md discovery, session persistence, and tiered permissions. It is compatible with any OpenAI-compatible backend, such as vLLM, Ollama, and LiteLLM Proxy, with Qwen3-Coder-30B-A3B-Instruct recommended for local use.

Key takeaway

For AI Architects building agentic systems, Claw Code Agent provides a compelling open-source, Python-native framework that supports local model execution. If your team is invested in the Python ecosystem and seeks greater control and customizability over agent behavior without cloud dependencies, you should evaluate Claw Code Agent for its extensibility and compatibility with various local LLM backends.

Key insights

Claw Code Agent offers a Python-native, open-source alternative to Claude Code for local agentic development.

Principles

Method

The agent uses a full coding loop with core tools (file I/O, shell) and slash commands, integrating with OpenAI-compatible backends for local model execution.

In practice

Topics

Code references

Best for: AI Architect, AI Engineer, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.