repowisevxcontrol/pentagi

Architecture of vxcontrol/pentagi

vxcontrol/pentagi is 1,475 source files holding 14,297 symbols across 6 modules, written mainly in Go, TypeScript, Shell. The largest module is backend, with 708 files, and 9 files are entry points into the dependency graph.

How pentagi fits together

The backend is a Go module in the backend directory, and the browser interface is a React and TypeScript app in the frontend directory. The backend/pkg directory holds configuration, providers, controllers, observability and the server that exposes functionality, and requests pass through providers and controllers there. backend/pkg/graph/generated.go contains GraphQL resolver code that the README says is generated with gqlgen. frontend/src holds the React app, where pages render feature screens and features load data and manage state. backend/cmd/installer/main.go starts the interactive terminal installer, which runs system checks and creates the .env file. backend/cmd/ftester/main.go is a command-line tool that runs focused checks, such as a terminal command within a flow, and the README says it can also run inside the PentAGI container.

Largest modules

  • backend: 708 files and 174,987 lines of code
  • frontend: 535 files and 84,426 lines of code
  • examples: 6 files and 1,458 lines of code
  • scripts: 5 files and 245 lines of code
  • .github: 1 file and 37 lines of code
  • root: 1 file and 201 lines of code

Languages

By file count: Go 645 files, TypeScript 524 files, Shell 16 files, JavaScript 8 files, Dockerfile 1 file.

Documentation

Repowise documents pentagi in 1,678 pages generated from the source, 48 of them written explanations of the repository and its modules. Module guides include:

  • backend/migrations: API Versioning
  • frontend/src/components/layouts/app: Application Layouts
  • frontend/src/features/authentication: Authentication Flows

More on pentagi: summary and FAQ, codebase overview, code health.