EggHatch-AI Tutorial

EggHatch-AI Tutorial

EggHatch-AI Codebase Guide

EggHatch-AI is an open-source AI shopping agent prototype for PC building and gaming laptop recommendations. It combines conversational intent understanding, review analysis, deterministic comparison logic, and local LLM synthesis into a small but thoughtfully structured demo.

This tutorial focuses on the current codebase shape:

  • the Streamlit dashboard and multi-turn chat loop
  • the master agent orchestration flow
  • the data and NLP pipeline behind recommendations
  • the new explainable laptop comparison flow
  • the repo’s new spec-driven development workflow

Source Repository: AustinZ21/EggHatch-AI

flowchart LR
    UI["Streamlit UI"] --> MA["Master Agent"]
    MA --> DP["Data Pipeline"]
    MA --> TA["Trend Analysis"]
    TA --> SA["Sentiment Analysis"]
    TA --> CMP["Comparison Helper"]
    MA --> LLM["Ollama Client"]
    MA --> STATE["Agent State"]
    SPEC["Spec-Driven Workflow"] --> MA

What Changed Recently

  • EggHatch-AI now supports structured laptop comparison rationale for explicit comparison queries.
  • Comparison output is now rendered in the dashboard instead of living only in the generated response text.
  • The repository now includes a spec-driven scaffold (.specify/, .agents/skills/, AGENTS.md) for structured iteration.
  • graphify-out/ artifacts are being used to map the project structure as the codebase evolves.

If you want the fastest mental model, read in this order:

  1. Master Agent
  2. Trend Analysis
  3. Explainable Comparison
  4. Agent State
  5. Prompts
  6. Spec-Driven Workflow

Chapters