Fully autonomous AI Agents system capable of performing complex penetration testing tasks
PentAGI Frontend
A chat application built with React, TypeScript, and GraphQL that enables intelligent conversations with AI agents.
Features
- π¬ Real-time chat interface with AI agents
- π€ Multiple AI agent support and management
- π Real-time terminal output monitoring
- π― Task and subtask tracking system
- π Integrated search capabilities
- π Vector store for knowledge base management
- πΈ Screenshot capture and management
- π Dark/Light theme support
- π± Responsive design (mobile, tablet, desktop)
- π Authentication system with multiple providers
- π Real-time updates via GraphQL subscriptions
- β‘ High-performance React components
Tech Stack
- Framework: React 18 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- UI Components:
- shadcn/ui
- Radix UI primitives
- Lucide icons
- State Management:
- React Context
- Custom Hooks
- API Integration:
- GraphQL
- Apollo Client
- WebSocket subscriptions
- Type Safety: TypeScript
- Authentication: Multiple provider support
- Code Quality:
- ESLint
- Prettier
- TypeScript strict mode
Project Structure
src/ βββ components/ # Shared UI components β βββ ui/ # Base UI components β βββ icons/ # SVG icons and logo βββ features/ # Feature-based modules β βββ chat/ # Chat related components β βββ authentication/ # Auth related components βββ hooks/ # Custom React hooks βββ lib/ # Utilities and configurations βββ graphql/ # GraphQL operations and types βββ models/ # TypeScript interfaces βββ pages/ # Application routes
Key Components
Chat Interface
- Split view with messages and tools panels
- Resizable panels for desktop
- Mobile-optimized view with tabs
- Real-time message updates
Task System
- Real-time task tracking
- Subtask management
- Progress monitoring
- Status updates
Terminal
- Command output display
- Real-time updates
- Scrollable history
- Syntax highlighting
Vector Store
- Knowledge base integration
- Search capabilities
- Data management
Agent System
- Multi-agent support
- Agent status monitoring
- Agent communication logs
Development
Prerequisites
- Node.js 18+
- pnpm 10+
Installation
- Clone the repository
- Install dependencies: pnpm install
- Start the development server: pnpm run dev
Building for Production
pnpm run build
Environment Variables
Create a .env file in the root directory:
VITE_API_URL=your_api_url
Contributing
- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request