Skip to content

wawiesel/wks

Repository files navigation

WKS

Coverage Mutation Score Traceability Tests Python Status Docker Freshness

Status

  • Alpha: monitor, vault, transform, diff layers are under active development; CLI and MCP may change without notice.
  • Upcoming priorities and ideas: NEXT.md.

Code Quality Metrics

Metric Value Target Status
Code Coverage 86.4% 100% ⚠️ Below Target
Mutation Kill % 56.2% ≥90% ⚠️ Below Target
Traceability 61.5% 100% ⚠️ Below Target
Docker Freshness v1 Up to date ✅ Pass

Source Size Statistics

Section Files LOC Characters Tokens % Tokens
api 202 13,125 465,117 73,490 33.7%
cli 26 1,670 58,603 10,665 4.9%
mcp 9 553 20,020 3,780 1.7%
utils 0 0 0 0 0.0%
Total 237 15,348 543,740 87,935 40.3%

Testing Statistics

Type Files LOC Characters Tokens % Tokens
Unit Tests 98 11,282 391,605 68,346 31.3%
Integration Tests 13 1,548 52,085 9,516 4.4%
Smoke Tests 7 352 11,848 2,049 0.9%
Total 118 13,182 455,538 79,911 36.6%

Documentation Size Summary

Category Files LOC Characters Tokens % Tokens
User Documentation 7 228 7,065 1,766 0.8%
Developer Documentation 43 2,827 113,651 28,406 13.0%
Specifications 0 0 0 0 0.0%
Total 50 3,055 120,716 30,172 13.8%

Infrastructure Summary

Type Files LOC Characters Tokens % Tokens
CI/CD 4 401 12,424 3,106 1.4%
Build/Config 5 187 4,377 1,092 0.5%
Scripts 22 2,437 83,982 16,021 7.3%
Total 31 3,025 100,783 20,219 9.3%

Mutation Testing: Tests the quality of our test suite by introducing small changes (mutations) to the code and verifying that existing tests catch them. A score of 56.2% means 56.2% of introduced mutations were successfully killed by the test suite.

Test Statistics: 648 tests across 112 test files.

Per-Domain Quality

Domain Coverage Mutation % Killed/Total
cat 94% 60% 60/100
config 98% 60% 255/423
daemon 84% 37% 131/355
database 90% 62% 393/632
diff 86% 52% 315/606
link 97% 52% 630/1217
log 94% 55% 299/547
mcp 97% 51% 204/398
monitor 99% 58% 995/1702
service 92% 86% 99/115
transform 88% 59% 685/1166
utils 0%
vault 100% 57% 756/1316

Overview

WKS provides intelligent filesystem monitoring, vault link tracking, and document transformation capabilities. Built as a layered architecture with MongoDB backend and Model Context Protocol (MCP) integration for AI assistants.

Important Note: WKS is currently in alpha development status and is not yet ready for external users. Our immediate focus is on comprehensive revision and ensuring 100% test coverage across existing features.

Core Capabilities:

  • Filesystem Monitoring: Priority-based file tracking with automatic indexing
  • Vault Link Management: Bidirectional link tracking for Obsidian vaults
  • Transform Layer: Document conversion (PDF → Markdown) with intelligent caching
  • MCP Server: AI assistant integration via Model Context Protocol
  • Service Daemon: Background monitoring with automatic sync

CLI Reference

Command Group Description
wksc monitor Filesystem monitoring operations
wksc vault Vault link management (Obsidian-style)
wksc link Resource edge/link operations
wksc daemon Daemon runtime management
wksc service System service install/uninstall
wksc config Configuration operations
wksc database Database operations
wksc mcp MCP server management
wksc monitor - Filesystem monitoring
  • status - Get filesystem monitoring status
  • check <path> - Check if path would be monitored and its priority
  • sync <path> [--recursive] - Force update file/directory into database
  • filter show [list_name] - Show filter list contents
  • filter add <list_name> <value> - Add value to filter list
  • filter remove <list_name> <value> - Remove value from filter list
  • priority show - List all priority directories
  • priority add <path> <priority> - Set priority for directory
  • priority remove <path> - Remove priority directory
wksc vault - Vault link management
  • status - Get vault link health status
  • sync [path] [--recursive] - Sync vault links to database
  • check [path] - Check vault link health
  • links <path> [--direction to|from|both] - Show edges to/from a file
wksc link - Resource edge operations
  • status - Get health and statistics for links collection
  • show <uri> [--direction to|from|both] - Show edges connected to URI
  • check <path> [--parser] - Check links in file
  • sync <path> [--parser] [--recursive] [--remote] - Sync links to database
wksc daemon - Daemon runtime
  • status - Check daemon status
  • start [--restrict] [--blocking] - Start daemon
  • stop - Stop daemon
  • clear - Clear daemon logs (only if stopped)
wksc service - System service
  • status - Check service status
  • start / stop - Start/stop service
  • install [--restrict] - Install system service
  • uninstall - Uninstall system service
wksc config - Configuration
  • list - List configuration sections
  • show <section> - Show section configuration
  • version - Show WKS version
wksc database - Database operations
  • list - List all databases
  • show <database> [--query] [--limit] - Show database contents
  • reset <database> - Reset (clear) database
  • prune <database> [--remote] - Prune stale entries
wksc mcp - MCP server
  • list - List MCP installations
  • install <name> [--type] [--settings-path] - Install MCP server
  • uninstall <name> - Uninstall MCP server
  • run [--direct] - Run MCP server

Global Options: --version / -v, --display json|yaml (default: yaml), --help / -h

Install

Requirements

  • Python 3.12, 3.13, or 3.14
  • MongoDB 4.0+
  • macOS/Linux

From Source

# Clone and setup
git clone https://github.com/wawiesel/wks.git
cd 2025-WKS

# Create virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -e '.[all]'

# Optional: Install docling for PDF/Office transformation
pipx runpip wksc install docling

Initialize configuration

wksc config

Start background service

wksc service start

Check status

wksc service status

Sync vault links

wksc vault sync

View vault links

wksc vault links ~/vault/Note.md


## MCP Integration

Install for AI assistants:
```bash
wksc mcp install  # Install for all clients
wksc mcp install --client cursor --client claude

Available tools: wksm_* (see qa/specs/wks.md for details)

Architecture

The system's architecture is designed in layers, with core functionality currently implemented and under revision up to the Indexing Layer as described in the specifications.

See qa/specs/wks.md for the complete system specification.

Key Layers (Implemented & Under Revision):

  • Monitor Layer: Filesystem state tracking
  • Vault Layer: Knowledge graph links
  • Transform Layer: Document conversion
  • Diff Layer: File comparison engines
  • Service Layer: Background daemon
  • Index Layer: Building towards comprehensive search indices (conceptualized in SPEC.md)

Documentation

About

WKS alpha

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 6