How keplar-404/relie-deep-agent works
Relie AI is a natural-language web engineering IDE: users create projects, upload materials, and chat with an agent that edits and verifies applications in isolated sandboxes, then view a live preview. The main request path is the agent API through workflow selection into an agent configured with routing, tools, and persistent graph state. Separate branches cover project lifecycle, uploads, visual asset extraction, and preview. The README documents additional agent safeguards and routing capabilities; unsampled implementation details are represented only where the tree or documentation supports them.
Main entry points: agent/route.ts Agent API · index.ts Agent Core · page.tsx Chat and IDE · project/route.ts Project API
Components 23
Web IDE
- Chat and IDE
src/app/(app)/chat/[...slug]/page.tsx - Projects UI
src/app/(app)/projects/page.tsx - Live Preview
src/app/(app)/chat/[...slug]/page.tsx
Application API
- Agent API
src/app/api/v1/agent/route.ts - Project API
src/app/api/v1/project/route.ts - Upload API
src/app/api/v1/upload/route.ts - User Resolver
src/lib/auth/currentUser.ts
Agent Execution
- Workflow Selection
src/lib/agent/agentWorkflow/index.ts - Intent and Tool Routing
src/lib/agent/agentRouter/index.ts - Agent Core
src/lib/agent/index.ts - Agent Tools
src/lib/agent/tools/fsOperations/index.ts - Asset Extraction
src/lib/agent/tools/assetExtraction/engine.ts - Screenshot Verification
src/lib/agent/tools/sandboxcodeprescreenshottool.ts
Sandbox and Media
- Sandbox Provisioning
src/lib/sandbox/index.ts - Sandbox Filesystem
src/lib/sandbox/fileOperation/index.ts - File Ingestion
src/lib/utils/fileProcessor.ts
Persistence
- Project and Chat Actions
src/lib/db/action/index.ts - Neon Postgres
src/lib/db/drizzle.ts - Object Storage
src/lib/objectStorage/index.ts
Other components
- User
- Vision LLM
- Daytona Sandbox
- Neon S3 Storage
Connections 31
- User → Chat and IDE: uses
- Chat and IDE → Agent API: sends prompt
- Chat and IDE → Upload API: uploads files
- Projects UI → Project API: manages projects
- Agent API → User Resolver: resolves user
- Project API → User Resolver: resolves user
- Upload API → User Resolver: resolves user
- Agent API → Project and Chat Actions: reads project; writes chat
- Agent API → Workflow Selection: runs workflow
- Workflow Selection → Intent and Tool Routing: selects route
- Workflow Selection → Agent Core: runs agent
- Intent and Tool Routing → Vision LLM: classifies and selects
- Agent Core → Agent Tools: dispatches tools
- Agent Core → Asset Extraction: dispatches tool
- Agent Core → Screenshot Verification: dispatches tool
- Agent Tools → Sandbox Filesystem: operates files
- Sandbox Filesystem → Daytona Sandbox: calls sandbox
- Sandbox Provisioning → Daytona Sandbox: provisions sandbox
- Project API → Sandbox Provisioning: creates sandbox
- Project API → Project and Chat Actions: creates or deletes project
- Asset Extraction → Vision LLM: locates assets
- Asset Extraction → Object Storage: uploads crops
- Screenshot Verification → Daytona Sandbox: captures preview
- Upload API → Neon S3 Storage: writes upload
- Object Storage → Neon S3 Storage: stores assets
- File Ingestion → Agent API: processes attachments
- Project and Chat Actions → Neon Postgres: reads and writes
- Agent Core → Neon Postgres: persists graph state
- Agent API → Chat and IDE: returns response
- Chat and IDE → Live Preview: shows sandbox preview
- Daytona Sandbox → Live Preview: serves signed preview