Skip to content

lucianfialho/subagents-design-patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agentic Design Patterns - Specialized Agents

A comprehensive collection of 21 specialized agents implementing the agentic design patterns from "Agentic Design Patterns" by Antonio Gulli. These agents provide systematic approaches to common AI agent challenges and can be used individually or in combination to solve complex problems.

Overview

This repository contains implementations of all 21 core patterns from the book, organized into specialized agents that can be deployed in AI systems. Each agent follows the scientific principles and methodologies outlined in the original work, providing reliable and well-tested approaches to agent design.

Source Material: Agentic Design Patterns by Antonio Gulli

Agent Categories

Core Patterns (1-7)

Fundamental patterns for basic agent capabilities and workflow management.

  • prompt-chainer - Sequential prompt execution for complex multi-step tasks
  • router - Intelligent request classification and routing to appropriate handlers
  • parallelizer - Concurrent execution of multiple independent tasks
  • reflector - Self-examination and iterative improvement of outputs
  • tool-orchestrator - Strategic external tool integration and management
  • planner - Structured task decomposition with dependency management
  • multi-agent - Collaborative problem-solving through agent coordination

Advanced Patterns (8-11)

Sophisticated patterns for memory, learning, and system integration.

  • memory-manager - Contextual continuity through intelligent information storage
  • learning-adapter - Dynamic improvement through experience and feedback
  • mcp-integrator - Standardized communication with external resources
  • goal-monitor - Executive function providing direction and accountability

Integration Patterns (12-14)

Patterns for robust system integration and quality assurance.

System-Level Patterns (15-21)

Enterprise-grade patterns for production systems and complex environments.

  • agent-communicator - Structured communication infrastructure for agent coordination
  • resource-optimizer - Dynamic resource monitoring and optimization
  • reasoning-engine - Systematic logical inference and structured problem-solving
  • safety-guardian - Comprehensive safety mechanisms for acceptable operation bounds
  • evaluator - Comprehensive performance assessment and system health tracking
  • prioritizer - Intelligent task ranking and scheduling based on multiple criteria
  • explorer - Systematic investigation of unknown environments for knowledge acquisition

Quick Start

Installation

Run the installation script to set up all agents:

curl -fsSL https://raw.githubusercontent.com/anti-achismo-social-club/subagents-design-patterns/main/install.sh | bash

Or manually copy the agents directory to your AI system's agent folder.

Basic Usage

Each agent is defined in a markdown file with YAML frontmatter specifying its configuration:

---
name: agent-name
description: When and how to use this agent
tools: List, Of, Tools  # Optional - omit to inherit all tools
---

Agent Selection Guidelines

Use Proactively (marked with "PROACTIVELY" in description):

  • prompt-chainer, router, parallelizer, tool-orchestrator, planner, multi-agent
  • goal-monitor, exception-handler, rag-retriever, agent-communicator
  • resource-optimizer, safety-guardian, evaluator, prioritizer, explorer

Use On-Demand:

  • reflector, memory-manager, learning-adapter, mcp-integrator
  • human-validator, reasoning-engine

Examples and Patterns

See the examples directory for:

Agent Tool Assignments

Agent Recommended Tools
prompt-chainer Read, Write, Edit, TodoWrite
router Task, Bash
parallelizer Task, Bash
reflector Read, Grep, Glob
tool-orchestrator (inherits all tools)
planner TodoWrite, Read
multi-agent Task
memory-manager Read, Write, TodoWrite
learning-adapter Read, Write, Bash
mcp-integrator Read, Bash, WebFetch
goal-monitor TodoWrite, Read, Bash
exception-handler Bash, Read, Edit
human-validator Read, Write
rag-retriever Read, Grep, WebSearch
agent-communicator Task, Read
resource-optimizer Bash, Read, Grep
reasoning-engine Read, Grep, Write
safety-guardian Read, Grep
evaluator Read, Bash, Grep
prioritizer TodoWrite, Read, Bash
explorer Grep, Glob, Read, WebSearch

Implementation Philosophy

These agents implement the scientific principles from Antonio Gulli's "Agentic Design Patterns":

  1. Pattern-Based Design - Each agent follows proven design patterns with clear responsibilities
  2. Composability - Agents can be combined to solve complex problems
  3. Specialization - Each agent focuses on a specific capability or pattern
  4. Reliability - Built on tested methodologies from production AI systems
  5. Simplicity - Clean, understandable implementations focused on core functionality

Contributing

When adding new agents or modifying existing ones:

  1. Follow the established template structure
  2. Base implementations on the source patterns from the book
  3. Maintain clear separation of concerns
  4. Update documentation and examples

Credits

License

This implementation is provided as-is for educational and development purposes. Please refer to the original book and repository for licensing terms of the underlying patterns and content.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

 
 
 

Contributors

Languages