Skip to main content

mine-transcripts

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

Quellinformationen

Repository
grahama1970/agent-stack-public
Letzte Quellaktivität
24. September 2026 um 15:51
Erkannte Sprache von SKILL.md
Englisch
Sterne
0
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
17 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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
Auf GitHub ansehen