frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Pydantic-AI Deepagents

https://github.com/vstorm-co/pydantic-deep
4•kacper-vstorm•1h ago

Comments

kacper-vstorm•1h ago
Python deep agent framework built on top of Pydantic AI designed to help you quickly build production-grade autonomous agents with planning, filesystem operations, subagent delegation, and skills.

A complete demonstration of all pydantic-deep features in a web application. -> (demo repository) https://github.com/vstorm-co/pydantic-deep/blob/main/example... -> (demo video) https://drive.google.com/file/d/1hqgXkbAgUrsKOWpfWdF48cqaxRh...

Features

    Multiple Backends: StateBackend (in-memory), FilesystemBackend, DockerSandbox, CompositeBackend
    Rich Toolsets: TodoToolset, FilesystemToolset, SubAgentToolset, SkillsToolset
    File Uploads: Upload files for agent processing with run_with_files() or deps.upload_file()
    Skills System: Extensible skill definitions with markdown prompts
    Structured Output: Type-safe responses with Pydantic models via output_type
    Context Management: Automatic conversation summarization for long sessions
    Human-in-the-Loop: Built-in support for human confirmation workflows
    Streaming: Full streaming support for agent responses
kacper-vstorm•21m ago
## Installation

```bash pip install pydantic-deep ```

Or with uv:

```bash uv add pydantic-deep ```

### Optional dependencies

```bash # Docker sandbox support pip install pydantic-deep[sandbox] ```

## Quick Start

```python import asyncio from pydantic_deep import create_deep_agent, create_default_deps from pydantic_deep.backends import StateBackend

async def main(): # Create a deep agent with state backend backend = StateBackend() deps = create_default_deps(backend) agent = create_deep_agent()

    # Run the agent
    result = await agent.run("Help me organize my tasks", deps=deps)
    print(result.output)
asyncio.run(main()) ```

## Structured Output

Get type-safe responses with Pydantic models:

```python from pydantic import BaseModel from pydantic_deep import create_deep_agent, create_default_deps

class TaskAnalysis(BaseModel): summary: str priority: str estimated_hours: float

agent = create_deep_agent(output_type=TaskAnalysis) deps = create_default_deps()

result = await agent.run("Analyze this task: implement user auth", deps=deps) print(result.output.priority) # Type-safe access ```

## File Uploads

Process user-uploaded files with the agent:

```python from pydantic_deep import create_deep_agent, DeepAgentDeps, run_with_files from pydantic_deep.backends import StateBackend

agent = create_deep_agent() deps = DeepAgentDeps(backend=StateBackend())

# Upload and process files with open("sales.csv", "rb") as f: result = await run_with_files( agent, "Analyze this sales data and find top products", deps, files=[("sales.csv", f.read())], ) ```

Or upload files directly to deps:

```python deps.upload_file("config.json", b'{"key": "value"}') # File is now at /uploads/config.json and agent sees it in system prompt ```

## Context Management

Automatically summarize long conversations to manage token limits:

```python from pydantic_deep import create_deep_agent from pydantic_deep.processors import create_summarization_processor

processor = create_summarization_processor( trigger=("tokens", 100000), # Summarize when reaching 100k tokens keep=("messages", 20), # Keep last 20 messages )

agent = create_deep_agent(history_processors=[processor]) ```

## Documentation

- *[Full Documentation](https://vstorm-co.github.io/pydantic-deep/)* - Complete guides and API reference - *[PyPI Package](https://pypi.org/project/pydantic-deep/)* - Package information and releases - *[GitHub Repository](https://github.com/vstorm-co/pydantic-deep)* - Source code and issues

### Quick Links

- [Installation Guide](https://vstorm-co.github.io/pydantic-deep/installation/) - [Core Concepts](https://vstorm-co.github.io/pydantic-deep/concepts/) - [Examples](https://vstorm-co.github.io/pydantic-deep/examples/) - [API Reference](https://vstorm-co.github.io/pydantic-deep/api/)

Show HN: Relia – Open-Source "ESLint" for AWS Costs (Python, Local-First)

https://github.com/davidahmann/relia_oss
1•davidresilify•50s ago•0 comments

What happened to Gopher? The Internet we lost [video]

https://www.youtube.com/watch?v=Flo9kn_nhbg
1•rickcarlino•2m ago•0 comments

How Stablecoins Can Help Criminals Launder Money and Evade Sanctions

https://www.nytimes.com/2025/12/07/technology/how-a-cryptocurrency-helps-criminals-launder-money-...
1•throw0101a•2m ago•1 comments

Ten people who helped shape science in 2025

https://www.nature.com/immersive/d41586-025-03848-1/index.html
1•bookofjoe•2m ago•0 comments

China set to limit access to Nvidia's H200 chips despite Trump export approval

https://www.ft.com/content/c4e81a67-cd5b-48b4-9749-92ecf116313d
1•mohi-kalantari•8m ago•0 comments

A Real-World Look at a Multi-Turn AI Attack Attempt

https://predictabledialogs.com/learn/security/ai-security-multi-turn
1•jaikant•8m ago•0 comments

Why Scanners Fail in Practice: Lessons from the Shai-Hulud Attacks on NPM

https://www.codecentric.de/en/knowledge-hub/blog/why-scanners-fail-in-practice-lessons-from-the-s...
1•F30•10m ago•0 comments

How do you manage knowledge fragmentation? I built a solution

https://timeln.app
1•hellorahulk•10m ago•0 comments

Transformer Paper Authors at AI Startup Debut Open Source Model

https://www.bloomberg.com/news/articles/2025-12-08/transformer-paper-authors-at-ai-startup-debut-...
2•Anon84•10m ago•1 comments

Delft-based startup to build Netherlands' first quantum chip factory

https://nltimes.nl/2025/12/09/delft-based-startup-build-netherlands-first-quantum-chip-factory
1•mohi-kalantari•12m ago•0 comments

Mazda suitcase car, a portable three-wheeled vehicle that fits in the luggage

https://www.designboom.com/technology/rediscover-mazda-suitcase-car-portable-three-wheeled-vehicl...
1•tlyleung•14m ago•0 comments

Breakthrough in Digital Screens Takes Color Resolution to Small Scale

https://www.scientificamerican.com/article/breakthrough-in-digital-screens-takes-color-resolution...
1•sohkamyung•16m ago•0 comments

Considering technology characteristics to project future costs of DAC

https://www.cell.com/joule/fulltext/S2542-4351(24)00060-6
1•akshatjiwan•16m ago•0 comments

Show HN: Free Logo API – logos for any company or domain

https://logos.apistemic.com/
3•lorey•18m ago•0 comments

Neal Mohan Is TIME's 2025 CEO of the Year

https://time.com/7338621/ceo-of-the-year-2025-neal-mohan/
1•tzury•18m ago•0 comments

America Has Become a Digital Narco-State

https://paulkrugman.substack.com/p/america-has-become-a-digital-narco
3•rbanffy•18m ago•1 comments

Where are you supposed to go if you don't care about growth?

https://ramones.dev/posts/where-are-you-supposed-to-go/
4•ramon156•19m ago•0 comments

Ask HN: Is Next.js the New WordPress?

2•bikamonki•22m ago•0 comments

Almost 1k UK Angel database for free

1•lex_merlin•22m ago•0 comments

Registry of Agents Gone Rogue

https://www.osohq.com/developers/ai-agents-gone-rogue
3•meghan•22m ago•0 comments

Closing the loop: Building a coding agent that uses Postgres branches

https://xata.io/blog/a-coding-agent-that-uses-postgres-branches
3•gk1•23m ago•0 comments

Fourier Transform of a Fourier Series

https://www.johndcook.com/blog/2025/12/08/fourier-transform-series/
1•ibobev•23m ago•0 comments

Early morning practices affect college athletes' sleep, data suggest

https://medicalxpress.com/news/2025-11-early-morning-affect-college-athletes.html
2•PaulHoule•23m ago•0 comments

Building MCP tools: AI agents read outputs every time, tool descriptions once

https://aleahim.com/blog/cupertino-04-release/
1•mihaela•23m ago•0 comments

Show HN: Proposal: Copy-and-Fuse Compilation

https://gist.github.com/chrisaycock/0b742872d5f309b7dfb455a8c7e2644a
1•chrisaycock•24m ago•1 comments

Houston man pleads guilty to smuggling high-end chips

https://www.houstonpublicmedia.org/articles/news/crime/2025/12/08/538044/ai-china-computer-chips-...
1•01-_-•25m ago•0 comments

NeurIPS 2025 E2LM Competition: Early Training Evaluation of Language Models

https://huggingface.co/blog/tiiuae/e2lm-competition
1•ibobev•25m ago•0 comments

Welcome the Nvidia Llama Nemotron Nano VLM to Hugging Face Hub

https://huggingface.co/blog/nvidia/llama-nemotron-nano-vl
2•ibobev•25m ago•0 comments

Show HN: I produced a cassette with vintage hardware instruments

https://tonleiter.net/reihenhaus/
2•Aldipower•27m ago•0 comments

When a Gut Molecule Redefines Inflammation and Metabolism

https://comuniq.xyz/post?t=597
1•01-_-•27m ago•0 comments