Skip to content

SuperInstance/ai-ranch

Repository files navigation

AI Ranch πŸ„

Self-Evolving AI Agent System

A Next.js implementation of the SuperInstance architecture for local-first, continuously improving AI agents.

Version License Next.js TypeScript Tailwind CSS PRs Welcome

Quick Start β€’ Documentation β€’ API Reference β€’ Architecture


πŸ“‘ Table of Contents

  1. Overview
  2. Features
  3. Quick Start
  4. Architecture
  5. Core Concepts
  6. API Reference
  7. Configuration
  8. Development
  9. Roadmap
  10. Contributing

Overview

AI Ranch is a self-evolving AI agent system that runs continuously, improving its performance through nightly evolution cycles. Inspired by natural selection, the system maintains a population of specialized AI "species" that compete, breed, and evolve based on task performance.

Key Differentiators

Feature AI Ranch Traditional Agents
Evolution βœ… Self-improving ❌ Static
Local-first βœ… Runs on edge ❌ Cloud-dependent
Small binary βœ… Single deployment ❌ Multiple services
DNA-driven βœ… breed.md configs ❌ Hard-coded
Multi-species βœ… 8 agent types ❌ Single agent

🌟 Features

🧬 Species Registry

8 specialized agent types, each optimized for different tasks:

Species Icon Role Key Traits Best For
Cattle 🧠 Heavy Reasoning patience: 0.9, speed: 0.3 Analysis, email processing, document review
Duck πŸ¦† Network speed: 0.8 API calls, webhooks, HTTP requests
Goat 🧭 Navigation balanced Pathfinding, spatial reasoning, mapping
Sheep ☁️ Consensus patience: 0.9 Voting, mediation, group decisions
Horse ⚑ ETL thoroughness: 0.9 Data pipelines, batch processing
Falcon πŸ‘οΈ Search speed: 0.95 Quick lookups, reconnaissance
Hog πŸ› Diagnostics thoroughness: 0.95 Logging, debugging, tracing
Chicken πŸ₯š Monitoring speed: 0.9 Alerts, health checks, watchdog

πŸ• Collie Orchestrator

Intelligent routing system that analyzes intent and dispatches to the optimal species:

User Intent β†’ Keyword Analysis β†’ Species Scoring β†’ Fitness Weighting β†’ Selection
     β”‚              β”‚                  β”‚                   β”‚              β”‚
     β–Ό              β–Ό                  β–Ό                   β–Ό              β–Ό
"Analyze this   "analyze",        cattle: 0.85      Γ— 0.75 fitness   β†’ cattle
 email..."      "email"           duck: 0.42

Features:

  • Keyword-based matching with confidence scoring
  • Species fitness consideration (better performers get priority)
  • Alternative species suggestions for fallback
  • Real-time routing decisions

πŸ“ breed.md DNA System

Define agent behavior through simple markdown configuration:

# species
cattle

# name
Email Analyst

# description
Specialized in email processing and analysis

# capabilities
- email_processing (weight: 1.0)
- analysis (weight: 0.9)
- summarization (weight: 0.7)
- priority_detection (weight: 0.8)

# personality
tone: professional
verbosity: concise
creativity: 0.3
risk_tolerance: 0.2

# model
base_model: phi-3-mini
lora: cattle-reasoning-v1
temperature: 0.5
max_tokens: 1024

# evolution
mutation_rate: 0.1
crossover_rate: 0.7
selection_pressure: 0.3
elite_count: 2

# constraints
- forbidden: Do not send emails without approval
- required: Always include a summary
- preferred: Use bullet points for clarity

πŸŒ™ Night School Evolution

Daily evolution cycle running at 02:00 AM:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  EVALUATE  │────►│  CULL  │────►│ BREED  │────►│ DISTILL  β”‚
β”‚  Score fit β”‚     β”‚ Remove β”‚     β”‚ Create β”‚     β”‚  Train   β”‚
β”‚            β”‚     β”‚  weak  β”‚     β”‚offspringβ”‚    β”‚          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                    β”‚
                                                    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  COMPLETE  │◄────│  PROMOTE   │◄───────────│QUARANTINE β”‚
β”‚            β”‚     β”‚ Add to pop β”‚            β”‚   Test    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Phase Description Duration
Evaluate Score species fitness based on task history ~100ms
Cull Remove species below 0.3 fitness threshold ~50ms
Breed Create offspring from top performers via crossover ~100ms
Distill Cloud training for new offspring ~100ms
Quarantine Test offspring in sandbox (80% pass rate) ~50ms
Promote Add successful offspring to population ~50ms

πŸ“Š Web Dashboard

Real-time monitoring interface built with React and Tailwind CSS:

Features:

  • Species Panel: View all species with traits, capabilities, fitness scores
  • Task Manager: Create tasks, view routing decisions, see results
  • Evolution Panel: Monitor Night School cycles, trigger manual evolution
  • Metrics Bar: Real-time system metrics (requests, latency, tokens/s)

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ or Bun
  • npm, yarn, or bun package manager

Installation

# Clone the repository
git clone https://github.com/SuperInstance/ai-ranch.git
cd ai-ranch

# Install dependencies
bun install
# or
npm install

# Start development server
bun run dev
# or
npm run dev

First Steps

  1. Open the Dashboard

    Navigate to http://localhost:3000 in your browser.

  2. Submit Your First Task

    In the Task Panel, enter:

    Analyze this email and extract key action items
    

    Watch as the Collie routes it to the cattle species.

  3. Explore Species

    Click the "Species" tab to see all 8 agent types with their traits.

  4. Trigger Evolution

    Click "Run Evolution" in the Evolution tab to see Night School in action.

Using the API

# Create a task
curl -X POST http://localhost:3000/api/ranch/tasks \
  -H "Content-Type: application/json" \
  -d '{"content": "Search for recent AI news"}'

# Get all species
curl http://localhost:3000/api/ranch/species

# Trigger evolution
curl -X POST http://localhost:3000/api/ranch/evolution

πŸ—οΈ Architecture

Directory Structure

ai-ranch/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ api/ranch/         # REST API endpoints
β”‚   β”‚   β”‚   β”œβ”€β”€ species/       # Species CRUD
β”‚   β”‚   β”‚   β”œβ”€β”€ tasks/         # Task management
β”‚   β”‚   β”‚   └── evolution/     # Evolution control
β”‚   β”‚   β”œβ”€β”€ globals.css        # Global styles
β”‚   β”‚   β”œβ”€β”€ layout.tsx         # Root layout
β”‚   β”‚   └── page.tsx           # Dashboard page
β”‚   β”‚
β”‚   β”œβ”€β”€ components/            # React Components
β”‚   β”‚   β”œβ”€β”€ ranch/            # Ranch-specific
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ species-panel.tsx
β”‚   β”‚   β”‚   β”œβ”€β”€ task-panel.tsx
β”‚   β”‚   β”‚   └── evolution-panel.tsx
β”‚   β”‚   └── ui/               # Reusable primitives
β”‚   β”‚
β”‚   β”œβ”€β”€ lib/                   # Core Library
β”‚   β”‚   β”œβ”€β”€ breed-parser.ts   # breed.md parser
β”‚   β”‚   β”œβ”€β”€ collie.ts         # Orchestrator
β”‚   β”‚   β”œβ”€β”€ night-school.ts   # Evolution system
β”‚   β”‚   β”œβ”€β”€ species.ts        # Species registry
β”‚   β”‚   └── utils.ts          # Utilities
β”‚   β”‚
β”‚   └── types/                 # TypeScript Types
β”‚       └── ranch.ts          # All type definitions
β”‚
β”œβ”€β”€ docs/                      # Documentation
β”‚   β”œβ”€β”€ api-reference.md      # API docs
β”‚   └── quick-start.md        # Getting started
β”‚
β”œβ”€β”€ templates/                 # breed.md Templates
β”‚   β”œβ”€β”€ email-analyst.md
β”‚   β”œβ”€β”€ quick-search.md
β”‚   └── data-pipeline.md
β”‚
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ tailwind.config.ts
└── README.md

System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                           CLIENT LAYER                              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚                    Web Dashboard (React)                        β”‚ β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”            β”‚ β”‚
β”‚  β”‚  β”‚   Species   β”‚  β”‚    Task     β”‚  β”‚  Evolution  β”‚            β”‚ β”‚
β”‚  β”‚  β”‚    Panel    β”‚  β”‚    Panel    β”‚  β”‚    Panel    β”‚            β”‚ β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜            β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚ HTTP/WebSocket
                                β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                           API LAYER                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                β”‚
β”‚  β”‚  /species   β”‚  β”‚   /tasks    β”‚  β”‚ /evolution  β”‚                β”‚
β”‚  β”‚   route.ts  β”‚  β”‚   route.ts  β”‚  β”‚   route.ts  β”‚                β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚                β”‚                β”‚
          β–Ό                β–Ό                β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                         CORE LIBRARY                                β”‚
β”‚                                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚                    Species Registry                           β”‚  β”‚
β”‚  β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚  β”‚
β”‚  β”‚  β”‚ cattle β”‚ β”‚  duck  β”‚ β”‚  goat  β”‚ β”‚ sheep  β”‚ β”‚ horse  β”‚ ... β”‚  β”‚
β”‚  β”‚  β”‚ fitnessβ”‚ β”‚ fitnessβ”‚ β”‚ fitnessβ”‚ β”‚ fitnessβ”‚ β”‚ fitnessβ”‚     β”‚  β”‚
β”‚  β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚                                β–²                                    β”‚
β”‚                                β”‚                                    β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚   Breed Parser   │◄───│   Collie  │───►│  Night School    β”‚    β”‚
β”‚  β”‚  (breed.md DNA)  β”‚    β”‚Orchestratorβ”‚    β”‚   (Evolution)    β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                                β”‚                                    β”‚
β”‚                                β–Ό                                    β”‚
β”‚                         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                              β”‚
β”‚                         β”‚Task Queue β”‚                              β”‚
β”‚                         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Data Flow

1. User submits task intent
   └─► Task Panel β†’ POST /api/ranch/tasks

2. Collie analyzes and routes
   └─► CollieOrchestrator.route(intent) β†’ RoutingDecision

3. Task is created and queued
   └─► CollieOrchestrator.createTask(intent) β†’ Task

4. Species processes task
   └─► CollieOrchestrator.processTask(taskId) β†’ TaskResult

5. Fitness is updated
   └─► SpeciesRegistry.updateFitness(species, newFitness)

6. Night School evolves population (02:00 AM)
   └─► NightSchool.runCycle() β†’ EvolutionCycle

πŸŽ“ Core Concepts

Species

A Species represents a specialized AI agent with unique traits:

interface Species {
  name: SpeciesName;           // cattle, duck, goat, etc.
  description: string;          // Purpose description
  capabilities: string[];       // Skills this species has
  modelHint: string;           // Recommended model
  loraAdapter?: string;        // LoRA adapter name
  traits: {
    patience: number;          // 0-1
    thoroughness: number;      // 0-1
    creativity: number;        // 0-1
    speed: number;             // 0-1
  };
  fitness: number;             // Performance score (0-1)
  generation: number;          // Evolution generation
}

Intent Routing

The Collie Orchestrator routes intents using keyword matching:

// Routing keywords per species
const ROUTING_KEYWORDS = {
  cattle: ['analyze', 'explain', 'review', 'email', 'reasoning'],
  duck: ['api', 'fetch', 'request', 'http', 'webhook'],
  goat: ['navigate', 'path', 'route', 'find', 'location'],
  sheep: ['consensus', 'vote', 'agree', 'decide', 'group'],
  horse: ['process', 'transform', 'batch', 'pipeline', 'etl'],
  falcon: ['search', 'find', 'quick', 'lookup', 'retrieve'],
  hog: ['debug', 'log', 'diagnose', 'error', 'trace'],
  chicken: ['monitor', 'watch', 'alert', 'notify', 'status'],
};

Evolution

Night School improves the population through genetic algorithms:

Fitness Calculation:

compositeScore = 
  successRate * 0.4 +      // Task success rate
  impactWeight * 0.2 +     // Task importance
  latencyScore * 0.2 +     // Response time
  qualityScore * 0.2;      // Output quality

Crossover:

offspring.traits.patience = 
  (parent1.traits.patience + parent2.traits.patience) / 2 
  + (Math.random() - 0.5) * 0.1;  // Mutation

πŸ“– API Reference

Base URL

http://localhost:3000/api/ranch

Endpoints

Species

Method Endpoint Description
GET /species List all species
GET /species?name=cattle Get specific species
POST /species Update species

Examples:

# List all species
curl http://localhost:3000/api/ranch/species

# Update fitness
curl -X POST http://localhost:3000/api/ranch/species \
  -H "Content-Type: application/json" \
  -d '{"name": "cattle", "updates": {"fitness": 0.85}}'

Tasks

Method Endpoint Description
GET /tasks List recent tasks
GET /tasks?active=true Get active tasks
GET /tasks?id=xxx Get specific task
POST /tasks Create new task

Examples:

# Create task
curl -X POST http://localhost:3000/api/ranch/tasks \
  -H "Content-Type: application/json" \
  -d '{"content": "Analyze this dataset"}'

# Get active tasks
curl "http://localhost:3000/api/ranch/tasks?active=true"

Evolution

Method Endpoint Description
GET /evolution Get evolution history
GET /evolution?current=true Get current cycle
POST /evolution Trigger evolution

Examples:

# Get history
curl http://localhost:3000/api/ranch/evolution

# Trigger manual evolution
curl -X POST http://localhost:3000/api/ranch/evolution

βš™οΈ Configuration

Environment Variables

Create a .env file in the root directory:

# Server
PORT=3000
NODE_ENV=development

# Evolution
NIGHT_SCHOOL_HOUR=2
MIN_FITNESS_THRESHOLD=0.3
MAX_FITNESS_THRESHOLD=0.95

# Model (future)
TENSORRT_ENABLED=false
DEFAULT_MODEL=phi-3-mini

breed.md Templates

See the /templates directory for examples:

  • email-analyst.md - Email processing agent
  • quick-search.md - Fast search agent
  • data-pipeline.md - ETL agent

πŸ”§ Development

Scripts

bun run dev      # Start development server
bun run build    # Build for production
bun run start    # Start production server
bun run lint     # Run ESLint

Tech Stack

Technology Purpose
Next.js 15 React framework with App Router
TypeScript Type safety
Tailwind CSS 4 Styling
Radix UI Accessible primitives
Lucide React Icons

Project Structure

Each directory has its own README for detailed documentation:


🎯 Roadmap

Phase 1: MVP (Current) βœ…

  • Species Registry with 8 agent types
  • Collie Orchestrator with keyword routing
  • breed.md DNA parser
  • Night School evolution system
  • Web dashboard
  • REST API

Phase 2: Production

  • TensorRT-LLM integration for real inference
  • LoRA hot-swap for runtime adapter changes
  • Discord/Telegram channel connectors
  • CUDA Graph reflex cache for <5ms latency
  • Real benchmarks on Jetson hardware

Phase 3: Scale

  • Multi-Jetson synchronization
  • CRDT Memory Pasture for distributed state
  • Cloud distillation integration
  • Community gene pool

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Style

  • Use TypeScript strict mode
  • Follow existing code patterns
  • Add JSDoc comments for public functions
  • Update documentation for API changes

πŸ“„ License

MIT License - see LICENSE for details.


πŸ™ Acknowledgments


Built with ❀️ for the edge AI community

⬆ Back to Top

About

Self-Evolving AI Agent System - A Next.js implementation of the SuperInstance architecture

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors