Skip to content
ย 
ย 

Latest commit

ย 

History

76 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŒ DevHunt โ€” Local-First AI Assistant for Developers

License: MIT Python: 3.10+ Platform: Windows | macOS | Linux Docker: Available

DevHunt is a local-first, self-hosted developer productivity workspace. Designed for absolute privacy, it combines Streaming Chat, a Knowledge Base (RAG), Quest Board (Todo Kanban), and a Learning Path generator into a single cohesive system powered by free-tier Gemini API keys and local embedding pipelines.

No subscriptions. No third-party data tracking. Everything is stored on your machine.


๐Ÿš€ Key Features

  • ๐Ÿ› ๏ธ Self-Healing Setup โ€” Auto-verify Python, rebuild venv, skip dependency checks on re-runs
  • ๐Ÿ–ฅ๏ธ Hunt Terminal CLI โ€” Cross-platform shell commands, todo management, API testing
  • ๐Ÿ—บ๏ธ Interactive Learning Paths โ€” AI-generated learning roadmaps with daily milestones
  • ๐Ÿง  Long-Term Memory โ€” Consolidated facts & preferences from conversations to SQLite
  • ๐Ÿ“ก Auto-Updater โ€” Git pull releases with announcements tab
  • ๐Ÿ”„ Key Rotation โ€” Multiple Gemini API keys with round-robin & rate-limit handling
  • ๐Ÿ“š Knowledge Base (RAG) โ€” Index PDFs/notes, split-screen document analysis
  • ๐ŸŒ URL Scraper โ€” Web documentation ingestion with SSL fallback
  • ๐Ÿ“Š Activity Logging โ€” Comprehensive SQLite logs with filters (chat, terminal, todos)
  • ๐ŸŽฎ Game Arcade โ€” Developer-themed offline games with canvas rendering
  • ๐Ÿ“ Layout Customization โ€” Collapsible sidebar, tabbed editing, code formatting
  • ๐ŸŽจ Multi-Theme โ€” Industrial Slate, Minimalist Light, Devil Version, Cyberpunk Neon
  • ๐Ÿ”ค Custom Fonts โ€” 8 Google Fonts with dynamic UI typography selection

๐Ÿ“‹ System Requirements

Required

  • OS: Windows 10/11, macOS Big Sur+, or Ubuntu 20.04+
  • Python: 3.10 or higher
  • Internet: Required for Gemini API communication
  • Browser: Chrome, Edge, Firefox, or Safari

Optional (for Docker)

  • Docker: Latest version (for containerized deployment)
  • Docker Compose: For multi-container orchestration

โšก Quick Start

Option A: Native Installation (Development)

  1. Clone Repository

    git clone https://github.com/h-innoveda/DevHunt.git
    cd web-hunt
  2. Run Launcher

    Windows:

    run.bat

    macOS/Linux:

    chmod +x run.sh && ./run.sh
  3. Register API Key

  4. Connect CLI (Optional)

    hunter.bat -dt     # Windows
    ./hunter -dt       # macOS/Linux

Option B: Docker Deployment (Production)

  1. Build & Run

    docker build -t hitessolanki/dev-hunt:latest .
    docker run -d -p 1225:8080 --name dev-hunt hitessolanki/dev-hunt:latest

    Open: http://localhost:1225

  2. Docker Compose (Persistent)

    version: '3.8'
    services:
      dev-hunt:
        image: hitessolanki/dev-hunt:latest
        container_name: dev-hunt
        ports:
          - "1225:8080"
        volumes:
          - dev-hunt-data:/app/backend/data
          - dev-hunt-uploads:/app/backend/uploads
        environment:
          - PYTHONUNBUFFERED=1
        restart: unless-stopped
    volumes:
      dev-hunt-data:
      dev-hunt-uploads:
    docker-compose up -d
  3. Docker Image Info

    • Base: python:3.11-slim (~70โ€“90 MB)
    • Runtime: tesseract, poppler (~50โ€“150 MB)
    • Python packages: ~350โ€“600 MB
    • Final size: ~534.9 MB compressed
    • Multi-stage build (builder discarded)
  4. Push to Docker Hub

    docker push hitessolanki/dev-hunt:latest

๐Ÿ“ Repository Structure

web-hunt/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app.py                      # Flask API (40+ endpoints)
โ”‚   โ”œโ”€โ”€ config.py                   # Configuration & encryption
โ”‚   โ”œโ”€โ”€ requirements.txt             # Python dependencies
โ”‚   โ”œโ”€โ”€ check_requirements.py        # Fast dependency checker
โ”‚   โ”œโ”€โ”€ hunter_cli.py               # CLI connection client
โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”œโ”€โ”€ chat_engine.py          # SSE streaming & tag extraction
โ”‚   โ”‚   โ”œโ”€โ”€ rag_pipeline.py         # Vector ingestion & search
โ”‚   โ”‚   โ”œโ”€โ”€ key_manager.py          # API key rotation
โ”‚   โ”‚   โ”œโ”€โ”€ todo_manager.py         # Quest board CRUD
โ”‚   โ”‚   โ”œโ”€โ”€ learning_path.py        # AI roadmap generation
โ”‚   โ”‚   โ”œโ”€โ”€ update_manager.py       # Git auto-updater
โ”‚   โ”‚   โ”œโ”€โ”€ terminal_engine.py      # Hunt CLI execution
โ”‚   โ”‚   โ”œโ”€โ”€ memory_manager.py       # Long-term memory
โ”‚   โ”‚   โ”œโ”€โ”€ profile_manager.py      # User settings
โ”‚   โ”‚   โ”œโ”€โ”€ analytics.py            # Usage & streaks
โ”‚   โ”‚   โ”œโ”€โ”€ document_analyzer.py    # Document processing
โ”‚   โ”‚   โ”œโ”€โ”€ intent_detector.py      # Intent classification
โ”‚   โ”‚   โ”œโ”€โ”€ logger.py               # Activity logging
โ”‚   โ”‚   โ”œโ”€โ”€ model_selector.py       # Model selection
โ”‚   โ”‚   โ””โ”€โ”€ db.py                   # SQLite management
โ”‚   โ””โ”€โ”€ data/
โ”‚       โ””โ”€โ”€ learning_path.json      # Default learning paths
โ”œโ”€โ”€ frontend/
โ”‚   โ”œโ”€โ”€ index.html                  # Main UI
โ”‚   โ”œโ”€โ”€ logs.html                   # Logs dashboard
โ”‚   โ”œโ”€โ”€ docs.html                   # Documentation
โ”‚   โ”œโ”€โ”€ app.js                      # SSE handlers & state
โ”‚   โ”œโ”€โ”€ arcade.js                   # Game canvas logic
โ”‚   โ”œโ”€โ”€ styles.css                  # Themes & styling
โ”‚   โ””โ”€โ”€ assets/                     # Images & resources
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ api_analysis.md             # API security analysis
โ”‚   โ”œโ”€โ”€ app_endpoints.md            # Endpoint documentation
โ”‚   โ”œโ”€โ”€ chat_engine.md              # Chat system docs
โ”‚   โ”œโ”€โ”€ memory_manager.md           # Memory system docs
โ”‚   โ”œโ”€โ”€ terminal_engine.md          # Terminal docs
โ”‚   โ”œโ”€โ”€ hunt_terminal_docs.md       # CLI commands reference
โ”‚   โ””โ”€โ”€ roadmap.md                  # Development roadmap
โ”œโ”€โ”€ run.bat                         # Windows launcher
โ”œโ”€โ”€ run.sh                          # Unix launcher
โ”œโ”€โ”€ hunter.bat                      # Windows CLI connector
โ”œโ”€โ”€ hunter                          # Unix CLI connector
โ”œโ”€โ”€ notifications.json              # System notifications
โ””โ”€โ”€ README.md                       # This file

๐Ÿ”Œ API Endpoints

DevHunt provides 40+ REST/SSE endpoints organized by domain:

Chat Endpoints

  • POST /api/chat โ€” Synchronous chat
  • POST /api/stream โ€” Streaming chat with SSE
  • GET /api/chat/history โ€” Conversation history

Knowledge Base (RAG)

  • POST /api/rag/ingest โ€” Index documents
  • POST /api/rag/query โ€” Search knowledge base
  • GET /api/rag/sources โ€” List indexed sources

Terminal

  • POST /api/terminal/run โ€” Execute commands
  • GET /api/terminal/cwd โ€” Get current directory
  • POST /api/terminal/navigate โ€” Change directory

IDE / File Management

  • GET /api/ide/file โ€” Read file
  • POST /api/ide/file โ€” Write file
  • POST /api/ide/delete โ€” Delete file
  • POST /api/ide/rename โ€” Rename file
  • GET /api/ide/tree โ€” File tree

Todo / Quest Board

  • GET /api/todo/list โ€” Get todos
  • POST /api/todo/create โ€” Create todo
  • PATCH /api/todo/:id โ€” Update todo
  • DELETE /api/todo/:id โ€” Delete todo

Analytics

  • GET /api/analytics/stats โ€” Usage statistics
  • GET /api/analytics/streaks โ€” Activity streaks

See docs/app_endpoints.md for complete documentation.


๐Ÿ” Security Features

  • Path Traversal Prevention โ€” Validated file access with os.path.realpath()
  • Command Injection Prevention โ€” Shell=False subprocess execution with operator validation
  • Request Size Limits โ€” 32MB max payload to prevent DoS
  • Encrypted API Keys โ€” Fernet encryption for stored credentials
  • Non-Root Docker User โ€” Container runs as appuser
  • CORS Configuration โ€” Configurable origin restrictions
  • Debug Mode Disabled โ€” Production-ready default settings

๐Ÿ“š Documentation


๐Ÿ”„ Troubleshooting

Port Already in Use

# Windows
netstat -ano | findstr :5000
taskkill /PID <PID> /F

# macOS/Linux
lsof -i :5000
kill -9 <PID>

Virtual Environment Issues

# Rebuild venv
rm -rf backend/venv
python -m venv backend/venv
source backend/venv/bin/activate  # or venv\Scripts\activate on Windows
pip install -r backend/requirements.txt

Docker Issues

# View logs
docker logs dev-hunt

# Rebuild image
docker build --no-cache -t hitessolanki/dev-hunt:latest .

# Check container status
docker ps -a

Python Version Error

# Verify Python version
python --version

# If not 3.10+, download from https://www.python.org/

๐Ÿค Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License โ€” see LICENSE file for details.


๐Ÿ’ฌ Support

For issues, questions, or suggestions:


๐ŸŽฏ Roadmap

  • PostgreSQL migration (SQLite โ†’ PostgreSQL)
  • Redis caching layer
  • Authentication system
  • Microservices architecture
  • WebSocket support
  • Advanced analytics dashboard
  • Team collaboration features
  • Mobile companion app

See docs/roadmap.md for detailed milestones.


Made with โค๏ธ by DevHunt Team

Last updated: June 2026 | Version: 1.0.0

About

A local-first, self-hosted AI assistant for problem solving, debugging, learning, and answering any question. Powered by Google's free Gemini & Gemma models. No subscriptions. No data sent to third-party services. Runs entirely on your machine.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages