Pattern Gallery
Five reusable architectural patterns. Each is applied at multiple points in the system.
Consensus Pattern
N providers → quorum → decision
Multiple LLM providers receive the same request in parallel. Results are aggregated by quorum rule (≥3/4). Fault tolerance: MIN_PROVIDERS=2.
Evaluation Loop
Generate → evaluate → retry/kill
Every result passes through an evaluator. If the score is below threshold — retry with hints (up to 3 attempts). If all attempts fail — the kill gate rejects.
DAG Orchestration
Topological sort → parallel execution
Tasks are represented as a directed acyclic graph. Topological sort determines dependency levels. Tasks at the same level execute in parallel via asyncio.gather().
Kill Gate
Threshold → rejection → rejection metrics
At critical pipeline points, gates with configurable thresholds are placed. If not passed — kill_stage and kill_reason are recorded. Rejection saves resources on expensive downstream stages.
Meta-Agent Pattern
Agents managing agents
Top-level abstraction: a system that monitors, coordinates, and augments the work of lower-level agents. Includes session detection, context recap, and thinking amplifier.
Ready to discuss?
If you need an architect who builds autonomous AI systems — reach out.
Serbia-based · CET/CEST timezone · EU-aligned working hours · International contracts experience