AgentZ is a minimal, extensible codebase for multi-agent systems research. Build intelligent agent workflows with minimal code while achieving strong baseline performance. The platform enables autonomous reasoning, experience learning, and dynamic tool creation - providing both a comparative baseline and production-ready foundation for multi-agent research.
Features
- 🎯 Minimal Implementation - Build new systems with just a few lines of code
- 🔄 Stateful Workflows - Persistent memory and object management throughout agent lifecycle
- 📚 Experience Learning - Agents improve over time through memory-based reasoning
- 🛠️ Dynamic Tool Creation - Agents can generate and use custom tools on-demand
- 🧠 Autonomous Reasoning - Built-in cognitive capabilities for complex multi-step tasks
- ⚙️ Config-Driven - Easily modify behavior through configuration files
Installation
This project uses uv for fast, reliable package management.
Install uv
# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or via pip
pip install uv
See the uv installation guide for more options.
Setup Environment
# Clone the repository
git clone https://github.com/yourusername/agentz.git
cd agentz
# Sync dependencies
uv sync
Quick Start
from pipelines.data_scientist import DataScientistPipeline
pipe = DataScientistPipeline("pipelines/configs/data_science.yaml")
pipe.run_sync()
Building Your Own System
1. Create a Custom Pipeline
Inherit from BasePipeline to create your own agent workflow:
from pipelines.base import BasePipeline
class MyCustomPipeline(BasePipeline):
DEFAULT_CONFIG_PATH = "pipelines/configs/my_pipeline.yaml"
def __init__(self, config=None):
super().__init__(config)
# Add your custom initialization
async def run(self):
# Implement your workflow logic
pass
2. Add Custom Agents
Implement your agents following the standard interface:
from agents import Agent
def create_my_agent(config):
return Agent(
name="my_agent",
instructions="Your agent instructions here",
model=config.main_model
)
3. Configure & Run
Create a config file and run your pipeline:
pipe = MyCustomPipeline(
data_path="your_data.csv",
user_prompt="Your task description",
provider="gemini",
model="gemini-2.5-flash"
)
pipe.run_sync()
Architecture
AgentZ is organised around a central conversation state and a set of declarative flow specifications that describe how agents collaborate. The main components you will interact with are:
pipelines/– High level orchestration that wires agents together.agentz/agents/– Capability definitions for manager agents and tool agents.agentz/flow/– Flow primitives (FlowRunner,FlowNode,IterationFlow) that execute declarative pipelines.agentz/memory/– Structured state management (ConversationState,ToolExecutionResult, global memory helpers).examples/– Example scripts showing end-to-end usage.
agentz/
├── pipelines/
│ ├── base.py # Base pipeline with config management & helpers
│ ├── flow_runner.py # Declarative flow executor utilities
│ └── data_scientist.py # Reference research pipeline
├── agentz/
│ ├── agents/
│ │ ├── manager_agents/ # Observe, evaluate, routing, writer agents
│ │ └── tool_agents/ # Specialised tool executors
│ ├── flow/ # Flow node definitions and runtime objects
│ ├── memory/ # Conversation state & persistence utilities
│ ├── llm/ # LLM adapters and setup helpers
│ └── tools/ # Built-in tools
└── examples/
└── data_science.py # Example workflows
Declarative Pipeline Flow
The reference DataScientistPipeline models an entire research workflow using
three building blocks:
- Central ConversationState – A shared store that captures every field any
agent might read or write (iteration metadata, gaps, observations, tool
results, timing, final report, etc.). Each loop creates a new
IterationRecord, enabling partial updates and clean tracking of tool outcomes. - Structured IO Contracts – Each agent step declares the Pydantic model it
expects and produces (for example
KnowledgeGapOutputorAgentSelectionPlan). Input builders map slices ofConversationStateinto those models and output handlers merge the validated results back into the central state. - Declarative FlowRunner – The pipeline defines an
IterationFlowofFlowNodes such as observe → evaluate → route → tools. Loop and termination logic are expressed with predicates (loop_condition,condition), so the executor can stop when evaluation marksstate.completeor constraints are reached. Finalisation steps (like the writer agent) run after the iteration loop using the same structured IO.
Because the flow is declarative and all state is centralised, extending the
pipeline is as simple as adding a new node, output field, or tool capability—no
custom run() logic is required beyond sequencing the flow runner.
Benchmarks
AgentZ has been verified on several benchmarks for multi-agent research:
- Data Science Tasks: State-of-the-art performance on automated ML pipelines
- Complex Reasoning: Competitive results on multi-step reasoning benchmarks
- Tool Usage: High accuracy in dynamic tool selection and execution
Detailed benchmark results and comparisons coming soon.
Roadmap
- Persistence Process - Stateful agent workflows
- Experience Learning - Memory-based reasoning
- Tool Design - Dynamic tool creation
- Workflow RAG - Retrieval-augmented generation for complex workflows
- MCPs - Model Context Protocol support for enhanced agent communication
Key Design Principles
- Minimal Core - Keep the base system simple and extensible
- Intelligent Defaults - Provide strong baseline implementations
- Research-First - Design for experimentation and comparison
- Modular Architecture - Easy to swap components and test variations
- Production-Ready - Scale from research prototypes to deployed systems
Use Cases
- Multi-Agent Research - Baseline for comparing agent architectures
- Automated Data Science - End-to-end ML pipeline automation
- Complex Task Decomposition - Break down and solve multi-step problems
- Tool-Using Agents - Research on dynamic tool creation and usage
- Agent Memory Systems - Study persistence and experience learning
Citation
If you use AgentZ in your research, please cite:
@software{agentz2025,
title={AgentZ: A Research-Oriented Multi-Agent System Platform},
author={Your Name},
year={2025},
url={https://github.com/yourusername/agentz}
}
Contributing
We welcome contributions! AgentZ is designed to be a community resource for multi-agent research. Please open an issue or submit a pull request.
License
[Your License Here]
Acknowledgements
AgentZ is built with inspiration from the multi-agent systems research community. We thank the developers of various LLM frameworks and tools that make this work possible.
AgentZ: Building intelligent agents from zero to hero 🚀
Metadata
Release files for zero-agent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zero_agent-0.1.0.tar.gz | 79.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zero_agent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 184.0 kB
Release files / zero_agent-0.1.0.tar.gz
| Download URL | zero_agent-0.1.0.tar.gz |
|---|---|
| Size | 79.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
409e170228df7f27f053c1c34295385ab93380ac77224165601c79859023bbf8
|
|
BLAKE2b-256 checksum How to use checksums |
b88619d29bb8b478f1f0ec27355f0b2ced79d3ff6d18dba1fafd087f1f2534cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / zero_agent-0.1.0-py3-none-any.whl
| Download URL | zero_agent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 104.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
690ea30338d116af07621913ab72fbb4bb2f0e0e6853ac0369a609a9b5ab4d5b
|
|
BLAKE2b-256 checksum How to use checksums |
41548a928c98250c341e265ad2277c0d771cebab09c4697d6b6cd53dd15b26bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|