1.0.0 • Published 8 months ago

@jayminwest/kota-ai v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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

CommandDescription
kota initInitialize KOTA in your home directory
kota statusDisplay current status and configuration
kota connect <server>Connect to an MCP server
kota create <title> <content>Create a new knowledge entry
kota listList 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 chatStart an interactive chat session
kota modelsList 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

  1. Setup Environment

    # Install dependencies
    npm install
    
    # Build the package
    npm run build
    
    # Link locally for testing
    npm link
  2. Implement Core Features

    • Start with the storage module for MDX files
    • Implement the CLI interface
    • Create the knowledge management system
    • Add MCP integration
  3. Testing

    # Run tests
    npm test
    
    # Test CLI
    kota --help
  4. Publishing

    # 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