meta-cc

Meta-cognition tool for Claude Code and Codex - Analyze session history, detect patterns, optimize workflows. 16 MCP tools.
Note: Skills and agents from previous versions have been moved to yaleh/baime. meta-cc 3.0.0 focuses exclusively on session history analysis via MCP tools.
What is meta-cc?
meta-cc helps you understand and improve your Claude Code and Codex workflows through:
- Autonomous analysis - Claude Code or Codex can query session data via MCP tools
- 16 MCP tools - Error analysis, quality scanning, work patterns, timelines, bug detection, edit sequence analysis, and more
- Prompt library - Save, search, and reuse optimized prompts with Claude Code slash commands or Codex skills
Native host integrations - Claude Code marketplace/archive support plus Codex plugin and skills packaging.
Quick Install
Method 1: Claude Code Plugin Marketplace (Recommended for Claude Code)
/plugin marketplace add yaleh/meta-cc
/plugin install meta-cc
Restart Claude Code. The MCP server is automatically configured via .mcp.json bundled in the plugin.
The meta-cc plugin includes:
- 3 Slash Commands -
/prompt-find, /prompt-list, /prompt-show for prompt library management
- 16 MCP Tools - Session data analysis with consolidated query and two-stage architecture
Method 2: Archive Install (Claude Code + Codex)
Full install (MCP server + Claude Code commands + Codex skills):
# 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
The archive installer copies the binary and integration files, installs Claude Code commands under ~/.claude/commands/, installs Codex skills under ~/.codex/skills/, and merges the Claude Code MCP server configuration into ~/.claude/mcp.json. Codex users get plugin metadata under ~/.codex/plugins/meta-cc/ with bundled .codex-plugin/plugin.json and .codex-mcp.json.
Prompt-library commands/skills only (no binary required, any platform):
curl -L https://github.com/yaleh/meta-cc/releases/latest/download/meta-cc-skills-latest.tar.gz | tar xz
cd meta-cc-skills-*/
./install-skills.sh
Use INSTALL_CLAUDE=0 or INSTALL_CODEX=0 to install one host only.
Method 3: Codex Plugin Marketplace (Recommended for Codex CLI 0.145+)
codex plugin marketplace add . # from an extracted release archive, or a git checkout of this repo
codex plugin add meta-cc@meta-cc-marketplace
Verify with codex plugin list --json and codex mcp list (expect exactly
one meta-cc entry), then start a new Codex session — a running
session cannot hot-load a plugin installed after it started. For the
minimal MCP-only fallback (codex mcp add), upgrade/uninstall flows, and
troubleshooting duplicate registrations, see
Installation Guide: Method 1b.
MCP server binary only (for CI/Docker/PATH installs):
# Download the bare binary for your platform, e.g. Linux amd64:
curl -LO https://github.com/yaleh/meta-cc/releases/latest/download/meta-cc-mcp-linux-amd64
chmod +x meta-cc-mcp-linux-amd64
INSTALL_DIR=~/.local/bin bash scripts/install/install-mcp.sh meta-cc-mcp-linux-amd64
Other platforms: See Installation Guide for macOS (Apple Silicon), Windows, and manual installation.
Verify Installation
In Claude Code or Codex, ask naturally:
"Show me all Bash errors in this project"
"Which tools do I use most often?"
"Find user messages mentioning 'refactor'"
Troubleshooting: See Installation Guide for common issues.
Quick Start
Autonomous Analysis (MCP)
Ask Claude Code or Codex 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?"
"Scan session quality and show me scores"
"Show my work patterns and peak hours"
"Find bug fix pairs in my session"
16 MCP tools: consolidated query tools, two-stage jq, and analysis tools: