Skip to main content

mine-transcripts

Mine real human CLI conversation transcripts into labeled training data for bridge/classifier improvement.

소스 정보

저장소
grahama1970/agent-stack-public
최근 소스 활동
2026년 9월 24일 15:51
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
17 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mine-transcripts
description
Mine real human CLI conversation transcripts into labeled training data for bridge/classifier improvement.
triggers
["mine transcripts","extract training data","mine conversations"]
allowed-tools
["Bash","Read"]
metadata
{"short-description":"Mine CLI transcripts for classifier training"}
provides
["mine-transcripts"]
composes
["task-monitor","agentic-evals"]
disciplines
["data-engineering","ml-training"]
# mine-transcripts Mine real human conversations from CLI agents for bridge classifier training. ## Purpose Train the bridge classifier on REAL human communication patterns, not synthetic templates. This enables personas like Embry to find the RIGHT experts when using /ask. **Two-tier training approach:** 1. **Developer (Graham)** - baseline attunement to real communication patterns 2. **Client** - specific adaptation to individual users ## Integration ``` ┌─────────────────────────────────────────────────────────────────┐ │ DATA SOURCES │ ├─────────────────────────────────────────────────────────────────┤ │ ~/.claude/projects/ Claude CLI conversations │ │ ~/.codex/history.jsonl Codex CLI (pure human input!) │ │ ~/.codex/sessions/ Codex session transcripts │ │ ~/.gemini/ Gemini CLI (if exists) │ │ ~/.pi/ Pi CLI (if exists) │ └─────────────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────────┐ │ /mine-transcripts │ ├─────────────────────────────────────────────────────────────────┤ │ 1. Extract real human messages (filter system prompts) │ │ 2. Label with /taxonomy bridge extraction │ │ 3. Detect emotional state (satisfied/frustrated) │ │ 4. Deduplicate against /memory │ │ 5. Store unique examples for classifier training │ └─────────────────────────────────────────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────────────────┐ │ /create-classifier (bridge classifier) │ │ │ │ │ ▼ │ │ persona_router.py │ │ │ │ │ ▼ │ │ Embry /asks the RIGHT personas │ └─────────────────────────────────────────────────────────────────┘ ``` ## Dependencies - **/taxonomy** - Bridge label extraction (Precision, Resilience, Fragility, Corruption, Loyalty, Stealth) - **/memory** - Deduplication against existing lessons, optional storage; mined skill chains must be written through `chain-learn` into typed `skill_chains` - **/episodic-archiver** - Emotional context from archived sessions - **/scheduler** - Nightly runs ## Usage ```bash # Mine from all CLI agents ./run.sh mine --all-agents # Mine with deduplication against existing training data ./run.sh mine --all-agents --dedupe # Mine and store classifier examples to memory (creates lessons) ./run.sh mine --all-agents --store-memory # Mine and store skill chains to typed /memory skill_chains records ./run.sh mine-chains --all-projects # Analyze coverage of existing training data ./run.sh analyze data/mined.jsonl # Export for human review ./run.sh export --sample 500 --output for_review.jsonl ``` ## Output Training data in JSONL format: ```json {"text": "the font size is too small for 10ft viewing", "labels": ["Precision", "Fragility"]} {"text": "perfect, that fixed the issue!", "labels": ["Resilience", "Loyalty"]} ``` Skill-chain mining writes JSONL records such as: ```json {"request": "Fix a memory bug", "chain": ["/memory", "/checkpoint"], "project": "memory", "source": "session.jsonl"} ``` When storage is enabled, those chains are written with `/memory chain-learn`. They must not be stored as ordinary `/memory learn` lessons, because `recall --brief`, `chain-recall`, and `/recommend-skill-chain` read the typed `skill_chains` collection. ## Emotional Context Messages are enriched with emotional detection: - **Satisfied** signals → Resilience, Loyalty bridges - **Frustrated** signals → Fragility bridge - **High satisfaction** → Both Resilience AND Loyalty This helps the classifier understand that "works great!" indicates system resilience and good collaboration (Loyalty). ## Scheduler Integration Registered as `transcript-mining-nightly`: - Runs at 4:30am daily - Deduplicates against existing training data - Feeds into `bridge-classifier-retrain` at 5am Skill-chain mining should run as the chain backfill lane and write typed `skill_chains`; classifier mining remains the lesson/training-data lane. ## Triggers - `mine transcripts` - `extract training data` - `mine conversations` - Nightly via /scheduler
GitHub에서 보기