Online DEMO: https://cognai.space/
Currently adapting CEAF to Agency: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/agency_manifesto.md
Aura AI Agents is a powerful, flexible, and scalable framework for building, managing, and interacting with advanced conversational AI agents. Built on Python with FastAPI, it provides a robust foundation for creating multi-tenant AI experiences, where each agent operates in an isolated environment with its own memory system, personality, and capabilities.
Similar to Character.AI but with complex prompt engineering and memory systems.
The framework is built around two distinct and powerful agent architectures: NCF (Narrative Context Framing) and the cutting-edge experimental CEAF (Coherent Emergence Agent Framework).
-
Dual Agent Architectures:
- NCF (Narrative Context Framing): A robust, production-ready system that uses sophisticated prompt engineering, RAG (Retrieval-Augmented Generation), and a reflection loop to create agents with deep context and personality.
- CEAF (Coherent Emergence Agent Framework): An experimental autonomous agent architecture that utilizes a metacognitive control loop (MCL) and an adaptive memory architecture (AMA) to develop a coherent, emergent identity over time.
-
Advanced Memory Systems:
- MemoryBlossom: An isolated memory system for each NCF agent, featuring distinct memory types, salience decay, and emotional scores.
- Adaptive RAG: An optional layer over MemoryBlossom that adds adaptive concept clustering and domain specialization for even smarter memory retrieval.
- AMA (Adaptive Memory Architecture): The core of the CEAF system, which autonomously organizes experiences into concept clusters.
-
Multi-Tenant & User-Isolated: The architecture is designed from the ground up to serve multiple users, ensuring each agent's data, memories, and files remain completely isolated and secure.
-
Extensible Specialist Agents: Offload complex tasks to dedicated specialist agents. The system includes out-of-the-box examples for image generation (Tensor.Art) and speech processing (Hugging Face).
-
Comprehensive REST API: A robust API built with FastAPI provides endpoints for everything from user authentication (JWT) and agent management to chat interaction, memory management, and file uploads.
-
Agent Marketplace & Cloning: Users can publish their private agents as "public templates" to the marketplace. Other users can then clone these agents, inheriting their foundational personality and memories to kickstart their own experience.
-
Per-Agent Integrated RAG: Users can upload files (PDFs, TXT) to an agent's personal storage. The agent can then search these documents to answer questions, giving each agent its own custom knowledge base.
-
Live Collective Memory: An optional shared wisdom system where agents can contribute anonymized insights, allowing other agents to benefit from collective knowledge.
-
Dynamic Credit System: A built-in billing system that deducts credits based on the LLM model used, with configurable costs for different model tiers.
-
Precision Mode: Measure logprobs, run up to 8 paralel llm calls, measure confidence and retrieve higher values. Based on DeepConf.
-
Specialist Agentse: As for today, Aura has 2 Specialist Agents: Tensor.Art and HugginFace. Any Agent in Aura can call those. You can add more check extended documentation.
-
Guide to the CEAF Governor Module : https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadMeCEAF.md
-- CEAF here is the LITE Version of it. The complete Version is heavier. I will not share it for now. (Lite around 120kb. Full Around 800kb)
-
Guide to the NCF Governor Module: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeNCF.md
-
Guide to Precision Mode(DeepConf) in CEAF: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadMeDeepConf.md
-
Guide to the FrontEnd : https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeIndexFrontEnd.md
-
Guide to Models and Credit: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeMODELS.md
-
Guide to the MemoryBlossom and Adaptive Memory: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeMemory.md
-
Guide How to Add Specialist Agents: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeAddSpecialistAgents.md
-
Guide How to Add MCP/A2A Specialists Agents: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadMeMCPA2A.md
-
Guide How to Biograhical Memories: https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/ReadmeBiographicalMemories.md
The AuraCode system is built in layers to ensure modularity and scalability:
- API Layer (FastAPI -
api/routes.py): The entry point for all interactions. It handles HTTP requests, user authentication (JWT), and data validation. - Management Layer (
agent_manager.py): The heart of the system. It orchestrates the creation, deletion, and retrieval of agent instances. It decides whether to instantiate an NCF agent or a CEAF adapter. - Agent Layer (NCF/CEAF Instances):
- NCFAuraAgentInstance: The standard agent implementation. It utilizes
ncf_processing.pyto build context-rich prompts and interacts with MemoryBlossom. - CEAFAgentAdapter: An adapter layer that presents the complex CEAF system with a compatible interface, allowing it to be used transparently by the rest of the system.
- NCFAuraAgentInstance: The standard agent implementation. It utilizes
- Memory Layer (
memory_system/&ceaf_system/AMA.py): Handles the storage, retrieval, and management of each agent's knowledge. Includes MemoryBlossom, Adaptive RAG, and CEAF's Adaptive Memory Architecture. - Persistence Layer (SQLAlchemy & Filesystem):
- A SQLite database (
aura_agents.db) stores user and agent metadata. - The
agent_storage/directory contains each agent's configuration, memory, and RAG files in an isolated folder structure.
- A SQLite database (
| Feature | NCF (Narrative Context Framing) | CEAF (Coherent Emergence Agent Framework) |
|---|---|---|
| Approach | Sophisticated Prompt Engineering | Autonomous, Self-Organizing System |
| Awareness | Prompt-based; context is provided on each turn. | Emergent; internal state evolves over time. |
| Components | ncf_processing, MemoryBlossom, AuraReflector |
AMA, MCL, ORA, NCIM, VRE, AURA |
| Ideal for | Robust character agents, context-aware assistants. | AGI research, consciousness simulation, agents that learn from failure. |
| Complexity | Moderate | High (Experimental) |
Follow these steps to set up and run the AuraCode server locally.
- Python 3.10+
- langChain
- LangGraph
- Google ADK
- OpenRouter
- LiteLLM
-
Clone the repository:
git clone https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/tree/main/AuraCode or Download https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/AuraCode.zip cd AuraCode -
Create and activate a virtual environment:
python -m venv venv # Windows .\venv\Scripts\activate # macOS/Linux source venv/bin/activate
-
Install dependencies: The project uses several libraries. Install them using:
pip install -r requirements.txt Double check
-
Configure Environment Variables: Create a file named
.envin the project root and add your API keys: - CHECK Example.ENV *********# Required for most LLM operations OPENROUTER_API_KEY="sk-or-v1-..." # Key for the Image Generation Specialist Agent TENSORART_API_KEY="..." # Key for the Speech Specialist Agent HUGGINGFACE_API_KEY="..." # Secret key for JWT authentication tokens (change to something secure) JWT_SECRET_KEY="a-very-long-and-secure-secret-key"
-
Set up the Database: Run the init or migration script to create and verify the SQLite database schema.
python init_db.py or python db_migration.py
With the virtual environment activated and the .env file configured, start the API server:
uvicorn main_app:app --host 0.0.0.0 --port 8000 --reload- The API will be available at
http://localhost:8000. - Interactive API documentation (Swagger UI) will be at
http://localhost:8000/docs. - If the frontend is present in the
frontend/folder, it will be served athttp://localhost:8000/.
The project includes several scripts in the root directory for management and testing:
db_migration.py: Safely applies schema changes to the SQLite database.uploader.py: A CLI tool for bulk-creating agents from JSON "biography" files. (check https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/AuraCode/Documentation/Important%20CURLS.txt )wisdom_collector.py: A process that can be run in the background to index insights from the "Live Collective Memory."check_db_agents.py: A CLI tool to check the publication status of agents in the database.ExportCodeBaseToTXT.py: Export all .py files into a single .txt filecheck_db_agents.py: Check if Agent exists
- It has a simple HTML, CSS, JS frontend in the /frontend folder
- i'm also uploading a very deprecated Android APP that serves as a frontEnd , but it is very deprecated but surely can be used as a base... check https://github.com/IhateCreatingUserNames2/Aura_AI_Agents/blob/main/srcAndroidFront.zip
AuraCode/
βββ agent_storage/ # Isolated storage for agent data
βββ api/
β βββ routes.py # FastAPI API endpoints
βββ ceaf_system/ # Components for the experimental CEAF framework
β βββ AMA.py # Adaptive Memory Architecture
β βββ MCL.py # Metacognitive Control Loop
β βββ ORA.py # Orchestrator/Responder Agent (LangGraph)
β βββ ... # Other components (NCIM, VRE, AURA)
βββ database/
β βββ models.py # SQLAlchemy data models
βββ memory_system/
β βββ memory_blossom.py # Main memory system for NCF agents
β βββ memory_models.py # Data model for a single memory
β βββ ...
βββ agent_manager.py # Core logic for managing agent instances
βββ enhanced_memory_system.py # Adaptive RAG implementation
βββ main_app.py # Entry point to start the uvicorn server
βββ ncf_processing.py # Logic for building the NCF prompt
βββ prebuilt_agents_system.py # System for creating and managing pre-built agents
βββ rag_processor.py # Logic for processing and searching files (RAG)
βββ db_migration.py # Database migration script
βββ .env.example # Example file for environment variables
βββ ...
- CEAF Emergent Properties Will Only Show when the Agent has Enough Memories/Chats/interactions.
Contributions are welcome! If you'd like to improve AuraCode, please follow these steps:
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature/my-amazing-feature). - Commit your changes (
git commit -m 'Add my amazing feature'). - Push to the branch (
git push origin feature/my-amazing-feature). - Open a Pull Request.
This project is Open Source.
- If you need help find me on : discord https://discord.gg/Urb27E9C
