Iggy Core, Product Requirements Document (PRD)

PRD: Iggy Core (CPU Optimized Edition)

1. Objective

Build a secure, personal AI agent using local CPU-based inference. The system must provide a "Digital Twin" experience with high security and acceptable performance on commodity server hardware (no GPU).

2. Infrastructure & Model

3. The "Shield" (Security & Resource Defense)

Since CPU inference is slow, resource exhaustion is a major threat.

4. RAG Implementation (Build-Time Only)

5. User Experience & Perceived Performance

Since CPU inference is slower than GPU, the UI must mask latency to remain "reasonable."

6. Development Tasks

  1. Bridge Setup: Express server with express-rate-limit and slow-down.
  2. Inference Bridge: Connect to llama-server via local fetch; implement the request queue.
  3. Static RAG: Build the JS-only vector matcher.
  4. Defense: Add the "Iggy Shield" regex and honeypot middleware.
  5. UI: React chat window with streaming text support and "Thinking" state indicators.

7. Success Constraints