How neothecapt/redteamagent works
RedTeam Agent is an autonomous penetration-testing workflow for CTF/lab targets, with an optional local GUI for managing projects and observing runs. The documented engagement proceeds through recon, collection, testing, exploit/OSINT, and reporting; the GUI provides project setup, run control, progress, cases, events, documents, and artifacts. Backend excerpts show run supervision, persistence, summaries, and WebSocket streaming. Agent internals and several GUI/API subsystems are not included in the excerpts, so those branches rely on README statements; unsampled links are documented rather than inferred from names.
Main entry points: main.py HTTP and WS API · ShellPage.tsx Orchestrator UI · scripts Recon · runs.py Run supervision
Components 20
Engagement workflow
- Recon
agent/scripts - Case collection
agent/scripts - Test pipeline
agent/scripts - Exploit and OSINT
agent/scripts - Report synthesis
agent/scripts
Agent capabilities
- Specialist agents
agent/scripts - Containerized tools
agent/scripts
Orchestrator backend
- Run supervision
orchestrator/backend/app/services/runs.py - Runtime launcher
orchestrator/backend/app/services/launcher.py - Run summaries
orchestrator/backend/app/services/run_summary.py - HTTP and WS API
orchestrator/backend/app/main.py - Live event stream
orchestrator/backend/app/ws.py
Orchestrator UI
- Orchestrator UI
orchestrator/frontend/src/routes/ShellPage.tsx - API client
orchestrator/frontend/src/lib/api.ts
Persistent state
- Orchestrator database
orchestrator/backend/app/db.py - Engagement artifacts
agent/scripts
Other components
- Operator
- Lab target
- AI CLI
- GUI user
Connections 22
- Operator → AI CLI: starts engagement
README.md - AI CLI → Recon: begins workflow
README.md - Recon → Case collection: feeds intelligence
README.md - Case collection → Test pipeline: queues cases
README.md - Test pipeline → Exploit and OSINT: advances findings
README.md - Exploit and OSINT → Report synthesis: informs report
README.md - Recon → Specialist agents: uses agents
README.md - Test pipeline → Containerized tools: uses tools
README.md - Exploit and OSINT → Containerized tools: uses tools
README.md - Lab target → Recon: provides target
README.md - Report synthesis → Engagement artifacts: writes results
README.md - GUI user → Orchestrator UI: manages runs
README.md - Orchestrator UI → API client: requests data
orchestrator/frontend/src/routes/ShellPage.tsx - API client → HTTP and WS API: calls endpoints
README.md - HTTP and WS API → Run supervision: delegates run actions
orchestrator/backend/app/main.py - Run supervision → Runtime launcher: prepares runtime
orchestrator/backend/app/services/runs.py - Run supervision → Orchestrator database: persists run state
orchestrator/backend/app/services/runs.py - HTTP and WS API → Run summaries: serves summaries
- Run summaries → Orchestrator database: reads run data
orchestrator/backend/app/services/run_summary.py - HTTP and WS API → Live event stream: streams run updates
orchestrator/backend/app/main.py - Orchestrator UI → Live event stream: subscribes to updates
- Orchestrator UI → HTTP and WS API: views cases documents artifacts
README.md