
PAIML Agent Toolkit
STDIOOfficialZero-configuration AI context generation toolkit for codebase analysis and refactoring.
Zero-configuration AI context generation toolkit for codebase analysis and refactoring.
Zero-configuration AI context generation system that analyzes any codebase instantly through CLI, MCP, or HTTP interfaces. Built by Pragmatic AI Labs.
curl -sSfL https://raw.githubusercontent.com/paiml/paiml-mcp-agent-toolkit/master/scripts/install.sh | sh
# Zero-configuration context generation pmat context # Auto-detects language pmat context --format json # JSON output pmat context rust # Force language # Code analysis pmat analyze complexity --top-files 5 # Complexity analysis pmat analyze churn --days 30 # Git history analysis pmat analyze dag --target-nodes 25 # Dependency graph pmat analyze dead-code --format json # Dead code detection pmat analyze satd --top-files 10 # Technical debt pmat analyze deep-context --format json # Comprehensive analysis pmat analyze big-o # Big-O complexity analysis pmat analyze makefile-lint # Makefile quality linting pmat analyze proof-annotations # Provability analysis pmat analyze graph-metrics # Graph centrality metrics pmat analyze name-similarity "function_name" # Semantic name search # Project scaffolding pmat scaffold rust --templates makefile,readme,gitignore pmat list # Available templates # Refactoring engine pmat refactor interactive # Interactive refactoring pmat refactor serve --config refactor.json # Batch refactoring pmat refactor status # Check refactor progress pmat refactor resume # Resume from checkpoint # Demo and visualization pmat demo --format table # CLI demo pmat demo --web --port 8080 # Web interface pmat demo --repo https://github.com/user/repo # Analyze GitHub repo
# Add to Claude Code claude mcp add paiml-toolkit ~/.local/bin/pmat
Available MCP tools:
generate_template
- Generate project files from templatesscaffold_project
- Generate complete project structureanalyze_complexity
- Code complexity metricsanalyze_code_churn
- Git history analysisanalyze_dag
- Dependency graph generationanalyze_dead_code
- Dead code detectionanalyze_deep_context
- Comprehensive analysisgenerate_context
- Zero-config context generationanalyze_big_o
- Big-O complexity analysis with confidence scoresanalyze_makefile_lint
- Lint Makefiles with 50+ quality rulesanalyze_proof_annotations
- Lightweight formal verificationanalyze_graph_metrics
- Graph centrality and PageRank analysisrefactor_interactive
- Interactive refactoring with explanations# Start server pmat serve --port 8080 --cors # API endpoints curl "http://localhost:8080/health" curl "http://localhost:8080/api/v1/analyze/complexity?top_files=5" curl "http://localhost:8080/api/v1/templates" # POST analysis curl -X POST "http://localhost:8080/api/v1/analyze/deep-context" \ -H "Content-Type: application/json" \ -d '{"project_path":"./","include":["ast","complexity","churn"]}'
Code Quality Tools
pmat analyze makefile-lint
- Lint Makefiles with 50+ quality rulespmat excellence-tracker
- Track code quality metrics over timepmat refactor serve
- Batch refactoring with checkpointspmat refactor interactive
- Interactive refactoring with explanationsAdvanced Analysis
pmat analyze tdg
- Calculate Technical Debt Gradientpmat analyze proof-annotations
- Lightweight formal verificationpmat analyze defect-prediction
- ML-based defect predictionpmat analyze name-similarity
- Semantic name search with embeddingspmat analyze big-o
- Big-O complexity with confidence scorespmat analyze graph-metrics
- PageRank and centrality metricspmat analyze incremental-coverage
- Coverage changes since base branchThe project uses a distributed test architecture for fast feedback:
# Run specific test suites make test-unit # <10s - Core logic tests make test-services # <30s - Service integration make test-protocols # <45s - Protocol validation make test-e2e # <120s - Full system tests make test-performance # Performance regression # Run all tests in parallel make test-all # Coverage analysis make coverage-stratified
make test-fast
for validationMIT License - see LICENSE file for details.
Built with ❤️ by Pragmatic AI Labs