Skip to content

Architecture Overview

Agentic Forge is built from modular components that work together to create efficient, interoperable AI agents with smart tool management.

Agentic Forge Architecture

Components

ComponentDescription
OrchestratorStandalone component managing the LLM conversation loop with model routing, tool routing, and hooks for observability.
ArmoryProtocol gateway that aggregates multiple tool sources and exposes them through a unified MCP interface.
Tool RAGDynamic tool selection using semantic search to reduce context usage and improve accuracy.
InterfacesCLI, Web UI, WebSocket API, and Python SDK for interacting with the system.
AnvilCLI and web-based inspector for testing and debugging MCP servers during development.

Key Innovations

Protocol Interoperability

Different LLMs output tool calls in different formats (OpenAI, Anthropic, Gemini, etc.). Agentic Forge normalizes these through Pydantic AI and translates to whatever backend format is needed.

Token Optimization with TOON

Tool results are converted from JSON to TOON (Token-Oriented Object Notation) at the gateway level, achieving 30-40% token savings without requiring changes to existing MCP servers or tools.

Smart Tool Selection

Instead of loading all tools into context, Tool RAG uses semantic search to dynamically select only relevant tools, reducing context usage by ~50% and improving accuracy by 3x.

Data Flow

Tool Call Data Flow

Technology Stack

LayerTechnologyPurpose
FrameworkPydantic AIModel abstraction, type-safe tools
ProtocolMCP (Streamable HTTP)Tool communication standard
FormatTOONToken-efficient data encoding
SearchVector embeddingsSemantic tool matching
APIWebSocket + RESTReal-time streaming + management

Building efficient AI agents