distill-feedback

Solid

Turn captured user-correction signals into durable rules (learn-from-corrections loop). Use when - /distill-feedback, "process feedback queue", "what corrections did I give you", "encode lessons from my corrections", session-feedback-capture queued sessions, "обнови правила по моим поправкам", "разбери очередь обратной связи". Reads ~/.claude/feedback/queue.jsonl, LLM-semantically detects durable corrections, proposes atomic rules, applies human-gated via delta-merge. Do NOT use to act on a single in-session correction (just apply the fix directly) or to hand-edit settings.json behaviors; this only mines the queued feedback backlog into durable rules.

AI & Automation 138 stars 20 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
71
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# distill-feedback — close the learn-from-corrections loop The Stop hook `session-feedback-capture.py` queues finished sessions into `~/.claude/feedback/queue.jsonl`. This skill processes that queue: it finds the user turns that were **durable corrections** of the agent's work and turns them into rules — so the same correction never has to be given twice. **Why LLM-semantic, not keywords:** we independently tested a keyword detector. It scored F1 **0.42** on held-out cases and missed ~60% of real corrections (every keyword-free one, e.g. "в следующий раз лучше через python"). An LLM applying the rubric below scored F1 **0.97** on the same set. So detection is semantic. Evidence: `knowledge/agent-systems/self-learning-agents/effectiveness-test/RESULTS.md` (in the private hub). **Why human-gated:** ACE (arXiv 2510.04618) and TRACE (arXiv 2606.13174) both warn that a noisy extractor poisons the rule set. Altering durable rules is also above the auto-act line (`autonomy-risk-tiers.md`). So this skill **proposes**; the user approves before anything is written. ## Procedure ### 1. Extract the queue (deterministic) ```bash python ~/.claude/skills/distill-feedback/scripts/extract_feedback_queue.py --limit 8 ``` Returns JSON: `{pending, sessions:[{session_id, cwd, ts, user_turns:[...]}]}`. `--limit` bounds the LLM pass (billing: distillation is opt-in, not every-session). If `pending` is 0, stop — nothing to do. ### 2. Detect durable corrections (LLM-semantic, prefer a fresh sub...

Details

Author
AnastasiyaW
Repository
AnastasiyaW/claude-code-config
Created
5 months ago
Last Updated
1 months ago
Language
Python
License
MIT

Bundled in these plugins

Related Skills