# jfrog/boost architecture

> Architecture diagram of the GitHub repository jfrog/boost, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jfrog/boost
- Repository: https://github.com/jfrog/boost

## Overview

Boost is a local-first tool that reduces coding agents’ context consumption. Its documented workflow places Boost between an agent and the commands, MCP tools, and files it reads; Boost filters or optimizes that output, returns compact context, and preserves originals for later retrieval and reporting. The README also describes agent setup, local history, a desktop dashboard, and CI usage. No source excerpts were provided, so implementation ownership and internal calls cannot be verified; relationships below cite the README’s documented workflow and capabilities.

Main entry points: [`dist/index.js`](https://github.com/jfrog/boost/blob/main/dist/index.js) (Boost engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Agent integration"]
  node_init["Agent setup<br/>[index.js]"]
  node_integrations["Agent integrations<br/>[index.js]"]
  node_ci["Agents in CI<br/>[index.js]"]
end

subgraph group_processing["Output processing"]
  node_boost["Boost engine<br/>[index.js]"]
  node_terminal["Terminal filters<br/>[index.js]"]
  node_custom["Custom filters<br/>[index.js]"]
  node_mcp["MCP filters<br/>[index.js]"]
  node_files["File optimization<br/>[index.js]"]
  node_graph["BoostGraph<br/>[index.js]"]
end

subgraph group_history["Local history"]
  node_originals[("Saved originals<br/>[index.js]")]
  node_history[("Local history<br/>[index.js]")]
  node_retrieve["Boost retrieve<br/>[index.js]"]
end

subgraph group_insights["Usage insights"]
  node_dashboard["Savings dashboard<br/>[index.js]"]
  node_otel["OpenTelemetry export<br/>[index.js]"]
  node_pr["PR usage comments<br/>[index.js]"]
end

node_agent(("Coding agent"))

node_agent -->|"sends output"| node_boost
node_boost -->|"filters commands"| node_terminal
node_boost -->|"applies filters"| node_custom
node_boost -->|"filters responses"| node_mcp
node_boost -->|"optimizes files"| node_files
node_boost -->|"uses"| node_graph
node_boost -->|"returns compact context"| node_agent
node_boost -->|"saves originals"| node_originals
node_originals -->|"records locally"| node_history
node_init -->|"installs hooks"| node_integrations
node_integrations -->|"connects"| node_agent
node_history -->|"supports retrieval"| node_retrieve
node_history -->|"provides savings"| node_dashboard
node_history -->|"exports usage"| node_otel
node_boost -.->|"reports usage"| node_pr
node_ci -.->|"runs agents"| node_boost

click node_boost "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_terminal "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_custom "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_mcp "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_files "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_graph "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_init "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_integrations "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_originals "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_history "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_retrieve "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_dashboard "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_otel "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_pr "https://github.com/jfrog/boost/blob/main/dist/index.js"
click node_ci "https://github.com/jfrog/boost/blob/main/dist/index.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_init,node_integrations,node_ci toneBlue
class node_boost,node_terminal,node_custom,node_mcp,node_files,node_graph toneAmber
class node_originals,node_history,node_retrieve toneMint
class node_dashboard,node_otel,node_pr toneRose
class node_agent toneIndigo
```

## Components

### Agent integration

- [Agent setup](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Agent integrations](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Agents in CI](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`

### Output processing

- [Boost engine](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Terminal filters](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Custom filters](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [MCP filters](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [File optimization](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [BoostGraph](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`

### Local history

- [Saved originals](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Local history](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [Boost retrieve](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`

### Usage insights

- [Savings dashboard](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [OpenTelemetry export](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`
- [PR usage comments](https://github.com/jfrog/boost/blob/main/dist/index.js): `dist/index.js`

### Other components

- **Coding agent**

## Connections

- Coding agent → Boost engine: sends output (evidence: `README.md`)
- Boost engine → Terminal filters: filters commands (evidence: `README.md`)
- Boost engine → Custom filters: applies filters (evidence: `README.md`)
- Boost engine → MCP filters: filters responses (evidence: `README.md`)
- Boost engine → File optimization: optimizes files (evidence: `README.md`)
- Boost engine → BoostGraph: uses (evidence: `README.md`)
- Boost engine → Coding agent: returns compact context (evidence: `README.md`)
- Boost engine → Saved originals: saves originals (evidence: `README.md`)
- Saved originals → Local history: records locally (evidence: `README.md`)
- Agent setup → Agent integrations: installs hooks (evidence: `README.md`)
- Agent integrations → Coding agent: connects (evidence: `README.md`)
- Local history → Boost retrieve: supports retrieval (evidence: `README.md`)
- Local history → Savings dashboard: provides savings (evidence: `README.md`)
- Local history → OpenTelemetry export: exports usage (evidence: `README.md`)
- Boost engine → PR usage comments: reports usage (evidence: `README.md`)
- Agents in CI → Boost engine: runs agents (evidence: `README.md`)
