Describe Your Idea
Start by describing what you want to build. Loki Mode understands natural language prompts and converts them into a full project specification.
It should have user authentication, real-time charts,
a Kanban board, and export to CSV. Use Next.js,
Tailwind, and PostgreSQL.
loki start --provider claude ./prd.md
# Phase 1: Reason -- analyze requirements
# Phase 2: Act -- generate architecture
# Phase 3: Reflect -- validate against best practices
# Phase 4: Verify -- confirm completeness
AI Plans the Architecture
The AI analyzes your requirements and generates a complete project architecture, including file structure, dependencies, and data models.
build_prompt() # Injects RARV instructions + context
detect_complexity() # Returns: "standard"
get_rarv_tier() # Iteration 1 = Opus for planning
# Memory system provides relevant patterns
retrieve_context() # Loads similar past projects
Code Generation
Loki Mode generates production-quality code across all files simultaneously, following best practices and your chosen tech stack.
get_rarv_tier() # Iterations 2+ = Sonnet for coding
# Parallel generation via Task tool
# -- Stream 1: Components (12 files)
# -- Stream 2: API routes (8 files)
# -- Stream 3: Database schema + migrations
# -- Stream 4: Auth configuration
Quality Gates Run
Every piece of generated code passes through automated quality gates: linting, type checking, tests, security scans, and peer review by multiple AI agents.
run_code_review() # 3 blind reviewers + anti-sycophancy
loki audit lint # ESLint + TypeScript strict mode
loki audit test # Unit + integration + E2E
# If any gate fails, code is automatically fixed
# and gates re-run until all pass
Preview Your App
Your application is built and running locally. Preview it in a live browser frame before deploying to production.
Team Productivity Dashboard
Welcome back, Sarah. Your team completed 23 tasks this week.
npm run dev # Next.js dev server on port 3000
# Playwright validates the running app
npx playwright test --project=chromium
# Loki Mode dashboard shows live status
loki web # Opens dashboard at localhost:57374
Deploy in One Click
Your app is production-ready. Deploy to your preferred cloud platform with a single command. Loki Mode handles CI/CD, environment variables, and DNS.
Deployment Successful
git push origin main # Triggers CI/CD
vercel --prod # Deploy to production
# Post-deploy verification
curl -s https://team-dashboard.vercel.app/api/health
# {"status": "healthy", "version": "1.0.0"}