pydantic-ai-todo
Todo/task planning toolset for pydantic-ai agents
What it is and what it does
pydantic-ai-todo is a task management library that plugs into Pydantic AI agents via a single-line Capabilities API. It gives agents the ability to create, read, update, and delete tasks—with optional support for subtasks, task dependencies, and automatic cycle detection. Tasks can be stored in memory (default), async memory, or PostgreSQL with multi-tenant isolation.
The package provides both a high-level Capabilities API (recommended) and a lower-level Toolset API for integration flexibility. It includes an event system for reacting to task state changes via webhooks and callbacks. Storage backends are pluggable, and the system prompt can be static (for LLM prompt caching) or dynamic (embedding live task lists). Runtime dependencies are pydantic-ai-slim, pydantic, and redis.
Use it for:
- Enable an AI agent to plan and track subtasks for a complex project, with automatic dependency resolution and cycle detection.
- Build a multi-tenant task management system where different users' agents maintain isolated task lists in PostgreSQL.
- Integrate task completion events with external webhooks to trigger notifications or downstream workflows when agent-created tasks change state.
- Use in-memory task storage for lightweight agent-driven planning in development or single-session scenarios without database setup.
- Combine with Pydantic AI's YAML agent definitions to declaratively enable task planning in agent configurations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds task planning and tracking tools to Pydantic AI agents, enabling them to create, manage, and complete hierarchical tasks with subtasks, dependencies, and persistent storage.
Yes, with conditions. Install if you are building Pydantic AI agents that need task planning, hierarchical task management, or persistent multi-tenant task storage. The low install friction, active maintenance, permissive MIT license, and zero known vulnerabilities make it safe to adopt. Beta status is appropriate for a specialized toolset; verify PostgreSQL backend requirements and compatibility with your Pydantic AI version before production use.
Install
pydantic-ai-todo on PyPI
pip
pip install pydantic-ai-todouv
uv add pydantic-ai-todopoetry
poetry add pydantic-ai-todoInstalling pydantic-ai-todo
Before you install
Low friction install with three runtime dependencies. Package is actively maintained with recent releases; last commit 2026-08-14. Beta status (Development Status :: 4) is appropriate for a specialized toolset in active development.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
Quickstart
from pydantic_ai import Agent
from pydantic_ai_todo import TodoCapability
agent = Agent("openai:gpt-4.1", capabilities=[TodoCapability()])
result = await agent.run("Create a todo list for building a REST API")
Requires Python 3.10 or later; Pydantic AI agent framework must be installed and configured with a valid model provider (e.g., OpenAI API key for gpt-4.1).
Verify before relying
- Whether PostgreSQL backend requires additional system dependencies beyond the 'postgres' extra
- Performance characteristics and scalability limits for in-memory vs. async storage backends
- Compatibility guarantees with specific Pydantic AI versions or provider APIs
Package facts
| License | MIT License Copyright (c) 2025 Vstorm Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — pydantic-ai-slim, pydantic, redis |
| Maintenance | actively maintained — 23 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 317,560/month — #7,660 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pydantic_ai_todo-0.2.7-py3-none-any.whl
Keywords: agents, ai, pydantic, pydantic-ai, task-management, todo, toolset
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pydantic-ai-backendProvides sandboxed execution and file…
permissive · top 15,000 on PyPI
pydantic-tesProvides Pydantic models and a lightweight HTTP…
permissive · top 15,000 on PyPI
subagents-pydantic-aiAdds multi-agent delegation to Pydantic AI…
permissive · top 15,000 on PyPI
summarization-pydantic-aiManages conversation history for Pydantic AI…
permissive · top 15,000 on PyPI
pydantic-deepA Python framework and terminal assistant for…
permissive · top 15,000 on PyPI
pydantic-ai-harnessPydantic AI Harness provides pre-built…
permissive · top 5,000 on PyPI
pydantic-ai-absurdAdds durable execution to Pydantic AI agents by…
permissive · top 15,000 on PyPI
pydantic-aiPydantic AI is a Python framework for building…
permissive · top 5,000 on PyPI
pydantic-ai-skillsTeaches agents to handle specialized tasks…
permissive · top 5,000 on PyPI
pydantic-ai-slimPydantic AI Slim provides core agent framework…
permissive · top 1,000 on PyPI