Skip to content
Architecture

Pattern Gallery

Five reusable architectural patterns. Each is applied at multiple points in the system.

Consensus Pattern

N providers → quorum → decision

Request
OpenAI o4-mini
Claude Opus
Gemini 2.5 Pro
DeepSeek Reasoner
Quorum ≥3/4
Approved
Rejected
input → openaiinput → claudeinput → geminiinput → deepseekopenai → quorumclaude → quorumgemini → quorumdeepseek → quorumquorum → approved(≥3 yes)quorum → rejected(<3 yes)

Multiple LLM providers receive the same request in parallel. Results are aggregated by quorum rule (≥3/4). Fault tolerance: MIN_PROVIDERS=2.

Board serviceFeature reviewPlan reviewCode review

Evaluation Loop

Generate → evaluate → retry/kill

Generate
Evaluate
Passed
Retry + hints
Rejected
generate → evaluateevaluate → pass(≥ threshold)evaluate → retry(< threshold, retries left)evaluate → kill(< threshold, no retries)retry → evaluate

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.

Judge systemCriticTask reviewerCompliance

DAG Orchestration

Topological sort → parallel execution

Planner
Topo sort
Level 1 (parallel)
Level 2 (parallel)
Level 3 (parallel)
Assembly
plan → topotopo → level1level1 → level2level2 → level3level3 → assemble

Tasks are represented as a directed acyclic graph. Topological sort determines dependency levels. Tasks at the same level execute in parallel via asyncio.gather().

Code generationTask planner

Kill Gate

Threshold → rejection → rejection metrics

Stage result
Gate (min_score)
Continue
Rejected
kill_stage + reason
result → gategate → continue(≥ threshold)gate → kill(< threshold)kill → log

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.

OrchestratorCriticComplianceBoard

Meta-Agent Pattern

Agents managing agents

Agent Manager
Session detection
Monitoring
Buddy System
Context recap
Thinking amplifier
manager → detectdetect → monitormonitor → buddybuddy → recapbuddy → amplifier

Top-level abstraction: a system that monitors, coordinates, and augments the work of lower-level agents. Includes session detection, context recap, and thinking amplifier.

Agent ManagerBuddy SystemHooks

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