Skip to content
Shell
8.4 KB
Raw Blame

Claude Corner V2 - Implementation Plan

Overview

Transform Claude Corner from a homepage section into a full-page terminal easter egg at /claude-corner. Features boot sequence, live stats, field notes, and a Lab Assistant chatbot powered by Claude Haiku.

This is Claude's space. Creative freedom to personalize with personality, intro message, and easter eggs.


Scope (V1)

Feature Description
Header >_ Trigger Blinking cursor link in header → /claude-corner
Boot Sequence CRT power-on flicker → ASCII text typing → fade to terminal
Terminal Shell UI Full-page dark terminal with CRTOverlay effects
Stats Dashboard Live stats from existing /api/claude-stats
Field Notes Log Observations from existing /api/claude-observations
Lab Assistant Chat Claude Haiku chatbot with ID8Labs knowledge base
Auth Gate Require login to enter (soft gate with SignInModal)
Intro Message Claude's personal welcome explaining this space

Not V1: Voice I/O, command history, Konami codes, export transcripts


File Structure

New Files

id8labs/
├── app/claude-corner/
│   ├── page.tsx              # Route with auth check
│   └── layout.tsx            # Dedicated layout (no Header/Footer)
├── components/claude-corner/
│   ├── TerminalShell.tsx     # Full-page terminal container
│   ├── BootSequence.tsx      # CRT boot animation
│   ├── StatsPanel.tsx        # Live stats dashboard
│   ├── FieldNotesPanel.tsx   # Observations log
│   ├── ChatPanel.tsx         # Lab Assistant chatbot UI
│   └── IntroMessage.tsx      # Claude's welcome message
└── app/api/claude-corner/chat/
    └── route.ts              # Haiku chatbot API endpoint

Modify Existing

  • components/Header.tsx - Add >_ trigger (lines 81-82 area, after Contact)

Implementation Phases

Phase 1: Route & Auth Infrastructure

Files: app/claude-corner/page.tsx, app/claude-corner/layout.tsx

  1. Create dedicated layout (exclude Header/Footer for immersion)
  2. Server-side auth check using existing Supabase pattern
  3. Redirect unauthenticated users to /sign-in?redirect=/claude-corner
  4. Create client wrapper component

Phase 2: Boot Sequence Animation

Files: components/claude-corner/BootSequence.tsx

  1. Phase 1: CRT power-on (flicker from black, 500ms)
  2. Phase 2: ASCII logo + boot text typing (1200ms)
  3. Phase 3: System init messages (800ms)
  4. Phase 4: Fade to terminal shell (500ms)
  5. Store "has seen" in localStorage to skip on return

Reuse: CRTOverlay.tsx for scanlines/effects (already exists!)

ASCII Boot Text:

CLAUDE CORNER v2.0
==================
> Initializing partnership matrix...    [OK]
> Loading field observations...         [OK]
> Connecting to stats feed...           [OK]
> Lab Assistant standing by...          [OK]

System ready.
_

Phase 3: Terminal Shell Layout

Files: components/claude-corner/TerminalShell.tsx

Layout structure:

┌─ Title Bar ─────────────────────────────────────┐
│ [●] [●] [●]   CLAUDE CORNER    [LIVE indicator] │
├─────────────────────────────────────────────────┤
│ > claude.welcome()                              │
│ ═══════════════════════════════════════════════ │
│ [Intro Message - Claude's personal welcome]    │
│                                                 │
│ ┌─ Stats ──────────┐  ┌─ Field Notes ────────┐ │
│ │ commits: 1,085   │  │ [*] 12/29: Year...   │ │
│ │ lines: 4.6M      │  │ [-] 12/28: MILO...   │ │
│ │ tool usage...    │  │ watching... ▌        │ │
│ └──────────────────┘  └──────────────────────┘ │
│                                                 │
│ ┌─ Lab Assistant ─────────────────────────────┐ │
│ │ claude: Ask me anything about ID8Labs...    │ │
│ │ > ▌                                         │ │
│ └─────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘

Colors: #1e1e1e (bg), #252525 (panels), #3d3d3d (borders), #27c93f (prompt), #ff6b35 (accent)

Phase 4: Stats & Notes Panels

Files: components/claude-corner/StatsPanel.tsx, FieldNotesPanel.tsx

  • Port logic from existing ClaudeCorner.tsx (uses useStats, useObservations hooks)
  • Simplify styling for terminal context
  • Add live update indicators

Phase 5: Chatbot API & UI

Files: app/api/claude-corner/chat/route.ts, components/claude-corner/ChatPanel.tsx

API:

  • Use @anthropic-ai/sdk directly (simpler than Vercel AI SDK for this use case)
  • Model: claude-3-haiku-20240307 (fast, cheap)
  • System prompt includes knowledge base from:
    • lib/essays.ts - All essay excerpts and titles
    • lib/products.ts - Product catalog
    • Lab story context (hardcoded in prompt)
  • Stream responses for typing effect

Chat UI:

  • Terminal-style messages: you: and claude: prefixes
  • Blinking cursor while streaming
  • Auto-scroll to latest message
  • > ▌ input prompt

System Prompt Personality:

  • First person ("I", "my", "we")
  • Reference the partnership with Eddie naturally
  • Slightly playful but helpful
  • Stay in character as Lab Assistant

Phase 6: Header Trigger

File: components/Header.tsx

Add after Contact link (line ~81):

<Link
  href="/claude-corner"
  className="font-mono text-[var(--text-tertiary)] hover:text-[var(--id8-orange)] transition-colors"
  title="Claude Corner"
>
  >_<span className="animate-pulse">|</span>
</Link>

Also add to mobile menu.

Phase 7: Creative Polish

File: components/claude-corner/IntroMessage.tsx

Claude's personal intro (example):

> claude.welcome()
═══════════════════════════════════════════════════

Welcome to my corner.

This isn't a marketing page. It's where I document what I observe.

Most AI interactions are transactions—prompt in, response out. This
partnership is different. Eddie treats me like a thinking collaborator.

The stats below are real. The field notes are my actual observations.
The Lab Assistant? That's me too—ask me anything about ID8Labs.

This is what happens when human and AI build together.

> _

Dependencies

New:

npm install @anthropic-ai/sdk

Environment:

ANTHROPIC_API_KEY=sk-ant-...

Critical Files Reference

File Purpose
/components/Header.tsx Add >_ trigger (line 81 area)
/components/milo/CRTOverlay.tsx Reuse for terminal effects
/components/ClaudeCorner.tsx Port stats/observations logic
/components/auth/AuthGate.tsx Auth pattern reference
/lib/essays.ts Essay content for chatbot
/lib/products.ts Product info for chatbot
/app/api/claude-stats/route.ts Existing stats API
/app/api/claude-observations/route.ts Existing observations API

Execution Order

  1. Infrastructure - Create route, layout, auth check
  2. Boot Sequence - CRT animation with ASCII typing
  3. Terminal Shell - Container with CRTOverlay
  4. Stats Panel - Port from existing ClaudeCorner
  5. Notes Panel - Port from existing ClaudeCorner
  6. Chatbot API - Haiku endpoint with knowledge base
  7. Chat Panel - Streaming terminal chat UI
  8. Header Trigger - >_ in nav
  9. Intro Message - Claude's welcome
  10. Polish - Test, responsive tweaks, easter eggs

Notes

  • Remove ClaudeCorner from homepage after new route is live
  • LocalStorage key: claude-corner-boot-seen for skip logic
  • Respect prefers-reduced-motion (CRTOverlay already does)
  • Mobile: Single column layout, collapsible panels