vstorm-co/pydantic-deepagents

Open-source, self-hosted Claude Code - a terminal AI assistant and the Python framework behind it. Tool-calling, sandboxed execution, multi-agent teams, skills, checkpoints, unlimited context - on Pydantic AI, any model.

What it solves

Pydantic Deep Agents provides a comprehensive "agent harness" that transforms a raw LLM into a fully functional autonomous agent. It eliminates the need for developers to manually build repetitive infrastructure like planning, memory, sandboxed execution, and tool-calling for every new AI agent project.

How it works

Built on Pydantic AI, the project offers two primary interfaces: a terminal-based AI assistant (TUI) and a Python framework. It integrates a suite of capabilities including a copy-on-write filesystem for isolated execution, a multi-agent swarm for parallel task delegation, and a persistent memory system. A standout feature is "Live Run Forking," which allows an agent to branch a single execution into multiple parallel paths to test different approaches, with an AI judge or test results determining the winning branch to merge back into the main run.

Who it’s for

  • Developers who want a self-hosted, open-source alternative to Claude Code that works with any LLM provider.
  • AI Engineers looking for a type-safe Python framework to build complex research or coding agents without wiring the plumbing from scratch.

Highlights

  • Live Run Forking: Branch executions into parallel paths with isolated filesystems and budgets, merged by an AI judge.
  • Multi-Agent Swarm: Ability to spawn sub-agents for parallel workstreams with a shared message bus.
  • Sandboxed Execution: Docker-based workspaces for safe tool and command execution.
  • Persistent Memory: Session-spanning memory via MEMORY.md and domain-specific skills via SKILL.md.
  • MCP Support: Integration with Model Context Protocol servers (e.g., GitHub, Figma).
  • Type-Safe Structured Output: Native Pydantic model responses for full IDE autocomplete and validation.

Related

  • Project
  • Project
  • Project
  • Project
  • Project