Treadle — AI skill for Claude Code
Write workflows in Pydantic AI.
How to install Treadle
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open zby/treadle and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Treadle does
Write workflows in Pydantic AI. Run them through Claude Code, Codex, pi, or any agent harness.
Alternatives in AI
- ARIS Agent Guide — For AI agents reading this repo 6.2k ★
- Desktop Cc Gui — Multi-engine AI coding desktop client (Tauri) 4.4k ★
- EchoBird — One-click install + model switch:Claude Code,Codex CLI (OpenAI), Grok Build (xAI), DeepSeek Harness, Kimi Code 3.1k ★
README
Treadle
**Write a workflow once. Run it in Pydantic AI or through your agent harness.**
You can run a [Pydantic AI](https://ai.pydantic.dev) workflow directly in Python, but you may want the work done inside Claude Code, using its agents, tools and subscription access rather than making separate model API calls from Python. Starting that Python script from Claude Code still sends requests to the model configured for the Python run; it does not hand them to Claude Code's agents.
Treadle makes the same workflow usable through Claude Code, Codex, pi or another harness. It turns model calls into prompts for the harness's workers and returns their committed answers to the workflow. Branches, loops and parallel work stay in ordinary Python; workers use their harness's shell, editor or browser. This is a portable API from code to harness: **prompts out, committed answers back**.
The orchestrator is the transmission: it runs `treadle step`, dispatches the printed prompts, makes sure responses are committed, and repeats. The workflow decides what happens next. Treadle does not include built-in harness dispatch integrations.
Python workflow → Treadle prompts → orchestrator → harness workers
← committed answers ←───────────┘
**Status:** Early working prototype, tested with fake models and live agents in Pi, Claude Code and Codex. Treadle is an independent project, not affiliated with Pydantic.
One call, end to end
[examples/explain.py](examples/explain.py) is a complete workflow. The agent has a name but no configured model; step mode supplies Treadle's model adapter.
from pydantic_ai import Agent
explainer = Agent(
name="explainer",
instructions="Explain the topic in one clear, concrete paragraph.",
)
async def workflow(topic: str) -> str:
return (await explainer.run(f"Explain {topic}.")).output
From the repository, install dependencies and request the first prompt:
uv sync --locked
uv run tr
Related Skills
Upstream Watch
Review pydantic-ai and pydantic-ai-harness releases published since the last watch entry, and record a verdict
Discourse Acp
ACP harness bridging a Discourse forum to AI agents: polls @mentions and PMs, drives an ACP agent (claude/goos
UIKit Agent Skill
UIKit Max - Agent skill that teaches AI coding assistants to write correct, modern, and performant UIKit code
Cobol Legacy Ledger
Learn COBOL through a live banking system — 18 programs, 6-node settlement network, real-time simulation, Pyth
Quilt
AI-native infinite-canvas design tool: describe an app, get multi-screen HTML designs on an infinite canvas, c
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Related Agents
Judge Same Vendor
Same-vendor different-model judge for the pair-programmer harness. Dispatches to the matching vendor's critiqu
Harness Cross Validator
Codex 기반 하네스 산출물 교차 검증 전문가. Claude validator가 형식·표준 준수를 점검하는 동안, Codex가 동일 산출물을 청사진 의도와 도메인 요구사항 관점에서 독립 재검토한다
Regression Prevention
Regression Prevention Agent (SSDF RV.3.3–RV.3.4). Write-capable for tests, lint/static-analysis rules, and har