← all repositories
agentforce314/clawcodex

Claude Code, but make it 233,000 lines of Python

A ground-up Python rebuild of Claude Code’s agent runtime that trades vendor lock-in for multi-provider flexibility and explicit cost controls.

821 stars Python Coding AssistantsAgents
clawcodex
Velocity · 7d
+1.3
★ / day
Trend
accelerating
star history

What it does ClawCodex is a from-scratch Python port of Anthropic’s Claude Code, translated from the TypeScript reference implementation into roughly 233,000 lines of idiomatic Python. It preserves the full terminal agent experience—streaming REPL, multi-turn tool loops, session persistence, and slash-command skills—while letting you swap LLM providers at will.

The interesting bit This is not a thin API wrapper. The codebase includes a remote-control bridge, a dynamic workflow engine with agent()/parallel()/pipeline() primitives, a /deep-research harness, and even a /buddy virtual-pet command. The scale implies they actually ported the architecture, not just the network calls.

Key highlights

  • Multi-provider runtime: Wires Anthropic, OpenAI, DeepSeek, GLM, MiniMax, and OpenRouter into the same tool-calling loop, so you can route to cheaper or stronger models without forking the agent.
  • /advisor cost mode: Pairs a cheap worker model with an expensive reviewer consulted only at decision points; the README cites roughly 6× cost savings versus running the expensive model solo.
  • Benchmark edge: On the full SWE-bench Verified split using Gemini 2.5 Pro, it resolved 58.2% of issues versus openclaude’s 53.0%.
  • Markdown skills: Custom slash commands defined via SKILL.md files with typed arguments and tool allow-lists.
  • Workflow engine: Supports parallel agents, worktree isolation, and live TUI monitoring; the /deep-research tool even forbids tool access during its final synthesis step to prevent runaway loops.

Verdict A solid candidate if you want a hackable, Python-native coding agent that refuses to be locked to one model family. Avoid if you need a minimal, drop-in script—this is a full-stack application with the gravity to match.

Frequently asked

What is agentforce314/clawcodex?
A ground-up Python rebuild of Claude Code’s agent runtime that trades vendor lock-in for multi-provider flexibility and explicit cost controls.
Is clawcodex open source?
Yes — agentforce314/clawcodex is open source, released under the MIT license.
What language is clawcodex written in?
agentforce314/clawcodex is primarily written in Python.
How popular is clawcodex?
agentforce314/clawcodex has 821 stars on GitHub and is currently accelerating.
Where can I find clawcodex?
agentforce314/clawcodex is on GitHub at https://github.com/agentforce314/clawcodex.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.