Agent skill · software engineering · aradotso
clawd-code-python-port
Python port of Claude Code agent harness — tools, commands, task orchestration, and CLI entrypoint via oh-my-codex
Why this skill is useful
Provides specific CLI commands and architectural patterns for the Python port of the Claude Code agent that the AI wouldn't reliably generate on its own.
What it needs
Requires git, python3 installed locally. About 6k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.
What this skill does
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 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: --- Repository Layout --- Key CLI Commands All commands run via python3 -m src.main <subcommand>. --- Core Data Models (src/models.py) The dataclasses define the shape of the porting workspace: --- Tools System (src/tools.py) Tools are the callable units in the agent harness. Each tool entry carries metadata for dispatch: --- Commands System (src/commands.py) Commands are higher-level agent actions, distinct from raw tools: --- Task Orchestration (src/task.py) Tasks wrap a unit of agent work — a goal, a set of tools, and a result: --- Query Engine (src/queryengine.py) The query engine renders a porting summary from the active manifest: You can also invoke it from the CLI: --- Port Manifest (src/portmanifest.py) Build and inspect the current workspace manifest programmatically: --- Adding a New Tool 1. Define a handler function in src/tools.py. 2. Create a Tool dataclass instance. 3. Register it in TOOLREGISTRY. 4. Write a test in tests/. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aradotso/clawd-code-python-port