How gamermax1254/ai_code_checker works
Ai Code Checker is a desktop Python-code vulnerability reviewer and network-port scanner, with local Ollama analysis and configurable UI. The main flow is user input through the UI to code or network scanning, then AI-generated findings and recommendations displayed as reports. Startup checks Ollama/model availability and Nmap; settings persist locally. The README documents themes, fonts, offline-after-download operation, and both scan modes. Some UI code is omitted, so network-report handoff and UI-to-AI wiring are represented only where documented; update checking is an optional integration.
Main entry points: ui.py Desktop UI · ai_engine.py AI engine · scanners.py Network scanner · initializer.py Startup checks
Components 12
Desktop app
- Desktop UI
ui.py
Scanning
- Code scanner
scanners.py - Network scanner
scanners.py
Local AI
- AI engine
ai_engine.py
Setup and settings
- Startup checks
initializer.py - Settings manager
settings_manager.py - Settings file
settings.json - Runtime config
config.py
Other components
- User
- Nmap
- Ollama service
- GitHub Releases
Connections 19
- User → Desktop UI: enters scans
- Desktop UI → Code scanner: submits code
- Code scanner → AI engine: requests review
- AI engine → Ollama service: sends prompt
- Ollama service → AI engine: returns analysis
- AI engine → Code scanner: returns report
- Desktop UI → Network scanner: submits target
- Network scanner → Nmap: runs port scan
- Network scanner → Desktop UI: returns port report
- Desktop UI → AI engine: requests network advice
- Desktop UI → Settings manager: reads and updates
- Settings manager → Settings file: loads and saves
- AI engine → Settings manager: stores model choice
- Startup checks → Ollama service: checks and downloads model
- Startup checks → Nmap: checks availability
- Network scanner → Runtime config: uses command
- Startup checks → Runtime config: uses API base
- AI engine → Runtime config: uses API base
- Desktop UI → GitHub Releases: checks releases