Reading Order for New Sessions
IMPORTANT: Before beginning work, read these documents IN ORDER.
๐ค Claude Code Configuration (READ FIRST!)โ
๐ .claude/ Directory - Essential Claude Code setup and agent resources:
.claude/CLAUDE.md- Autonomous Development Mode, Context Engineering, Project Configuration.claude/README.md- Directory structure and quick start guide
๐ญ Available Agents & Commands (2025-10-14):
.claude/agents/- 6 custom agents (codebase-analyzer, codebase-locator, pattern-finder, thoughts-analyzer, web-search-researcher, etc.).claude/commands/- 24 workflow commands (create_plan, implement_plan, research_codebase, debug, ci_commit, etc.).claude/agents-reference/- 84 community agents (backend, frontend, security, DevOps, ML) - Git submodule.claude/commands-reference/- 42 development tools (security-scan, api-scaffold, db-migrate) - Git submodule
๐ Reference Materials (2025-10-14):
archive/coditect-v4/- V4 Reference (19 FDB data models, 88 ADRs, agent patterns) - Git submodulearchive/coditect-v4/docs/reference/database-models/- Complete V4 data model documentation
archive/agents-research-plan-code/- Agent Research (Multi-llm patterns, human-in-loop) - Git submoduledocs/analysis-human-layer/- 10 analysis documents (architecture, tech stack, llm integration strategies)docs/reference/database-models/- 19 V4 FDB Models (User, Session, Tenant, Agent, etc.) - Copied from V4 for T2 referencedocs/reference/V4-DATABASE-MODELS-analysis.md- Analysis for T2 (priorities, patterns, migration guide)
Why read .claude/ first?
- ๐ Autonomous Mode: Enables multi-hour coding sessions with state tracking
- ๐ฏ Context Engineering: Anthropic best practices for efficient token usage
- ๐ค Specialized Agents: Production-ready agents for Rust, TypeScript, FoundationDB, GCP
- ๐ ๏ธ Development Tools: Security scanning, API generation, monitoring setup
๐ V5 Design & Architectureโ
- ๐จ DEFINITIVE V5 ARCHITECTURE:
docs/DEFINITIVE-V5-architecture.md- Complete system design (95% theia + 5% wrapper) - ๐ APPLE-QUALITY DESIGN SYSTEM:
docs/apple-quality-design-system.md- Steve Jobs/Jony Ive design principles - โ
FRONTEND BUILD VERIFICATION:
docs/v5-frontend-build-verification.md- 100% build completion status - ๐ฑ MOBILE-FIRST DESIGN:
docs/mobile-first-design-system.md- Touch-friendly patterns (56px targets)
๐๏ธ Implementation & Deploymentโ
- ๐ฏ EXECUTION PLAN:
docs/10-execution-plans/corrected-execution-order.md- Step-by-step with dependencies - ๐ DEPLOYMENT TRACKER:
docs/10-execution-plans/deployment-step-by-step-tracker.md- Live progress - ๐ DEPLOYMENT GUIDE:
docs/06-backend/gcp-cloud-build-guide.md- GCP/GKE reference
๐ Backend & Infrastructureโ
- โ๏ธ BACKEND SUMMARY:
docs/06-backend/backend-summary.md- Rust API deployed to GCP - ๐๏ธ INFRASTRUCTURE MAP:
docs/03-infrastructure/infrastructure-map.md- FoundationDB, GKE cluster - ๐ SECURITY PLAN:
docs/04-security/security-hardening-plan.md- Security architecture
๐ theia Integrationโ
- ๐ง THEIA RESEARCH:
docs/theia-ai-research-findings.md- theia 1.65 AI capabilities - ๐ญ THEIA WRAPPER ARCHITECTURE:
docs/V5-THEIA-WRAPPER-architecture.md- React-theia bridge pattern
๐งช Deployment & Testing Infrastructure (2025-10-14)โ
- โ
TESTING INFRASTRUCTURE:
testing-infrastructure-complete.md- Complete automated testing suite - ๐ TESTING SUMMARY:
docs/testing-summary.md- Quick reference guide - ๐ TESTING GUIDE:
docs/testing-guide.md- Complete documentation (558 lines) - ๐ง TEST SCRIPTS:
scripts/test-deployment.sh- Pre-deployment validation (403 lines)scripts/test-endpoints.sh- Live endpoint testing (122 lines)Makefile- Convenient test commands (73 lines)
- ๐ DEPLOYMENT FILES:
cloudbuild-combined.yaml- GCP Cloud Build with automated validationdockerfile.local-test- Production Docker imagedockerfile.combined- Multi-stage buildnginx-combined.conf- NGINX configurationk8s-combined-deployment.yaml- Kubernetes deployment
- โ๏ธ ENVIRONMENT CONFIG:
.env.production- CRITICAL: Must haveVITE_API_URL=/api/v5package.json- Must haveprototype:buildscript
- ๐ DEPLOYMENT ISSUES TRACKER:
docs/10-execution-plans/api-integration-fixes-complete.md- All 9 issues documented
Why this is critical:
- ๐จ Automated testing catches ALL 9 deployment issues in < 2 minutes, BEFORE wasting 10-20 minutes on Cloud Build
- โก Saves 79% time (80-160 min โ 17 min per deployment)
- ๐ฐ Saves $40-80 per incident (no failed builds)
- โ Zero failed deployments from config issues
This ensures continuity and prevents duplicate work.
๐ฏ V5 Implementation Status (2025-10-12)โ
Current Status: โ Ready to Build - Docker Installed, All Prerequisites Verified
Latest Achievements (2025-10-12):
- โ Docker Installation: Docker v28.5.1 installed and verified working
- โ Architecture Documented: Complete V5+theia architecture explanation with troubleshooting
- โ Combined Deployment Architecture: Single-container deployment (V5 + theia + NGINX)
- โ Deployment Files Created: 9 files (Dockerfiles, NGINX config, Cloud Build, K8s manifests)
- โ Documentation Complete: Architecture diagrams, deployment guides, troubleshooting
- โ V5 Frontend Build: Production dist/ folder ready (1.2 MB)
๐ Current Session Documents:
- Docker Build Session - Complete architecture deep dive, build strategy, testing procedures, troubleshooting guide (~27 min build timeline)
- Quick Reference Card - Fast command reference for Docker build and testing
- Checkpoint Status - Current deployment status and next steps
Previous Achievements (2025-10-08):
- โ Coditect AI Branding: Custom "Coditect AI Agents" welcome message in theia AI Chat
- โ Custom Robot Logo: SVG-based Coditect branding
- โ V5 Frontend Wrapper: React 18 + Vite 5 running on port 5173 with 28 complete pages
- โ Startup Scripts: Convenience scripts for starting/stopping both services
- โ Two-Service Architecture: theia backend (3000) + V5 frontend (5173) working
Critical Path:
- โ Phase 0: Pre-requisites (JWT secret, service accounts) - COMPLETE
- โ Phase 1: Frontend Wrapper (Header/Footer/layout) - COMPLETE (2025-10-08)
- ๐ Phase 2: theia Container Build - IN PROGRESS (Docker Testing)
- ๐ฒ Phase 3: Auth Backend (JWT + FDB sessions) - Ready to start
- ๐ฒ Phase 4: WebSocket Sidecar - Pending
- ๐ฒ Phase 5: Pod Auto-Provisioning - Pending
- ๐ฒ Phase 6: Full Integration & Deploy - Pending
- ๐ฒ Phase 7: Blue-Green Rollout - Pending
Next Steps:
- Install Docker client in development environment
- Test dockerfile.local-test locally (~27 minute build)
- Deploy to Cloud Build after local success
- Deploy to GKE cluster
Remaining Timeline: ~10-12 days (solo) | 6-8 days (2-person) | 4-6 days (4-person)
Infrastructure Ready (serene-voltage-464305-n2):
- โ
GKE cluster:
codi-poc-e2-cluster(us-central1-a) - โ
FoundationDB:
10.128.0.8:4500(3-node StatefulSet) - โ
Domain/SSL:
coditect.ai(34.8.51.57, Google-managed cert) - โ
Container Registry:
gcr.io/serene-voltage-464305-n2 - โ CI/CD: Cloud Build pipelines ready
V4 Reference Materials (for patterns only):
docs/08-v4-reference/- SDD, TDD, 88 ADRs (~2.2MB)docs/v4-agents/- Agent system (512KB)src/v4-*/- Source code reference (~5.3MB).codi/- Monitoring infrastructure (543 files)
โ ๏ธ CRITICAL: V4 materials are REFERENCE ONLY. Do NOT copy v4 patterns directly - t2 uses Eclipse theia architecture which already provides most features. Always check if theia has the feature before referencing v4 implementations.
Back to: CLAUDE.md | DOCUMENTATION-index.md