Step 1: Project Setup
Create the Project
npx create-kernova-app coding-teamcd coding-teamWhen prompted:
- Name: coding-team
- Template: default
Install Dependencies
npm installSet Your API Key
Create .env.local:
OPENAI_API_KEY=sk-your-key-hereVerify It Works
kernova devYou should see:
🧠Kernova Framework Server├─ Agents: 1 discovered├─ Tools: 0 registered├─ Teams: 0 configured├─ Memory: 0 namespaces└─ Config: coding-team v1.0.0Stop the dev server (Ctrl+C). We’ll rebuild the agent structure from scratch.
Project Structure
Delete the default agent and create our structure:
coding-team/├── agents/│ ├── senior-dev.ts # Lead agent│ ├── frontend-dev.ts # Frontend specialist│ ├── backend-dev.ts # Backend specialist│ ├── tester.ts # QA agent│ └── teams/│ └── dev-team.ts # Team definition├── app/│ ├── page.tsx # Chat UI│ └── layout.tsx├── .env.local├── kernova.config.ts├── package.json└── tsconfig.jsonUpdate the Config
Edit kernova.config.ts:
import { defineConfig } from '@kernova/framework';
export default defineConfig({ name: 'coding-team', description: 'Multi-agent coding team that collaborates on development tasks', version: '1.0.0',
model: { provider: 'openai', model: 'gpt-4o', temperature: 0.4, // Moderate creativity for code },});