I will check the files in the project to understand the structure and installed packages.
I will read package.json to see what libraries and icon packs are available.
I will install lucide-react for polished modern AI-chat icons and UI components, and canvas-confetti for rewarding organization milestones.
I will read index.html and src/index.css to verify typography, styles, and theming.
I will check src/index.css.
I will test build the project to confirm the baseline build works.
I will create src/types/game.ts defining all TypeScript data structures for chat items, message nodes, branches, folder buckets, upgrades, scoring, and lore arcs.
I will create src/utils/audio.ts providing synthesized sound effects using the browser Web Audio API.
I will create src/data/storylines.ts containing the realistic and hilarious AI chat conversations, branching tree message nodes, and embedded lore arcs.
I will clean up unused imports in src/data/storylines.ts.
I will create src/data/levels.ts containing the level configurations, lore mysteries, initial folders, and chats for each stage.
I will update src/data/levels.ts to include the icon field for Upgrade tools and clean up unused imports.
I will create src/utils/scoring.ts to implement the scoring algorithm, topic purity checks, tree topology evaluation, and token savings metrics.
I will create src/components/Navbar.tsx for the navigation header, token currency wallet, entropy meter, sound controls, and upgrade store button.
I will clean up unused imports in src/components/Navbar.tsx.
I will create src/components/Sidebar.tsx to render interactive folder drop targets, category matching indicators, lore progress counters, and workspace management.
I will clean up unused imports in src/components/Sidebar.tsx.
I will create src/components/ChatCard.tsx for interactive chat cards with drag-and-drop handles, snippet previews, tree badges, hallucination pruning, and quick actions.
I will clean up the unused variable in src/components/ChatCard.tsx.
I will create src/components/ChatDetailModal.tsx to display full ChatGPT-style chat bubbles, role icons, timestamp badges, hallucination snip actions, and lore clues.
I will create src/components/TreeGraphModal.tsx displaying an interactive SVG branch tree visualizer for multi-fork conversation topologies.
I will create src/components/ShopModal.tsx to handle the upgrade store where players spend earned token credits on efficiency tools.
I will create src/components/ScoreReportModal.tsx displaying the level victory breakdown, SSS ranking, canvas confetti effects, and token rewards.
I will create src/components/TerminalCLI.tsx providing a hacker terminal CLI modal for power users to execute fast organization commands.
I will create src/App.tsx tying together all game mechanics, drag-and-drop sorting, batch merging, branch surgery, lore clues, shop upgrades, and scoring HUD.
I will update src/App.tsx to fix the TypeScript typing annotations and clean up unused imports.
I will update src/App.tsx with explicit Folder types.
I will clean up the remaining type annotations in src/App.tsx.
I will update line 341 in src/App.tsx to type f: Folder.
I will update index.html with an engaging game title and meta tags.
I will now run build_project to test the build.
I have built Context Window: AI Chat Custodian, an interactive puzzle and account-management mini-game about organizing chaotic LLM accounts.
What Was Built:
-
Core Lore & Relatable Premise:
- Tame the sidebar chaos of real LLM users: messy 1-turn orphan prompts, deeply branching multi-turn conversation trees, and hallucinated token bloat loops.
- Embedded Storyline Lore: Reconstruct the mysterious 3-part conspiracy of "Project Synthetica" (a Godot NPC that begins unionizing LLM tokens and funding the Chat Janitor Retirement Plan) to unlock secret +1,500 point lore rewards.
-
Engaging Mechanics & Multi-Level Campaign:
- Shift 1: The Intern's Spilled Brain (Fundamentals of folder sorting & pruning bloat).
- Shift 2: The Branching Multiverse (Managing deep multi-fork conversation trees).
- Shift 3: The Secret Lore Conspiracy (Reconstructing the haunted AI indie game dev logs).
- Shift 4: The Chaos Hustler Overload (High-stakes venture pitch & dropship token panic).
-
Custom Coherence Scoring Algorithm:
- Topic Purity Index (0–100%): Evaluates semantic alignment across workspace folders.
- Token Bloat Reduction: Awards points and API-cost savings for snipping hallucinated retry loops.
- Tree Topology Score: Rewards pruning dead forks and organizing complex message trees.
- Lore Discovery Bonus: Huge +1,500 bonus for grouping connected story fragments.
- SSS / S / A / B / C Rank Audits: Displays confetti explosions and feedback from Dr. Byte, Chief Context Optimizer.
-
Purchasable Efficiency Tools (Janitor Tech Lab):
- 🔍 Semantic Radar: Highlights matching topic tags and category affinities.
- ✂️ Branch Pruner: Instant one-click hallucination cleanup.
- 🧲 Context Magnet: Auto-pulls loose 1-turn orphan prompts to their best-matching folder.
- 🪄 Smart Renamer AI: Replaces vague titles like "Untitled Chat (3)" with witty, crystal-clear names.
- 🗂️ Hyper-Merger 3000: Batch-merges multiple micro-chats into 1 unified Knowledge Vault.
-
Tactile UX & Interactive Tools:
- Drag-and-drop chat cards with neon glow hover effects and quick-mover dropdowns.
- Interactive modal with user/assistant bubbles and timestamps.
Files built: src/types/game.ts, src/utils/audio.ts, src/data/storylines.ts, src/data/levels.ts, src/utils/scoring.ts, src/components/Navbar.tsx, src/components/Sidebar.tsx, src/components/ChatCard.tsx, src/components/ChatDetailModal.tsx, src/components/TreeGraphModal.tsx, src/components/ShopModal.tsx, src/components/ScoreReportModal.tsx, src/components/TerminalCLI.tsx, src/App.tsx, index.html