agentleFS
cheeseburgertonycheeseburgertony/evoke/AGENTS.md

evoke

AGENTS.md167 starsChanged 6 months agoMITView on GitHub

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository. 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…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.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
  1. Distinctive:

    All styling uses Tailwind CSS - no separate CSS/SCSS files

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides guidance to Codex (Codex.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 GUI

Architecture

Core Flow

  1. User describes app → tRPC mutation creates project + sends Inngest event
  2. Inngest AI agent generates code using tools (terminal, createOrUpdateFiles, readFiles)
  3. E2B sandbox executes code with hot reload
  4. SSE streams real-time progress to frontend
  5. Fragment saved with generated files and sandbox URL

Directory Structure

  • src/modules/ - Feature modules (home, messages, projects, usage). Each module has server/procedures.ts for tRPC routes and ui/ for React components
  • src/trpc/ - tRPC setup. init.ts defines context and auth middleware. Routers combined in routers/_app.ts
  • src/inngest/ - AI agent orchestration. functions.ts contains the main code generation agent with tools
  • src/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 many Messages
  • Message → has one Fragment (optional, for assistant responses with generated code)
  • Fragment → stores sandboxUrl, title, and files (JSON)
  • Usage → credits/points tracking with expiration

Environment Variables

Required services:

  • DATABASE_URL - PostgreSQL connection (Neon)
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY / CLERK_SECRET_KEY - Auth
  • E2B_API_KEY - Code sandbox
  • INNGEST_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 cn utility 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.