Skip to content

yaleh/meta-cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

meta-cc

CI License Release Go Version Plugin Marketplace

Meta-cognition tool for Claude Code - Analyze session history, detect patterns, optimize workflows.


What is meta-cc?

meta-cc helps you understand and improve your Claude Code workflows through:

  • Natural language queries - /meta "show errors" - discover capabilities by asking
  • Autonomous analysis - Claude automatically queries session data via MCP tools
  • Interactive coaching - @meta-coach provides personalized workflow optimization

Zero configuration required - works out of the box with Claude Code.

Real-World Use Cases

From actual user sessions:

πŸ“Š Project Analysis

/meta "show errors"              # Analyze error patterns and prevention
/meta "quality check"            # Quick quality assessment with scorecard
/meta "find repeated workflows"  # Detect repetitive tasks for automation
/meta "which files change most"  # File operation statistics and hotspots

🎯 Next Steps & Planning

/meta "What to do now?"          # Get intelligent next-step recommendations
/meta "propose optimizations"    # Workflow improvement suggestions
/meta "help me prioritize"       # Action prioritization based on context

πŸ“ˆ Performance & Debugging

/meta "why are my tests failing"  # Root cause analysis for test failures
/meta "optimize my workflow"      # Efficiency bottleneck identification
/meta "show tool usage patterns"  # Most frequently used tools analysis

πŸ“‹ Documentation & Quality

/meta "documentation gaps"       # Find missing or incomplete documentation
/meta "technical debt overview"  # Track and prioritize technical debt
/meta "visualize timeline"        # Project evolution timeline

Quick Install

1. Install Plugin

/plugin marketplace add yaleh/meta-cc
/plugin install meta-cc

The meta-cc plugin includes everything you need:

  • Unified /meta command - Natural language interface for session analysis
  • 5 Specialized Agents - Project planning, iteration management, knowledge extraction
  • 13 Capabilities - Error analysis, quality scanning, workflow optimization
  • 16 MCP Tools - Autonomous session data queries (v2.1 two-stage query architecture)
  • 16 Validated Methodology Skills:
    • BAIME (Bootstrapped AI Methodology Engineering) - Framework for developing methodologies
    • Testing Strategy - TDD, coverage-driven gap closure (3.1x speedup)
    • CI/CD Optimization - Quality gates, release automation (2.5-3.5x speedup)
    • Error Recovery - 13-category taxonomy, diagnostic workflows
    • Documentation Management - Templates, patterns, automation tools
    • And 11 more validated skills

Try BAIME: Just tell Claude "Use BAIME to build [domain] capability and complete [tasks]" - Claude handles everything automatically. See BAIME Usage Guide for examples and the 3-level trial workflow.

2. Install MCP Server Binary

# Linux/macOS (one-liner)
curl -L https://github.com/yaleh/meta-cc/releases/latest/download/meta-cc-plugin-linux-amd64.tar.gz | tar xz
cd meta-cc-plugin-linux-amd64
./install.sh

Other platforms: See Installation Guide for macOS (Apple Silicon), Windows, and manual installation.

3. Configure MCP Server

claude mcp add meta-cc meta-cc-mcp

Verify Installation

/meta "show stats"         # Should display session statistics
/meta "show errors"        # Should analyze error patterns

Troubleshooting: See Installation Guide for common issues.


Quick Start

1. Natural Language Queries

Ask meta-cc what you need using the /meta command:

/meta "show errors"              # Analyze error patterns
/meta "find repeated workflows"   # Detect repetitive tasks
/meta "which files change most"   # File operation stats
/meta "quality check"             # Code quality scan
/meta "visualize timeline"        # Project timeline

How it works: meta-cc loads capabilities from GitHub and matches your intent to the best capability.

2. Autonomous Analysis (MCP)

Just ask Claude naturally - MCP tools are invoked automatically:

"Show me all Bash errors in this project"
"Find user messages mentioning 'refactor'"
"Which tools do I use most often?"

NEW (v2.0+): Unified query interface with 20 MCP tools and jq filtering:

// Core query tool - unified interface
query({
  resource: "tools",
  filter: {tool_status: "error"},
  jq_filter: '.[] | select(.tool_name == "Bash")'
})

// Convenience tools - optimized for common queries
query_tool_errors({limit: 10})
query_token_usage({stats_first: true})
query_conversation_flow({scope: "session"})

// Raw jq - maximum flexibility for power users
query_raw({
  jq_expression: '.[] | group_by(.tool_name) | map({tool: .[0].tool_name, count: length})'
})

Key Features:

  • Hybrid Output Mode: Auto-switches between inline (<8KB) and file_ref (β‰₯8KB)
  • jq Integration: Native jq filtering for complex queries
  • No Limits by Default: Returns all results, relies on hybrid mode
  • 20 Tools: 2 core + 8 convenience + 7 legacy + 3 utility tools

Resources:

3. Interactive Coaching

Get personalized workflow guidance from the @meta-coach subagent:

@meta-coach Why do my tests keep failing?
@meta-coach Help me optimize my workflow
@meta-coach Analyze my efficiency bottlenecks

Documentation

Getting Started

Integration

Advanced

Development

For Claude Code

Complete documentation map: DOCUMENTATION_MAP.md


Key Features

  • 🎯 Natural language interface - /meta command with semantic matching
  • πŸ” 16 MCP query tools - Autonomous session data analysis with two-stage query architecture
  • πŸŽ“ Interactive coaching - @meta-coach subagent for workflow optimization
  • πŸ“š 16 Validated Skills - Reusable methodologies for testing, CI/CD, error recovery, documentation, and more
  • πŸ€– 5 Specialized Agents - Project planning, stage execution, iteration management
  • πŸ“Š Advanced analytics - jq-based filtering, aggregation, time series
  • πŸ“ File operation tracking - Identify hotspots and churn
  • πŸ”„ Workflow pattern detection - Find repeated sequences
  • πŸš€ Zero dependencies - Single binary MCP server
  • πŸ”§ Extensible - Create custom capabilities with markdown
  • πŸ’‘ Prompt Learning System - Save, search, and reuse optimized prompts with project-specific intelligence

Skills (16 Validated Methodologies)

meta-cc includes proven methodologies for systematic software development:

  • Testing Strategy - TDD, coverage-driven gap closure, CLI testing (3.1x speedup, 89% transferable)
  • CI/CD Optimization - Quality gates, release automation, smoke testing (2.5-3.5x speedup)
  • Error Recovery - 13-category taxonomy, diagnostic workflows (95.4% error coverage)
  • Dependency Health - Security-first, batch remediation (6x speedup)
  • Knowledge Transfer - Progressive learning paths, onboarding (3-8x ramp-up reduction)
  • Technical Debt Management - SQALE methodology, prioritization (4.5x speedup)
  • Code Refactoring - Test-driven refactoring, complexity reduction (28% complexity reduction)
  • Cross-Cutting Concerns - Error handling, logging, configuration (60-75% faster diagnosis)
  • Observability - Logs, metrics, traces, structured logging (23-46x speedup)
  • API Design - 6 validated patterns, parameter categorization (82.5% transferable)
  • Documentation Management - 5 templates, 3 patterns, automation tools (93% transferable, 3-5x faster creation)
  • Methodology Bootstrapping - BAIME framework (10-50x speedup, 100% success rate)
  • Agent Prompt Evolution - Agent specialization tracking (5x performance gap detection)
  • Baseline Quality Assessment - Rapid convergence enablement (40-50% iteration reduction)
  • Rapid Convergence - 3-4 iteration methodology development (40-60% time reduction)
  • Retrospective Validation - Historical data validation (40-60% time reduction, 60-80% cost reduction)

Usage: Skills are automatically available after installation. Claude Code will suggest relevant skills based on your tasks.

See Feature Overview for detailed documentation.


Development

Prerequisites

  • Go 1.21 or later
  • make

Build from Source

git clone https://github.com/yaleh/meta-cc.git
cd meta-cc
make build-mcp  # Build MCP server

Development Workflow (3-Tier)

Use the optimized 3-tier workflow for efficient development:

make dev           # Quick dev build (format + build, <10s)
make commit        # Pre-commit validation (workspace + tests, <60s)
make push          # Full check before push (all checks + lint, <120s)

Workflow:

  1. Iterate: Use make dev for fast feedback during development
  2. Commit: Run make commit to validate before committing
  3. Push: Run make push for full verification before pushing to remote

Run Tests

make test           # Unit tests (fast)
make test-all       # Including E2E tests (~30s)
make test-coverage  # With coverage report

Coverage Requirement: Maintain β‰₯80% test coverage for all code changes.

Create Custom Capabilities

Create a capability file:

mkdir -p ~/my-capabilities
cat > ~/my-capabilities/my-feature.md <<'EOF'
---
name: my-feature
description: My custom analysis
keywords: custom, analysis
category: analysis
---

# My Custom Feature

Analyze custom patterns in session data using MCP tools.

## Implementation

Ask Claude to query session data using MCP tools:
- query_tools for tool analysis
- query_user_messages for message search
- get_session_stats for statistics

## Usage

Run with `/meta "my feature"`
EOF

Use immediately:

export META_CC_CAPABILITY_SOURCES="~/my-capabilities:commands"
/meta "my feature"

See Capabilities Guide for complete documentation.


Platform Support

  • Linux (amd64, arm64)
  • macOS (Intel, Apple Silicon)
  • Windows (amd64)

Contributing

We welcome contributions! Please see:


License

MIT License - See LICENSE file for details.

About

Meta-Cognition tool for Claude Code - analyze session history for workflow optimization.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •