Create AI-powered digital twins that think, remember, and respond just like the people they represent.
Neural Agent transforms unstructured information about individuals into sophisticated digital personas powered by multi-agent AI systems. Think of it as creating a digital twin that captures someone's personality, knowledge, communication style, and thought patterns.
- What is Neural Agent?
- Quick Start
- How It Works
- Features
- Architecture
- Development
- Documentation
- Contributing
- Roadmap
- Security & Privacy
- FAQ
Neural Agent is a web application that enables digital replication of individuals through:
- π Data Collection - Submit text blocks, links, and information about a person
- π€ AI Processing - LLMs analyze and structure the data into standardized personas
- π§ Multi-Agent Simulation - Brain-inspired agent architecture replicates thought patterns
- π¬ Interactive Chat - Converse with AI personas that embody real personalities
- Memory Preservation - Capture the essence of loved ones for future generations
- Research & Analysis - Study personality patterns and communication styles
- Creative Projects - Generate realistic character interactions for stories or games
- Personal AI Assistants - Create specialized agents based on expert knowledge
- Node.js 20.0.0 or higher
- npm or yarn
- OpenAI API key (get one here)
- Supabase account (create one)
# Clone the repository
git clone https://github.com/cr-nattress/neural-agent-framework.git
cd neural-agent
# Install root dependencies
npm install
# Install UI application dependencies
cd apps/ui
npm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your API keysCreate .env.local in apps/ui/:
# Supabase
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
# OpenAI
OPENAI_API_KEY=sk-your_openai_api_key# Start the development server
cd apps/ui
npm run dev
# Open http://localhost:3000 in your browserCreate your first persona in 3 steps:
- Paste text about a person (bio, emails, social posts)
- Add relevant links (profiles, articles)
- Click "Create Persona" and watch AI structure the data
User Input (Text + Links)
β
Netlify Function
β
OpenAI Processing
β
Structured JSON Persona
β
Review & Approval
β
Supabase Storage
Example Input:
const personaData = {
textBlocks: [
"Sarah is a UX designer with 5 years experience...",
"She's passionate about accessibility and inclusive design...",
"Known for her empathetic approach to user research..."
],
links: [
"https://linkedin.com/in/sarah-designer",
"https://medium.com/@sarah/accessibility-matters"
]
};AI-Generated Output:
{
"id": "persona_abc123",
"name": "Sarah Chen",
"occupation": "UX Designer",
"traits": ["empathetic", "creative", "user-focused"],
"interests": ["accessibility", "design thinking", "psychology"],
"skills": ["Figma", "User Research", "Prototyping"],
"values": ["inclusivity", "innovation", "user-centered design"],
"communication_style": "Friendly, thoughtful, detail-oriented",
"createdAt": "2025-11-05T12:00:00Z"
}User Message
β
Centralized Agent Orchestrator
β
βββββββββββ¬βββββββββββ¬ββββββββββββββ
β Memory β Reasoningβ Personality β
β Agent β Agent β Agent β
βββββββββββ΄βββββββββββ΄ββββββββββββββ
β
Persona-Aware Response
The multi-agent system mimics human brain architecture:
- π§ Memory Agent - Maintains conversation context and history
- π Reasoning Agent - Processes logic and generates responses
- π Personality Agent - Applies persona traits to ensure authentic responses
- π₯ Flexible Input - Accept unlimited text blocks and links
- β‘ AI Processing - OpenAI-powered data cleaning and structuring
- π Structured Output - Standardized JSON persona format
- π Review Interface - Verify AI-generated personas before saving
- πΎ Cloud Storage - Secure Supabase blob storage
- π± Mobile-First Design - Responsive UI built with Next.js and shadcn/ui
- π Type-Safe - Full TypeScript support with strict mode
- β‘ Performance - Optimized for fast processing and minimal latency
- Multi-Agent Chat System (Phase 2)
- Persona Management Dashboard (Phase 2)
- Web Scraping - Automatic link content extraction (Phase 3)
- Conversation Memory - Persistent chat history (Phase 2)
- Authentication - Magic link email auth (Phase 2)
- Multi-User Support - User accounts and profiles (Phase 7)
- Behavioral Learning - Personas that improve from interactions (Phase 6)
- Export/Import - Share and transfer personas (Phase 7)
neural-agent/
βββ apps/
β βββ ui/ # Next.js web interface (primary app)
β βββ api/ # Backend API services (planned)
β βββ agents/ # Multi-agent system (planned)
β βββ admin/ # Admin dashboard (planned)
βββ packages/
β βββ libs/ # Shared libraries and utilities
βββ docs/
β βββ backlog/ # Project management (epics, stories, tasks)
β βββ prompts/ # AI agent prompts
βββ .github/ # GitHub configuration
βββ .claude/ # AI assistant configuration
Frontend
| Technology | Version | Purpose |
|---|---|---|
| Next.js | 16.0+ | React framework with App Router |
| TypeScript | 5.9+ | Type-safe development |
| React | 19.2+ | UI library |
| Tailwind CSS | 4.1+ | Utility-first CSS |
| shadcn/ui | Latest | Accessible UI components |
| Zod | 4.1+ | Schema validation |
Backend & Infrastructure
| Technology | Purpose |
|---|---|
| Netlify Functions | Serverless backend |
| OpenAI API | LLM processing (GPT-4/3.5-turbo) |
| Supabase | Database & blob storage |
| TypeScript | Type-safe backend code |
Future: Multi-Agent System
- LangChain or custom orchestration
- Specialized agent modules (Memory, Reasoning, Personality)
- Inter-agent communication protocol
The frontend uses a service abstraction pattern for type-safe API integration:
// Service interface defines contract
interface IPersonaService {
processPersona(input: PersonaInputPayload): Promise<ProcessPersonaResponse>;
savePersona(payload: SavePersonaPayload): Promise<SavePersonaResponse>;
getPersona(id: string): Promise<GetPersonaResponse>;
}
// Real implementation calls Netlify Functions
export const apiPersonaService: IPersonaService = {
async processPersona(input) {
return fetch('/.netlify/functions/process-persona', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input)
});
}
};
// Service factory exports active implementation
export const personaService = apiPersonaService;# UI Application (apps/ui)
cd apps/ui
# Development
npm run dev # Start dev server (http://localhost:3000)
npm run build # Build for production
npm run type-check # TypeScript validation
npm run lint # ESLint checking
# Root-level convenience commands
npm run dev:ui # Run UI from project root
npm run build # Build for production
npm run install:all # Install all dependenciesapps/ui/
βββ app/ # Next.js App Router pages
β βββ page.tsx # Landing/builder page
β βββ layout.tsx # Root layout
β βββ api/ # API routes (if needed)
βββ components/ # React components
β βββ ui/ # shadcn/ui components
β βββ persona/ # Persona-specific components
β βββ layout/ # Shared layout components
βββ services/ # Service layer
β βββ persona.service.ts # Persona service interface
β βββ api/
β βββ apiPersonaService.ts # API implementation
βββ lib/ # Utilities
β βββ supabase/ # Supabase client setup
β βββ types.ts # TypeScript type definitions
βββ public/ # Static assets
βββ styles/ # Global styles
βββ package.json # Dependencies# Create a feature branch
git checkout -b feature/amazing-feature
# Make your changes and test
npm run type-check # Ensure no TypeScript errors
npm run lint # Check code style
# Commit with descriptive message
git commit -m "feat: add amazing feature"
# Push to remote
git push origin feature/amazing-feature
# Create a Pull Request on GitHub- π OBJECTIVE.md - Project vision and phased roadmap
- πΊοΈ PLAN.md - Detailed implementation plan and architecture
- π€ CLAUDE.md - AI assistant development guide
- π Backlog - Agile project management structure
- βΉοΈ ABOUT.md - GitHub about section content
- Persona - Structured digital representation of an individual with traits, interests, and communication style
- Multi-Agent System - Collection of specialized AI agents working together (Memory, Reasoning, Personality)
- Service Abstraction - Interface-based design for type-safe API integration
- Netlify Functions - Serverless backend for persona processing and data storage
Contributions are welcome! Neural Agent is in active development and we'd love your help.
- π Report Bugs - Found an issue? Open a GitHub issue
- π‘ Suggest Features - Have ideas? We're listening
- π Improve Docs - Help make the docs clearer
- π§ Submit PRs - Code contributions always welcome
# Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/neural-agent-framework.git
cd neural-agent
# Create a feature branch
git checkout -b feature/amazing-feature
# Install dependencies
npm install
cd apps/ui && npm install
# Make your changes
npm run dev # Start dev server
npm run type-check # Validate types
npm run lint # Check style
# Commit and push
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature
# Create a Pull Request on GitHub- β Use TypeScript strict mode
- β Follow mobile-first responsive design
- β Write clear, descriptive commit messages
- β Update documentation for API changes
- β Format code with Prettier (configured in project)
- β
Run
npm run lintbefore committing - β
Ensure
npm run type-checkpasses
Neural Agent follows a 7-phase development plan:
- Phase 0 - Planning & Architecture β
- Phase 1 - Foundation & Data Handling (Current)
- Web interface for persona creation
- OpenAI integration for data processing
- Supabase storage implementation
- Type-safe service architecture
- Phase 2 - Chat Interface & Authentication
- Interactive chat UI with multi-agent backend
- Persona selection and retrieval
- Magic-link email authentication
- User profiles and data ownership
- Phase 3 - Information Enrichment
- Web scraping for links
- Automated research capabilities
- Data confidence scoring
- Phase 4 - Single Agent Prototype
- Conversational agent with memory
- Personality trait extraction
- Advanced context awareness
- Phase 5 - Multi-Agent Architecture
- Brain-inspired agent system
- Agent orchestration and communication
- Specialized agent roles
- Phase 6 - Advanced Replication
- Learning from interactions
- Behavioral pattern recognition
- Quality metrics and scoring
- Phase 7 - Production Features
- Admin dashboard
- Privacy & security hardening
- Export/Import capabilities
- Scaling and performance optimization
See PLAN.md for detailed implementation steps.
Neural Agent handles sensitive personal information. Security considerations:
- π API Keys - Stored in environment variables, never committed to version control
- π‘οΈ Input Validation - All user input sanitized before processing
- π Data Encryption - Supabase encryption at rest and in transit
- π« Access Control - Bucket policies and RLS (row-level security) planned
- π Privacy Policy - Clear disclosure of data usage required
Q: Is this ready for production use?
A: No, Neural Agent is currently in Phase 1 (alpha). It's under active development. Do not use with sensitive data in production.
Q: What LLM models are supported?
A: Currently OpenAI GPT-4 and GPT-3.5-turbo. More models planned (Claude, Llama, etc.).
Q: Can I self-host this?
A: Yes! The architecture supports self-hosting. Detailed documentation coming soon.
Q: How much does it cost to run?
A: Costs depend on OpenAI API usage. Estimated $0.01-0.10 per persona creation. Supabase has a generous free tier.
Q: Is my data shared or trained on?
A: No. Your data is stored privately in your Supabase instance. OpenAI's data usage policy applies to API calls.
Q: Can personas be exported?
A: Export functionality is planned for Phase 7. Currently data is stored as JSON in Supabase and can be manually exported.
Q: How do I report a security vulnerability?
A: Please email security@example.com with details (or open a private security advisory on GitHub).
This project is licensed under the MIT License. See LICENSE for details.
Copyright Β© 2025 Neural Agent Contributors
Neural Agent is inspired by:
- Brain-computer interface research and cognitive architectures
- Multi-agent systems in AI (AutoGPT, MetaGPT, CrewAI)
- Digital preservation and memory projects
Built with:
- Next.js - React framework
- OpenAI API - LLM processing
- Supabase - Backend as a Service
- shadcn/ui - Accessible UI components
- Tailwind CSS - Utility-first CSS
Special thanks to the open-source community for the amazing tools and inspiration.
Current Phase: Phase 1 - Foundation & Basic Data Handling Status: Active Development (Alpha) Last Updated: November 2025
- β Project architecture defined
- β Technology stack finalized
- β Development roadmap created
- β GitHub documentation setup
- π§ Frontend persona creation interface
- π§ Service layer and API integration
- β³ Backend integration (Netlify Functions)
- π GitHub Issues - Report bugs and request features
- π Documentation - Browse project documentation
- πΊοΈ Roadmap - View development roadmap
- π€ Contributing Guide - Learn how to contribute
Repository β’ Documentation β’ Roadmap β’ Contributing
Made with β€οΈ by developers who believe in preserving human connections through technology