A super tiny implementation of OpenCog as a chatbot with the personality traits and basic cognitive architecture features of OpenCog. Designed to give users a simulated experience of what interactions will be like when the full OpenCog model comes online.
āāā frontend/
ā āāā index.html # Main chat interface
ā āāā components/
ā ā āāā App.tsx # Main application
ā ā āāā ChatInterface.tsx
ā ā āāā CognitiveState.tsx
ā ā āāā MemoryViewer.tsx
ā āāā style.css
āāā backend/
ā āāā index.ts # Hono server
ā āāā cognitive/
ā ā āāā atomspace.ts # Mini-AtomSpace implementation
ā ā āāā ecan.ts # Economic attention allocation
ā ā āāā memory.ts # Memory formation and retrieval
ā ā āāā reasoning.ts # Pattern recognition and reasoning
ā āāā database/
ā āāā schema.ts # SQLite schema for persistence
āāā shared/
āāā types.ts # Shared types and interfaces
This is a Val Town project. The main entry point is /backend/index.ts which serves the chat interface and handles cognitive processing.
NanoCog learns about users and creates tagged memories that persist across sessions, building a growing understanding of each individual and their interests.