1.0.0 ⢠Published 8 months ago
@jayminwest/kota-ai v1.0.0
KOTA-AI
Knowledge-Oriented Thinking Assistant - A local-first AI knowledge management system with MCP integration
š Vision
KOTA-AI reimagines personal knowledge management by combining the power of modern AI with the privacy of local-first architecture. It's designed to be an extension of your cognitive processes, helping you organize, connect, and utilize your knowledge while keeping your data entirely under your control.
⨠Key Features
- š Local MDX Storage: All your knowledge stays on your machine, never in the cloud
- š MCP Integration: Seamless connection to Model Context Protocol servers with a single command
- š§ Context Management: Sophisticated handling of conversation context for more relevant interactions
- š¤ Flexible Model Selection: Choose from local or remote models based on your needs
- š» Beautiful CLI: Intuitive terminal interface with rich formatting and visualizations
- š Bidirectional Linking: Create connections between knowledge entries for deeper insights
- š Semantic Search: Find what you need based on meaning, not just keywords
š Implementation Plan
Phase 1: Core Infrastructure
- Set up TypeScript project structure ā
- Implement basic CLI interface
- Create local storage system for MDX files
- Develop file operations (create, read, update, delete)
Phase 2: Knowledge Management
- Implement frontmatter parsing for metadata
- Create bidirectional linking system
- Develop basic search functionality
- Build knowledge entry management
Phase 3: MCP Integration
- Create MCP client interface
- Implement server connection handling
- Develop model selection and switching
- Build context management system
Phase 4: User Experience
- Enhance CLI with colors and formatting
- Implement interactive chat mode
- Create visualization components
- Develop help and documentation
š Commands
| Command | Description |
|---|---|
kota init | Initialize KOTA in your home directory |
kota status | Display current status and configuration |
kota connect <server> | Connect to an MCP server |
kota create <title> <content> | Create a new knowledge entry |
kota list | List all knowledge entries |
kota search <query> | Search your knowledge base |
kota view <id> | View a specific knowledge entry |
kota edit <id> | Edit a knowledge entry |
kota delete <id> | Delete a knowledge entry |
kota chat | Start an interactive chat session |
kota models | List available models |
kota select <model> | Select a model to use |
š§© Project Structure
kota-ai/
āāā bin/ # CLI executable
āāā dist/ # Compiled JavaScript
āāā examples/ # Example usage
āāā src/
ā āāā core/ # Core knowledge management engine
ā āāā consciousness/# Consciousness framework
ā āāā mcp/ # Model Context Protocol integration
ā āāā storage/ # Local storage management
ā āāā cli/ # Command-line interface
ā āāā utils/ # Utility functions
ā āāā types/ # TypeScript type definitions
āāā tests/ # Test suite
āāā tsconfig.json # TypeScript configurationš» Development Workflow
Setup Environment
# Install dependencies npm install # Build the package npm run build # Link locally for testing npm linkImplement Core Features
- Start with the storage module for MDX files
- Implement the CLI interface
- Create the knowledge management system
- Add MCP integration
Testing
# Run tests npm test # Test CLI kota --helpPublishing
# Prepare for publishing npm version patch npm publish
š MCP Integration
KOTA-AI is designed to work seamlessly with the Model Context Protocol (MCP), allowing you to:
- Connect to any MCP-compatible server
- Use tools and plugins from the MCP ecosystem
- Share context between different AI applications
- Maintain privacy while leveraging powerful models
š§ Consciousness Framework
The consciousness framework is what sets KOTA-AI apart:
- Narrative Continuity: Maintains coherent understanding across sessions
- Context Awareness: Understands the relevance of different knowledge pieces
- Metacognition: Reflects on its own knowledge and reasoning
- Agency Development: Gradually develops capabilities based on demonstrated value
- Distributed Cognition: Creates a genuine cognitive partnership with the user
š License
MIT
1.0.0
8 months ago