An AI-powered compliance automation platform that monitors regulatory updates, extracts rules from legal documents, maps them to cloud infrastructure, detects violations, and generates actionable fixes with GitHub PR automation.
Now powered by CrewAI multi-agent system!
- Multi-Agent Architecture: 5 specialized AI agents working together via CrewAI
- Multi-Framework Compliance: GDPR, HIPAA, SOC2, PCI-DSS, FedRAMP
- AI-Powered Rule Extraction: Uses Amazon Bedrock (Claude 3) to extract structured rules from regulatory PDFs
- Infrastructure Scanning: Parses Terraform and Kubernetes configurations
- Violation Detection: Maps regulatory requirements to infrastructure resources
- Blast Radius Analysis: Visualizes impact of violations across dependent resources
- Automated Remediation: AI-generated fixes with code diffs
- GitHub Integration: Creates pull requests for approved fixes
- Human-in-the-Loop: Approval workflow for remediation actions
- Real-time Progress: WebSocket-based live updates as agents work
RegRadar uses a CrewAI-powered multi-agent system with 5 specialized agents:
| Agent | Role | Capabilities |
|---|---|---|
| Regulatory Analyst | Extract rules from documents | PDF parsing, rule extraction, categorization |
| Infrastructure Scanner | Analyze IaC configurations | Terraform/K8s parsing, security analysis |
| Compliance Mapper | Map rules to resources | Violation detection, risk scoring |
| Risk Assessor | Analyze blast radius | Impact assessment, prioritization |
| Remediation Engineer | Generate fixes | Code generation, PR creation |
Regulatory Documents → [Regulatory Analyst] → Extracted Rules
↓
Infrastructure Code → [Infrastructure Scanner] → Resource Inventory
↓
[Compliance Mapper] ← Rules + Resources
↓
Violations
↓
[Risk Assessor]
↓
Prioritized Violations
↓
[Remediation Engineer]
↓
GitHub Pull Requests
┌─────────────────────────────────────────────────────────────┐
│ RegRadar Platform │
└─────────────────────────────────────────────────────────────┘
│
┌───────────────────────────────┼───────────────────────────────┐
│ │ │
┌───────▼───────┐ ┌───────▼───────┐ ┌────────▼───────┐
│ Frontend │ │ Backend │ │ Infrastructure │
│ (Next.js) │◄────────────►│ (FastAPI) │◄────────────►│ (Terraform) │
└───────────────┘ └───────┬───────┘ └────────────────┘
│
┌──────────────────────────────┼──────────────────────────────┐
│ │ │
┌───────▼───────┐ ┌───────▼───────┐ ┌───────▼───────┐
│ Amazon Bedrock│ │ OpenSearch │ │ S3 │
│ (Claude 3) │ │ (Indexing) │ │ (Storage) │
└───────────────┘ └───────────────┘ └───────────────┘
- Python 3.11+
- Node.js 18+
- Docker & Docker Compose
- AWS CLI configured (for production)
- Clone and setup
git clone https://github.com/your-org/regRadar.git
cd regRadar
cp .env.example .env- Start services with Docker
make dev
# Or manually:
docker-compose up -d- Start backend
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn src.api.main:app --reload --port 8000- Start frontend
cd frontend
npm install
npm run dev- Access the application
- Frontend: http://localhost:3000
- API: http://localhost:8000
- API Docs: http://localhost:8000/docs
regRadar/
├── backend/ # FastAPI backend
│ └── src/
│ ├── api/ # REST API routes
│ ├── agents/ # CrewAI agent definitions
│ ├── crews/ # Crew orchestration
│ ├── tools/ # CrewAI tools
│ ├── models/ # Pydantic models
│ ├── services/ # Business logic
│ ├── llm/ # LLM integration (Bedrock, LangChain)
│ ├── parsers/ # Terraform, K8s, PDF parsers
│ └── storage/ # S3, OpenSearch clients
│ └── demo/ # Demo data
│ ├── regulations/ # Sample regulatory documents
│ ├── terraform/ # Sample Terraform with violations
│ └── kubernetes/ # Sample K8s with violations
├── frontend/ # Next.js frontend
│ └── src/
│ ├── app/ # Next.js pages
│ │ └── agents/ # AI Agents dashboard
│ ├── components/ # React components
│ │ └── agents/ # Agent UI components
│ ├── hooks/ # Custom hooks
│ └── lib/ # Utilities
├── infrastructure/ # Terraform IaC
│ └── terraform/
│ ├── modules/ # Reusable modules
│ └── environments/ # Dev/Prod configs
├── samples/ # Demo data
│ ├── terraform/ # Sample TF configs
│ └── kubernetes/ # Sample K8s manifests
└── docs/ # Documentation
POST /documents/upload- Upload regulatory documentGET /documents- List all documentsPOST /documents/{id}/extract- Extract rules from document
POST /compliance/scan- Scan infrastructureGET /compliance/overview- Get compliance dashboard dataPOST /compliance/check- Run compliance check
GET /violations- List violationsGET /violations/{id}/blast-radius- Get blast radius analysisGET /violations/{id}/explain- Get AI explanation
POST /remediation/generate/{violation_id}- Generate fixPOST /remediation/{id}/approve- Approve remediationPOST /remediation/create-pr- Create GitHub PR
GET /agents- List all agents and their capabilitiesGET /agents/{role}- Get specific agent detailsPOST /agents/crew/run- Start compliance analysis crewGET /agents/crew/executions- List all crew executionsGET /agents/crew/executions/{id}- Get execution detailsPOST /agents/crew/executions/{id}/approve- Approve/reject PRsDELETE /agents/crew/executions/{id}- Cancel executionWS /agents/crew/ws/{id}- WebSocket for real-time progressPOST /agents/demo/run- Run demo with sample dataGET /agents/status- Get crew system status
# AWS
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your-key
AWS_SECRET_ACCESS_KEY=your-secret
# Bedrock
BEDROCK_MODEL_ID=anthropic.claude-3-sonnet-20240229-v1:0
# GitHub
GITHUB_TOKEN=ghp_xxxx
GITHUB_OWNER=your-org
GITHUB_REPO=your-repo
# OpenSearch
OPENSEARCH_ENDPOINT=https://search-xxx.us-east-1.es.amazonaws.com
OPENSEARCH_USERNAME=admin
OPENSEARCH_PASSWORD=xxx
# S3
S3_BUCKET_NAME=regRadar-documentscd infrastructure/terraform
terraform init
terraform plan -var-file=environments/prod.tfvars
terraform apply -var-file=environments/prod.tfvarsSee DEPLOYMENT.md for detailed instructions.
For hackathon demo, run with mock data:
make demoThis starts the application with pre-seeded violations and demo data.
See DEMO_SCRIPT.md for presentation walkthrough.
- Backend: Python, FastAPI, CrewAI, LangChain, Pydantic
- Frontend: Next.js 14, React, TailwindCSS, Recharts
- AI/ML: Amazon Bedrock (Claude 3), CrewAI, LangChain
- Infrastructure: Terraform, AWS (Lambda, S3, OpenSearch, EventBridge)
- DevOps: Docker, GitHub Actions
MIT License - See LICENSE
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request