aradotso avatar

Clawd Code Python Port

This is a from-scratch Python rewrite of the Claude Code agent harness, built for educational purposes to mirror the tool dispatch, command orchestration, and task execution patterns of the original TypeScript implementation. It gives you a working CLI with commands for inspecting the ported workspace, running parity audits, and exploring the tool and command registries. The architecture is clean: dataclasses for subsystems and modules, a tool registry pattern with JSON schema parameters, and a task wrapper that runs agent loops against a dispatcher. If you want to understand how Claude Code's internals are structured or need a Python agent scaffold with command routing and tool wiring already laid out, this is a readable reference implementation orchestrated end to end with oh-my-codex.

skills.sh installs
714
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill clawd-code-python-port --agent claude-code

Installs into .claude/skills of the current project.

Files

clawd-code Python Port

Skill by ara.so — Daily 2026 Skills collection.

What This Project Does

clawd-code is an independent Python rewrite of the Claude Code agent harness, built from scratch for educational purposes. It captures the architectural patterns of Claude Code — tool wiring, command dispatch, task orchestration, and agent runtime context — in clean Python, without copying any proprietary TypeScript source.

The project is orchestrated end-to-end using oh-my-codex (OmX), a workflow layer on top of OpenAI Codex. It is not affiliated with or endorsed by Anthropic.


Installation

# Clone the repository
git clone https://github.com/instructkr/clawd-code.git
cd clawd-code

# (Optional but recommended) Create a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies (if a requirements.txt or pyproject.toml is present)
pip install -r requirements.txt
# or
pip install -e .

No API keys are needed for the manifest/summary/CLI commands. If you extend the query engine to call a live model, set your key via environment variable:

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
Python
First seen
May 16, 2026

More from aradotso/trending-skills

All 251

Recommended

More Python
1wispbit-ai avatarpython-expert-best-practices-code-reviewwispbit-ai/skillsPython best practices for writing production-grade code. This skill should be used when writing, reviewing, or refactoring Python code. Triggers on tasks involv685skills.sh installs
2tinybirdco avatartinybird-python-sdk-guidelinestinybirdco/tinybird-agent-skillsTinybird Python SDK for defining datasources, pipes, and queries in Python. Use when working with tinybird-sdk, Python Tinybird projects, or data ingestion and 643skills.sh installs
3skillsh avatarpython-executorskillsh/skills634skills.sh installs
4prowler-cloud avatardjango-drfprowler-cloud/prowlerDjango REST Framework patterns. Trigger: When implementing generic DRF APIs (ViewSets, serializers, routers, permissions, filtersets). For Prowler API specifics482skills.sh installs
5aj-geddes avatardjango-applicationaj-geddes/useful-ai-promptsDevelop production-grade Django applications with models, views, ORM queries, authentication, and admin interfaces. Use when building web applications, managing476skills.sh installs
6terrylica avatarpython-logging-best-practicesterrylica/cc-skillsPython logging with loguru, structlog, and orjson. TRIGGERS - loguru, structlog, structured logging406skills.sh installs