pydantic-deepagents
Python Deep Agent framework built on top of Pydantic-AI, designed to help you quickly build production-grade autonomous AI agents with planning, filesystem operations, subagent delegation, skills, and structured outputs—in just 10 lines of code.
claude mcp add --transport stdio vstorm-co-pydantic-deepagents uvx pydantic-deepagents \ --env PIP_DISABLE_PIP_VERSION_CHECK="1 (optional: disable pipVersionCheck to avoid noise in logs)"
How to use
Pydantic Deep Agents provides a Python-based framework for building Claude Code-style autonomous agents with planning, filesystem access, memory, subagents, and optional web/search capabilities. The project also ships a command-line interface (CLI) that lets you run a ready-made terminal AI assistant in your shell. You can use the CLI to start an interactive agent, run targeted tasks, or manage configuration and models. In addition, there is a DeepResearch reference app that demonstrates a full-featured research agent with a web UI and sandboxed code execution. With these tools you can quickly prototype agents that plan tasks, execute code, and persist context across sessions, while also enabling advanced features like memory management, hooks, and cost tracking.
How to install
Prerequisites:
- Python 3.10 or newer
- pip (Python package manager)
Installation steps:
- Install the CLI-enabled package (includes the CLI tools): pip install pydantic-deep[cli]
- Verify installation: pip show pydantic-deep pydantic-deep --help
Usage examples:
-
Start an interactive terminal AI assistant: pydantic-deep chat
-
Run a single task with the agent: pydantic-deep run "Fix the failing tests in src/"
-
Use a Docker sandbox for isolated execution (optional): pydantic-deep run "Build a web scraper" --sandbox
-
Manage configuration (model, memory, etc.): pydantic-deep config set model openai:gpt-4.1
Note: If you only want the framework without CLI, you can install the core package via: pip install pydantic-deep
Additional notes
Tips and notes:
- The CLI supports built-in commands like /commit, /pr, /review, /test, /fix, and /explain. Use them to steer the agent's behavior and track changes.
- The framework offers optional features such as persistent memory (MEMORY.md), context management for unlimited context, and cost tracking.
- If you plan to use the DeepResearch app, follow the app’s README for additional dependencies (web UI, API keys, and sandboxed execution). Ensure API keys or credentials are loaded in environment variables or a .env file as required by the app.
- For advanced usage, you can build your own agent with create_deep_agent and customize dependencies, subagents, memory backends, and hooks. Refer to the API reference for available options.
- If encountering environment-related issues, ensure your Python environment is clean (virtualenv/venv or pyenv) and that conflicting packages are avoided. Update to the latest compatible versions to minimize compatibility issues.
Related MCP Servers
repomix
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.
ai-guide
程序员鱼皮的 AI 资源大全 + Vibe Coding 零基础教程,分享大模型选择指南(DeepSeek / GPT / Gemini / Claude)、最新 AI 资讯、Prompt 提示词大全、AI 知识百科(RAG / MCP / A2A)、AI 编程教程、AI 工具用法(Cursor / Claude Code / OpenClaw / TRAE / Lovable / Agent Skills)、AI 开发框架教程(Spring AI / LangChain)、AI 产品变现指南,帮你快速掌握 AI 技术,走在时代前沿。本项目为开源文档版本,已升级为鱼皮 AI 导航网站
sre
The SmythOS Runtime Environment (SRE) is an open-source, cloud-native runtime for agentic AI. Secure, modular, and production-ready, it lets developers build, run, and manage intelligent agents across local, cloud, and edge environments.
c4-genai-suite
c4 GenAI Suite
askimo
AI Native App Client App with Built-in Knowledge Base & Multi-Provider Support (OpenAI, Gemini, Ollama, ...)
golemcore-bot
AI agent framework for Java — skill-based architecture with MCP support, tool calling, RAG, and Telegram integration. Built on Spring Boot and LangChain4j