| Crates.io | ktme |
| lib.rs | ktme |
| version | 0.2.3 |
| created_at | 2026-01-13 17:20:47.735487+00 |
| updated_at | 2026-01-15 15:48:43.613176+00 |
| description | Knowledge Transfer Me - Automated documentation generation from code changes using AI |
| homepage | https://github.com/FreePeak/ktme |
| repository | https://github.com/FreePeak/ktme |
| max_upload_size | |
| id | 2040725 |
| size | 512,354 |
Automated documentation generation from Git changes using AI
KTME is a CLI tool and MCP server that automatically generates and maintains documentation from Git changes. It integrates with GitHub, GitLab, and Confluence, using AI to create meaningful documentation from code commits and pull requests.
# Install via npm (recommended - easiest)
npm install -g ktme-cli
# Install from crates.io
cargo install ktme
# Or build from source
cargo build --release
cargo install --path .
# Generate docs from staged changes
ktme generate --service my-service --staged
# Extract GitHub PR and generate docs
ktme extract --pr 123 --provider github
ktme generate --service my-service --commit HEAD
# Update existing documentation
ktme update --service my-service --staged --section "API Changes"
# Map service to documentation location
ktme mapping add my-service --file docs/api.md
Create ~/.config/ktme/config.toml:
[git]
github_token = "ghp_xxxxx"
gitlab_token = "glpat_xxxxx"
[confluence]
base_url = "https://your-company.atlassian.net/wiki"
api_token = "your-api-token"
space_key = "DOCS"
[ai]
provider = "openai"
api_key = "sk-xxxxx"
model = "gpt-4"
Extract changes from various sources:
--staged)--commit abc123)--range main..feature)--pr 123)Generate documentation with templates:
# Use custom template
ktme generate --service api --template api-docs
# Generate changelog
ktme generate --service api --type changelog
# Output to specific file
ktme generate --service api --output docs/changelog.md
Update existing documentation intelligently:
# Update specific section
ktme update --service api --section "Breaking Changes"
# Smart merge with existing content
ktme update --service api --staged
Run as MCP server for AI agents:
# Start server
ktme mcp start
# Available tools:
# - ktme_generate_documentation
# - ktme_update_documentation
# - ktme_list_services
# - ktme_search_features
# Test changes (fast - only new modules)
make test-changes
# Run all checks (format, lint, tests)
make pre-release
# Development cycle
make dev
# Automated release workflow
make release
See docs/RELEASE.md for complete release documentation.
┌─────────────┐ ┌──────────────┐ ┌───────────────┐
│ Git CLI │────▶│ Extractors │────▶│ Generators │
│ GitHub API │ │ (Diff/PR/MR) │ │ (Templates) │
│ GitLab API │ └──────────────┘ └───────────────┘
└─────────────┘ │ │
▼ ▼
┌──────────────┐ ┌───────────────┐
│ Storage │ │ Writers │
│ (TOML/SQLite)│ │ (MD/Confluence)│
└──────────────┘ └───────────────┘
See CHANGELOG.md for complete version history.
We welcome contributions! Please see our Development Guide.
# Setup development environment
git clone https://github.com/FreePeak/ktme.git
cd ktme
make setup
# Run tests
make test-changes
# Submit PR
make pre-release
git push
MIT License - see LICENSE for details.
Built with ❤️ using Rust