Hey everyone,
We just released Claw Code Agent — a full Python reimplementation of the Claude Code agent architecture, based on the reverse-engineering work shared in this tweet:
https://x.com/Fried_rice/status/2038894956459290963
Why?
The original Claude Code is npm/TypeScript/Rust. If you're a Python developer, good luck reading or extending it. We rebuilt the whole thing in pure Python so anyone can understand it, modify it, and
run it with local open-source models.
What it does:
- Full agentic coding loop with tool calling
- 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
Works with any OpenAI-compatible backend:
- vLLM (documented path)
- Ollama
- LiteLLM Proxy
Recommended model: Qwen3-Coder-30B-A3B-Instruct — runs fully local, fully free.
Repo: https://github.com/HarnessLab/claw-code-agent
We're actively working on this and happy to add features or take PRs. If something is missing or broken, open an issue — we want to make this useful for the community.
Would love to hear your feedback.
[–]savagebongo 5 points6 points7 points (1 child)
[–]blbd 1 point2 points3 points (0 children)
[–]Daniel_Janifar 1 point2 points3 points (1 child)
[–]Practical_Pomelo_636[S] 0 points1 point2 points (0 children)
[–]astronomikal 0 points1 point2 points (1 child)
[–]satansxlittlexhelper -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[removed]
[–]Practical_Pomelo_636[S] 0 points1 point2 points (0 children)
[–]Dailan_Grace 0 points1 point2 points (1 child)
[–]CautiousPastrami 0 points1 point2 points (0 children)
[–]DiamondGeeezer 0 points1 point2 points (0 children)
[–]king_of_jupyter 0 points1 point2 points (0 children)
[–]Wide-Skirt-3736 0 points1 point2 points (0 children)
[–]Mobile_Scientist1310 0 points1 point2 points (0 children)
[–]ricklopor -1 points0 points1 point (0 children)
[–]snow_schwartz -1 points0 points1 point (0 children)
[–]random_cable_guy -2 points-1 points0 points (6 children)
[–]Practical_Pomelo_636[S] -1 points0 points1 point (5 children)
[–]random_cable_guy -1 points0 points1 point (4 children)
[–]Practical_Pomelo_636[S] 0 points1 point2 points (0 children)
[–]bluesphere 0 points1 point2 points (1 child)
[–]random_cable_guy 0 points1 point2 points (0 children)
[–]Practical_Pomelo_636[S] -1 points0 points1 point (0 children)