This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
yarn dev- Start development server on http://localhost:3000yarn build- Build for productionyarn start- Start production serveryarn lint- Run ESLint checksyarn codegen- Generate code from TypeScript schemas/configs
The application requires a running Kubernetes cluster and kubectl proxy:
kubectl proxy --port=8001 --accept-hosts='^.*$' --address='0.0.0.0'This is a Next.js 14 React application that provides a modern dashboard for managing Kubernetes resources. The app uses a multi-layered provider architecture:
- KubernetesProvider (
k8s/context.tsx) - Manages the Kubernetes client connection and configuration, wraps the entire app with TanStack Query for data fetching - NamespaceProvider (
contexts/NamespaceContext.tsx) - Handles global namespace state across all components - ConfirmProvider (
hooks/useConfirm.tsx) - Provides confirmation dialogs for destructive operations
- DashboardLayout (
components/dashboard-layout.tsx) - Main layout with collapsible sidebar navigation, theme toggle, and integrated AI chat - Resources (
components/resources/) - Individual resource management components for each Kubernetes resource type - IDE Components (
components/ide/) - File explorer, terminal, and AI chat for integrated development experience
- Kubernetes Client - Uses
kubernetesjslibrary for API communication - TanStack Query - Handles data fetching, caching, and synchronization
- Custom Hooks (
hooks/) - Resource-specific hooks (useDeployments, usePods, etc.) that wrap TanStack Query
The sidebar navigation is organized into collapsible sections:
- Overview & All Resources
- Workloads (Deployments, Pods, Jobs, etc.)
- Config & Storage (ConfigMaps, Secrets, PVCs, etc.)
- Network (Services, Ingresses, Network Policies, etc.)
- Access Control (Service Accounts, Roles, Role Bindings)
- Cluster (Resource Quotas, HPAs, Events, etc.)
/api/k8s/[...path]- Proxies requests to Kubernetes API/api/ide/fs/- File system operations for IDE functionality/api/init- Application initialization
- Uses Tailwind CSS with custom design system
- Radix UI components for accessible primitives
- Light/dark theme support
- Responsive design with mobile-friendly sidebar
@kubernetesjs/react&kubernetesjs- Kubernetes API client@tanstack/react-query- Data fetching and state management@monaco-editor/react- Code editor for YAML editingxterm- Terminal emulator for IDE functionality
use agentic-kit to switch between providers, these files have the info you need:
- CLAUDE-agentic-kit.md
- CLAUDE-bradie.md
- CLAUDE-ollama.md