Ask questions about any public GitHub repository and get AI-powered analysis using the Claude Agent SDK for agentic exploration and Trigger.dev for real-time streaming to the frontend.
- Next.js – React framework with App Router for the frontend
- Claude Agent SDK – Anthropic's SDK for building AI agents with file system and search tools
- Trigger.dev – Background task orchestration with real-time streaming to the frontend, observability, and deployment
claude-github-wiki.mp4
-
Install dependencies
npm install
-
Configure environment variables
cp .env.example .env
TRIGGER_SECRET_KEY– From Trigger.dev dashboardTRIGGER_PROJECT_REF– Your project ref (starts withproj_)ANTHROPIC_API_KEY– From Anthropic Console
-
Start development servers
# Terminal 1: Next.js npm run dev # Terminal 2: Trigger.dev npx trigger.dev@latest dev
-
Open http://localhost:3000 in your browser
- Ask anything about any public repo – Architecture, security vulnerabilities, API endpoints, testing strategies, etc.
- Claude Agent SDK exploration – Claude explores the codebase using Grep and Read tools to provide detailed answers
- Cancel anytime – Abort long-running tasks with proper cleanup
- Trigger.dev Realtime streaming – Watch Claude's analysis stream in as it's generated
- Progress tracking – See clone status, analysis progress, and repo size via Trigger.dev metadata
trigger/analyze-repo.ts– Main task that clones repo, runs Claude agent, and streams responsetrigger/agent-stream.ts– Typed stream definition for real-time text responsesapp/api/analyze-repo/route.ts– API endpoint that triggers the task and returns a public access tokenapp/response/[runId]/page.tsx– Real-time streaming display with progresstrigger.config.ts– Project config with external SDK bundle