Skip to Content
ConceptsArchitecture Overview

FrootAI Architecture Overview

> System design, data flow, and component architecture of the FrootAI platform.


1. System Architecture

Component Summary

ComponentTechnologyTransportArtifact
WebsiteDocusaurus 3, React, TypeScriptHTTPSStatic site on GitHub Pages
MCP ServerNode.js, JSON-RPC 2.0stdionpm package (frootai-mcp)
VS Code ExtensionTypeScript, VS Code APIIn-processVSIX on Marketplace
Knowledge HubMarkdown + MermaidFile systemdocs/*.md
Solution PlaysMarkdown, JSON, Python, YAMLFile systemsolution-plays/*/

2. The 6 Layers

FrootAI is organized in 6 conceptual layers, from foundational infrastructure to user-facing solutions:

LayerNameContents
1. KnowledgeFROOT Framework18 modules across 5 layers (FΒ·RΒ·OΒ·OΒ·T)
2. ToolingDeveloper KitMCP Server (25 tools) + VS Code Extension (13 commands)
3. ScaffoldingAgentic OS.github/ files β€” agent rules, prompts, CI, templates
4. ConfigurationTuneKitconfig/ β€” models, guardrails, routing, search, chunking
5. EvaluationQuality Gatesevaluation/ β€” golden sets, scoring scripts, benchmarks
6. SolutionsPlays20 pre-built scenario accelerators

3. Data Flow

How a user’s request flows through the system:

Request Types

TypeFlowTools Used
Knowledge QueryUser β†’ Chat β†’ MCP β†’ Docs β†’ Responsesearch_knowledge, get_module, lookup_term
Agent BuildUser β†’ Chat β†’ MCP β†’ Plays + Docs β†’ Scaffoldagent_build
Agent ReviewUser β†’ Chat β†’ MCP β†’ Analysis β†’ Findingsagent_review
Parameter TuneUser β†’ Chat β†’ MCP β†’ Config β†’ Optimizedagent_tune
Azure DocsUser β†’ Chat β†’ MCP β†’ Azure β†’ Responsefetch_azure_docs

4. DevKit + TuneKit Model

FrootAI uses a two-part approach to make projects agent-ready:

AspectDevKitTuneKit
PurposeDefine what the agent doesConfigure how well it does it
Location.github/config/ + evaluation/
ChangesPer-project, rarelyPer-iteration, frequently
ContentMarkdown rules, YAML workflowsJSON parameters, Python scripts
AnalogyThe recipeThe seasoning

5. .github Agentic OS

The Agentic OS is structured around 7 primitives organized in 4 layers:

The 7 Primitives

#PrimitiveFile(s)Purpose
1Agent Rulesagent.mdBehavioral boundaries and instructions
2Contextcopilot-instructions.mdProject knowledge for AI assistants
3Promptsprompts/*.prompt.mdReusable, parameterized prompt templates
4Workflowsworkflows/*.ymlCI/CD automation pipelines
5TemplatesISSUE_TEMPLATE/, pull_request_template.mdStructured collaboration
6Configconfig/*.jsonTunable parameters
7Evaluationevaluation/Quality benchmarks and scoring

Composition

Primitives are independent but synergistic:

  • agent.md alone = basic agent behavior
  • agent.md + copilot-instructions.md = context-aware agent
  • All 7 primitives = fully-equipped AI-native project

6. MCP Server Architecture

Tool Groups

GroupCountNetwork RequiredDescription
Static4NoQuery bundled knowledge β€” fast, offline
Live2YesFetch real-time external documentation
Chain3NoMulti-step agent workflows (build β†’ review β†’ tune)
AI Ecosystem5+NoArchitecture patterns, model guidance, platform info

Bundle

The npm package bundles all knowledge (664KB) so the server works offline. No database, no API keys, no external dependencies at runtime.


7. VS Code Extension Architecture

Key Design Decisions

DecisionRationale
Standalone engineWorks without MCP server or network
Bundled knowledgeNo external fetching for core features
24h cache TTLBalance freshness vs. offline reliability
Layer colorsVisual identification of FROOT layers
Tool groupingLogical organization matches MCP server groups

8. Deployment Architecture

Deployment Channels

TargetArtifactTriggerURL
GitHub PagesStatic sitePush to main (website/)frootai.dev
npm RegistryNode.js packageRelease tag (v*)npmjs.com/package/frootai-mcp
VS Code MarketplaceVSIX extensionRelease tag (v*)marketplace.visualstudio.com
GitHub ReleasesRelease notes + assetsRelease tag (v*)github.com/frootai/frootai/releases

No Backend Required

FrootAI is entirely static:

  • Website = pre-built HTML/CSS/JS
  • MCP Server = local stdio process
  • VS Code Extension = local extension
  • No databases, no cloud functions, no API servers

This zero-backend architecture means:

  • Zero hosting cost (GitHub Pages is free)
  • Zero latency for core operations
  • Zero downtime (static files never crash)
  • Zero security surface (no attack vectors)

> Next: Admin Guide Β· User Guide Β· API Reference

Last updated on