evoke
CLAUDE.md167 starsChanged 6 months agoMITView on GitHub
Evoke is an AI-powered code generation platform that transforms natural language descriptions into working web applications. Users describe what they want to build, and AI agents generate and execute Next.js code in sandboxed environments. tRPC Routers: Feature modules export routers that are merged in src/trpc/routers/_app.ts. Use protectedProcedure for authenticated routes. AI Models: Configured in src/lib/ai-models.ts. Multiple providers (Silicon, DeepSeek, LongCat, etc.) via OpenAI-compatible APIs. Add new models to AIModelIdType and aiModels array. Inngest Agent: The code agent in src/inngest/functions.ts uses…
- Reads credentials
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/codegraph.mdcCursor rule
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 76
All styling uses Tailwind CSS - no separate CSS/SCSS files
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Evoke is an AI-powered code generation platform that transforms natural language descriptions into working web applications. Users describe what they want to build, and AI agents generate and execute Next.js code in sandboxed environments.
Development Commands
# Development
npm run dev # Start Next.js dev server
# Build
npm run build # Production build
# Linting
npm run lint # Run ESLint
# Database
npx prisma generate # Generate Prisma client (runs automatically postinstall)
npx prisma db push # Push schema changes to database
npx prisma studio # Open Prisma Studio GUIArchitecture
Core Flow
- User describes app → tRPC mutation creates project + sends Inngest event
- Inngest AI agent generates code using tools (terminal, createOrUpdateFiles, readFiles)
- E2B sandbox executes code with hot reload
- SSE streams real-time progress to frontend
- Fragment saved with generated files and sandbox URL
Directory Structure
src/modules/- Feature modules (home, messages, projects, usage). Each module hasserver/procedures.tsfor tRPC routes andui/for React componentssrc/trpc/- tRPC setup.init.tsdefines context and auth middleware. Routers combined inrouters/_app.tssrc/inngest/- AI agent orchestration.functions.tscontains the main code generation agent with toolssrc/lib/- Utilities:ai-models.ts(model configs),sse-manager.ts(real-time updates),prisma.ts(db client)src/components/ui/- Shadcn/UI components (pre-installed, import from@/components/ui/*)prisma/schema.prisma- Database models: Project, Message, Fragment, Usage
Key Patterns
tRPC Routers: Feature modules export routers that are merged in src/trpc/routers/_app.ts. Use protectedProcedure for authenticated routes.
AI Models: Configured in src/lib/ai-models.ts. Multiple providers (Silicon, DeepSeek, LongCat, etc.) via OpenAI-compatible APIs. Add new models to AIModelIdType and aiModels array.
Inngest Agent: The code agent in src/inngest/functions.ts uses tools for terminal commands, file operations, and sandbox interaction. Agents include code-agent, project-title-generator, fragment-title-generator, and response-generator.
SSE Events: Real-time progress updates via sseManager.sendEvent(). Frontend uses use-sse.ts hook to subscribe to project events.
Prompt Engineering: Main agent prompts in src/prompt.ts. The system prompt instructs the agent on Next.js environment, Shadcn usage, and file conventions.
Database Schema
Project→ has manyMessagesMessage→ has oneFragment(optional, for assistant responses with generated code)Fragment→ storessandboxUrl,title, andfiles(JSON)Usage→ credits/points tracking with expiration
Environment Variables
Required services:
DATABASE_URL- PostgreSQL connection (Neon)NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY/CLERK_SECRET_KEY- AuthE2B_API_KEY- Code sandboxINNGEST_EVENT_KEY/INNGEST_SIGNING_KEY- Event processing- AI provider keys:
SILICON_API_KEY,DEEPSEEK_API_KEY,LONG_CAT_API_KEY, etc. (based on models used)
Notes
- The dev server runs on port 3000 with hot reload. Generated apps in sandboxes also run on port 3000
- Shadcn components are pre-installed. Import directly from
@/components/ui/button, etc. Do not re-install - The
cnutility must be imported from@/lib/utils, not from component paths - All styling uses Tailwind CSS - no separate CSS/SCSS files
- The AI agent environment is Next.js 15.3.3 with Tailwind and Shadcn pre-configured
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

