Supports synchronization of documentation with Confluence wikis, enabling bi-directional sync with conflict resolution and version tracking for team documentation.
Extracts and tracks code changes from Git repositories, enabling documentation generation from commits, diffs, and staged changes.
Provides integration with GitHub wikis and documentation, supporting cloud synchronization and multi-provider documentation management.
Generates and manages Markdown documentation from code changes, supporting various documentation types including API docs and changelogs.
Uses Mermaid diagrams for visualizing knowledge management architecture and system relationships in documentation.
Planned support for syncing documentation with Notion workspaces through multi-provider cloud synchronization capabilities.
Uses SQLite database for storing service definitions, document mappings, provider configurations, prompt templates, and generation history with schema version tracking.
Supports TOML file-based storage for configuration management, service mappings, and system settings as an alternative to SQLite.
KTME - Knowledge Tracking & Management Engine
KTME is a powerful tool for tracking, managing, and generating documentation from code changes. It provides seamless integration with Git repositories and offers both file-based and SQLite-based storage options.
Features
Git Integration: Automatically extracts and tracks code changes from Git repositories
Multiple Storage Backends: Supports both TOML file-based storage and SQLite database
Documentation Generation: Generates comprehensive documentation from code changes
MCP Server Integration: Provides Model Context Protocol server capabilities
Service Mapping: Maps different services to their documentation locations
Recent Changes
AI Agent Knowledge Management (Latest)
KTME now provides comprehensive support for AI agents with advanced knowledge tree mapping and document synchronization capabilities.
New Features
Intelligent Service Detection: Automatic detection of service names from Git repositories
Mock AI Provider: Built-in documentation generation without requiring API keys
Advanced Search: Feature and keyword-based search with relevance scoring
MCP Server Integration: Enhanced Model Context Protocol server with AI agent tools
Documentation Generation
SQLite Database Support
The project has been enhanced with SQLite database support for improved performance and scalability:
Configuration Changes
Added
use_sqliteflag in configuration to enable/disable SQLite storageAdded
database_fileoption to specify custom database file locationDefault database location:
~/.config/ktme/ktme.db
Database Schema
The SQLite database includes the following tables:
services: Stores service definitionsdocument_mappings: Maps documents to their storage locationsprovider_configs: Configuration for different documentation providersprompt_templates: Templates for generating documentationdocument_templates: Document structure templatesgeneration_history: Track documentation generation historydiff_cache: Cache for storing Git diff informationschema_versions: Database schema version tracking
Storage Manager Updates
The StorageManager now supports:
Dual storage mode (TOML + SQLite)
Database initialization and migration
Service listing from database
Database statistics retrieval
Upcoming Features
π§ Advanced Knowledge Management (Planned)
Feature Mapping System
Feature Relationships: Track parent-child relationships and dependencies between features
Relevance Scoring: Intelligent scoring of feature-document relationships
Cross-Service Mapping: Discover relationships between features across different services
Automated Extraction: Automatically extract features from code and documentation
AI Agent Integration
Knowledge Tree: Hierarchical organization of services, features, and documentation
Context-Aware Search: Understand user intent and provide relevant results
Semantic Search: Vector-based search for finding related content
Multi-Modal Support: Search across code, documentation, and examples
Cloud Synchronization
Multi-Provider Support: Sync with Confluence, GitHub, Notion, and S3
Bi-Directional Sync: Two-way synchronization with conflict resolution
Version Tracking: Keep track of document versions and changes
Offline Support: Work offline and sync when connected
Enhanced MCP Tools
Performance & Scalability
Caching Layer: Intelligent caching of search results and documents
Incremental Sync: Only sync changed documents to reduce bandwidth
Background Processing: Handle large repositories efficiently
Rate Limiting: Respect API limits for cloud providers
π― AI Agent Knowledge Management Architecture
KTME provides a comprehensive knowledge management system for AI agents:
See docs/architecture.md for detailed architecture diagrams and implementation plans.
Installation
Configuration
Create a configuration file at ~/.config/ktme/config.toml:
Usage
Basic Commands
MCP Server
KTME provides an MCP server for integration with various tools:
Database Verification
To verify SQLite database is working correctly:
Architecture
Development
Project Structure
src/config/: Configuration managementsrc/storage/: Storage abstraction and implementationssrc/git/: Git integration and change extractionsrc/mcp/: MCP server implementationsrc/cli/: Command-line interface
Building from Source
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
License
This project is licensed under the MIT License.