autosnippet
Version:
Extract code patterns into a knowledge base for AI coding assistants
21 lines (20 loc) • 596 B
TypeScript
#!/usr/bin/env npx tsx
/**
* analyze-signals.ts — JSONL Signal Analyzer
*
* Reads intent chain records from .autosnippet/logs/signals/*.jsonl and produces
* summary analytics for evaluating the Intent Pipeline effectiveness.
*
* Usage: npx tsx scripts/analyze-signals.ts [project-root]
*
* Metrics:
* 1. Recipe coverage rate
* 2. Scenario distribution
* 3. Multi-query benefit (filtered count)
* 4. Language distribution
* 5. Drift → violation correlation
* 6. Task completion rate
* 7. Average intent duration
* 8. Search → drift correlation
*/
export {};