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
inputopenaiinputclaudeinputgeminiinputdeepseekopenaiquorumclaudequorumgeminiquorumdeepseekquorumquorumapproved(≥3 yes)quorumrejected(<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
generateevaluateevaluatepass(≥ threshold)evaluateretry(< threshold, retries left)evaluatekill(< threshold, no retries)retryevaluate

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
plantopotopolevel1level1level2level2level3level3assemble

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
resultgategatecontinue(≥ threshold)gatekill(< threshold)killlog

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
managerdetectdetectmonitormonitorbuddybuddyrecapbuddyamplifier

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