This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
README.mdfor Docker/Makefile workflows, environment variables, and MCP setup..github/copilot-instructions.mdfor architecture notes and development commands.
- Build solution:
dotnet build OpenDeepWiki.sln - Run API:
dotnet run --project src/OpenDeepWiki/OpenDeepWiki.csproj
- Install deps:
cd web && npm install - Dev server:
npm run dev - Build:
npm run build - Lint:
npm run lint - Prod start:
npm run start
- Build all images:
make build - Run all services (logs):
make dev - Run backend only:
make dev-backend - Start services (detached):
make up - Stop services:
make down - Tail logs:
make logs
OpenDeepWiki.slnincludes current OpenDeepWiki projects plus legacy KoalaWiki projects; favorsrc/OpenDeepWiki/*andweb/*for active development.
- API entry point:
src/OpenDeepWiki/Program.cs(MiniApis + OpenAPI + Scalar in dev). - Agent orchestration:
src/OpenDeepWiki/Agents/(constructed viaAgentFactory). - Models & services:
src/OpenDeepWiki/Models/andsrc/OpenDeepWiki/Services/for request/response DTOs and domain services.
- Entities:
src/OpenDeepWiki.Entities/(e.g., Users, Repositories, DocDirectory). - Core context contract + base:
src/OpenDeepWiki.EFCore/MasterDbContext.cswithIContextand shared model configuration. - Provider contexts:
src/EFCore/OpenDeepWiki.Sqlite/SqliteDbContext.csandsrc/EFCore/OpenDeepWiki.Postgresql/PostgresqlDbContext.cs.
- App entry/layout:
web/app/layout.tsxwith routes inweb/app/*. - Shared UI:
web/components/*and hooks inweb/hooks/*. - API/types:
web/types/*andweb/middleware.tsfor routing middleware.
- App settings:
src/OpenDeepWiki/appsettings.jsonandappsettings.Development.json. - LLM config:
AIsection in appsettings; environment variables fallback (CHAT_API_KEY,ENDPOINT,MODEL_PROVIDER). - Docker envs: see
README.mdfor full list of required environment variables.