AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Claude Code 메타인지 도구, 세션 기록을 분석해 워크플로우 최적화
Meta-Cognition tool for Claude Code - analyze session history for workflow optimization.
개발 도구Go · ShellGitHub @yaleh직접 설치운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
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.
meta-cc helps you understand and improve your Claude Code and Codex workflows through:README 전문 보기 ↗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.
meta-cc helps you understand and improve your Claude Code and Codex workflows through:
Native host integrations - Claude Code marketplace/archive support plus Codex plugin and skills packaging.
/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:
/prompt-find, /prompt-list, /prompt-show for prompt library managementFull 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.
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.
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.
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:
// Session discovery - metadata-first: list sessions without loading turn content
query_sessions({limit: 10}) // what sessions exist in this project
// Discovery-to-content: target one discovered session by exact ID
query_session_content({role: "user", session_id: "<id from query_sessions>"})
// Consolidated query tools - cover the most common access patterns
query_session_signals({type: "errors", limit: 10}) // tool execution errors
query_session_signals({type: "tokens", stats_first: true}) // token usage stats
query_session_content({role: "user", pattern: "refactor"}) // user messages
query_session_content({role: "tool", block_type: "tool_use"}) // tool calls with context
query_file_activity({type: "snapshots"}) // file history
// Two-stage jq - maximum flexibility for power users
const dir = get_session_directory({scope: "project"})
execute_stage2_query({
files: dir.files,
filter: 'select(.type == "assistant")',
transform: '{timestamp, usage: .message.usage}'
})
// Analysis tools - aggregate and detect patterns
analyze_errors({}) // Aggregate errors by tool and type; result includes data_source field
quality_scan({}) // Compute error/retry/diversity scores
get_work_patterns({}) // Hourly activity and context switches
get_timeline({}) // Chronological session events
analyze_bugs({}) // Error-fix pairs and recurring patterns
get_tech_debt({}) // TODO/FIXME markers and unresolved errors
query_edit_sequences({files: ["/path/to/file.go"]}) // File edit/read patterns, docRole, co-accessed docs
get_session_metadata({}) // JSONL schema, file info, and query templates
Key Features:
~/.claude/projects/ and Codex conversations from the highest-compatible state_N.sqlite under the canonical Codex root (META_CC_CODEX_ROOT → CODEX_HOME → ~/.codex) plus rollout JSONL files, with a rollout-only fallback when no compatible database existsprovider: "claude" | "codex" | "all" on query and analysis tools; omitted provider resolves to the host that launched the MCP server (claude for standalone installs). Codex response_item, event_msg, function/custom tool calls, tool outputs, and token counts are normalized through the same MCP surfaceoutput_mode parametersince/until (RFC3339) on all query_session_content roles, all query_session_signals types, and get_timeline; query_sessions filters with created_since/created_untilmeasured (from session data) or estimated so callers know data provenanceResources:
auto/app_server/files)Save and reuse your best prompts with 3 built-in Claude Code slash commands or Codex skills:
/prompt-find phase execution # Search by keywords
/prompt-list sort=usage # Browse all (sorted by use)
/prompt-show phase-execution-001 # View full prompt details
plugin-src/.codex-plugin/plugin.json, plugin-src/.codex-mcp.json, and plugin-src/skills/*/SKILL.mdComplete documentation map: DOCUMENTATION_MAP.md
prompt-find, prompt-list, prompt-show)since/until time filtering on all query and signal paths + get_timelinedata_source provenance fieldgo directive in go.mod)git clone https://github.com/yaleh/meta-cc.git
cd meta-cc
make build
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:
make dev for fast feedback during developmentmake commit to validate before committingmake push for full verification before pushing to remotemake test # Unit tests (fast)
make test-e2e-codex # Codex install/session E2E
make test-all # Including MCP and Codex E2E tests (~30s)
make test-coverage # With coverage report
Coverage Requirement: Maintain ≥80% test coverage for all code changes.
We welcome contributions! Please see:
MIT License - See LICENSE file for details.