migrating-deep-agents-to-pydantic-ai-harness
Skill by pydantic
Migrates Python LangChain Deep Agents applications to Pydantic AI and Pydantic AI Harness. It is for projects that use the upstream deepagents package or reproduce its contracts.
Install migrating-deep-agents-to-pydantic-ai-harness
Built from the published package, never by AI.
git clone --depth 1 https://github.com/pydantic/pydantic-ai /tmp/pydantic-ai && mkdir -p ~/.claude/skills && cp -r /tmp/pydantic-ai/src/pydantic_ai_harness/pydantic_ai_harness/.agents/skills/migrating-deep-agents-to-pydantic-ai-harness ~/.claude/skills/migrating-deep-agents-to-pydantic-ai-harRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install migrating-deep-agents-to-pydantic-ai-harness in Claude Code
git clone --depth 1 https://github.com/pydantic/pydantic-ai /tmp/pydantic-ai && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pydantic-ai/src/pydantic_ai_harness/pydantic_ai_harness/.agents/skills/migrating-deep-agents-to-pydantic-ai-harness ~/.gemini/antigravity-cli/skills/migrating-deep-agents-to-pydantic-ai-harAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install migrating-deep-agents-to-pydantic-ai-harness in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides migration of Python LangChain Deep Agents applications to Pydantic AI and Pydantic AI Harness. It applies when the source uses the upstream deepagents package or reproduces its middleware, backends, skills, memory, subagents, or sandbox contracts. The skill says to preserve observed application contracts rather than the shape of create_deep_agent.
The workflow resolves the deepagents import origin, records exact versions, and traces one representative request. It builds one reusable Pydantic AI Agent with typed dependencies and adds Harness capabilities one at a time. Orchestration is classified before choosing SubAgents or DynamicWorkflow. Cutover requires each in-scope contract to be regression-tested, intentionally changed, or marked not applicable. It is aimed at teams moving existing Deep Agents code to Pydantic AI.
Written from the project's SKILL.md and checked against it.
What it can do
- Source resolutionResolves the deepagents import origin and records exact Deep Agents, LangChain, LangGraph, Pydantic AI, and Harness versions.
- Request tracingTraces one representative request through prompt, tools, middleware, backend, delegation, state, and events.
- Pydantic AI targetBuilds one reusable Agent with typed dependencies, typed outputs, and run APIs chosen from the caller's lifecycle.
- Harness capability mappingAdds Harness capabilities one at a time for observed optional behavior, without replacing application infrastructure.
- Orchestration classificationClassifies work as model-controlled delegation, a fixed application workflow, or a background worker before choosing a pattern.
- Boundary adapterPreserves old request, result, error, and event shapes with a small adapter while callers migrate.
- Staged verificationRuns the original suite with characterization and parity checks, starting from one vertical slice.
- Cutover checksRequires each in-scope contract to be regression-tested, intentionally changed, or explicitly not applicable before cutover.
What you need
- A Python project that uses the upstream deepagents package or reproduces its contracts
- Pydantic AI and Pydantic AI Harness installed in the target environment
- The locked source environment, or a reproduction of it
Try asking
- Migrate this Deep Agents app to Pydantic AI, starting with one vertical slice.
- Map our create_deep_agent middleware and backends to Harness capabilities.
- Classify our subagents as delegation, workflow, or background worker first.
Good to know
- Not for plain LangChain, LangGraph, or LCEL migrations; use the LangChain migration skill instead.
- Not for greenfield Harness usage; use the pydantic-ai-harness skill instead.
- Parity is not claimed unless verified against the locked source; otherwise behavior is marked unverified.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/pydantic_ai_harness/pydantic_ai_harness/.agents/skills/migrating-deep-agents-to-pydantic-ai-harness/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
agents/openai.yaml258 B -
references/CONTEXT-AND-EXECUTION.md7 KB -
references/CORE-MIGRATION.md4 KB -
references/HOSTS-AND-PROTOCOLS.md2 KB
Show all 8 files
-
references/ORCHESTRATION-AND-RECOVERY.md6 KB -
references/TESTED-COMPOSITION.md2 KB -
references/VALIDATION.md5 KB
Alternatives to migrating-deep-agents-to-pydantic-ai-harness
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrating-deep-agents-to-pydantic-ai-harness: common questions
When should I use this skill instead of the LangChain migration skill?
Use it when the source uses the upstream deepagents package or reproduces its contracts. Plain LangChain, LangGraph, or LCEL migrations belong to migrating-langchain-to-pydantic-ai.
Does the skill guarantee behavior parity after migration?
No. Each in-scope contract must be regression-tested, intentionally changed with agreement, or marked not applicable. Anything else is reported as unverified.
Where do queues, storage, and deployment go in the migrated design?
The skill keeps queues, tenancy, artifact storage, remote sandbox lifecycle, durable domain state, and deployment in application services.
How do I install migrating-deep-agents-to-pydantic-ai-harness?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrating-deep-agents-to-pydantic-ai-harness free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is migrating-deep-agents-to-pydantic-ai-harness safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrating-deep-agents-to-pydantic-ai-harness?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
