How pentagi-oss/pentagi works
PentAGI is a self-hosted AI penetration-testing system. The principal workflow starts with a security engineer configuring and launching a flow in the web UI; the backend coordinates autonomous specialist agents, which use isolated security tools and external intelligence against a target, persist activity, and expose progress and reports. Supporting layers include provider adapters, GraphQL/API services, durable storage, knowledge-graph memory, and observability. The README documents these capabilities; sampled source confirms frontend routing/task rendering and selected backend subsystems, but not the full agent execution wiring.
Main entry points: performer.go Autonomous agent team · router.go HTTP and GraphQL API · services Domain services · app.tsx PentAGI web UI
Components 21
Web experience
- PentAGI web UI
frontend/src/app.tsx - Flow task view
frontend/src/features/flows/tasks/flow-tasks.tsx - GraphQL client
frontend/src/lib/apollo.ts
API and state
- HTTP and GraphQL API
backend/pkg/server/router.go - Authentication
backend/pkg/server/auth - Domain services
backend/pkg/server/services - Persistent records
backend/pkg/database - Live event channels
backend/pkg/graph/subscriptions/controller.go
Testing workflow
- Task queue
backend/pkg/queue/queue.go - Autonomous agent team
backend/pkg/providers/performer.go - Security tool suite
backend/pkg/tools - Isolated execution
backend/pkg/docker/client.go - Vulnerability reports
backend/cmd/ctester/report.go
External systems
- LLM providers
backend/pkg/providers/handlers.go - Web search systems
backend/pkg/tools/search.go - Web intelligence
backend/pkg/tools/browser.go - Knowledge graph
backend/pkg/graphiti/client.go - Telemetry and analytics
backend/pkg/observability/obs.go
Installation
- Setup wizard
backend/cmd/installer/wizard/app.go
Other components
- Security engineer
- System under test
Connections 22
- Security engineer → PentAGI web UI: configures and launches
README.md - PentAGI web UI → GraphQL client: uses
frontend/src/app.tsx - GraphQL client → HTTP and GraphQL API: sends GraphQL requests
- HTTP and GraphQL API → Authentication: authenticates requests
- HTTP and GraphQL API → Domain services: routes operations
- Domain services → Persistent records: reads and writes
- Domain services → Live event channels: publishes live updates
- Live event channels → Flow task view: streams progress
- Flow task view → PentAGI web UI: renders task progress
frontend/src/features/flows/tasks/flow-tasks.tsx - Domain services → Task queue: dispatches work
- Task queue → Autonomous agent team: delivers tasks
README.md - Autonomous agent team → LLM providers: requests reasoning
README.md - Autonomous agent team → Security tool suite: selects and invokes
README.md - Security tool suite → Isolated execution: executes in sandbox
README.md - Isolated execution → System under test: runs security tests
README.md - Autonomous agent team → Web search systems: gathers intelligence
README.md - Autonomous agent team → Web intelligence: browses sources
README.md - Autonomous agent team → Knowledge graph: stores knowledge
README.md - Autonomous agent team → Persistent records: persists activity
README.md - Autonomous agent team → Vulnerability reports: generates findings
README.md - HTTP and GraphQL API → Telemetry and analytics: reports telemetry
README.md - Security engineer → Setup wizard: configures deployment
README.md