/harness:distill-feedbackfrom Harness (обвязка)
Processes queued user corrections from ~/.claude/feedback/queue.jsonl into durable rules via LLM-semantic analysis, preventing repeated mistakes.
Ships in Harness (обвязка). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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 semantic review: standing preferences depend on context, not a trigger-word count.
The formerly cited private effectiveness-test/RESULTS.md was absent when checked on
2026-09-06; its F1 claims are withdrawn from this skill until the dataset, labels, model,
held-out split and raw predictions can be inspected. The rubric below is a review method,
not a demonstrated accuracy guarantee. Do not substitute another paper's scores for our own.
Research and authority: ACE studies evolving context;
TRACE studies compiling corrections into runtime checks.
Neither proves this local extractor's accuracy. The approval boundary comes from our
applicable user instructions and autonomy-risk-tiers.md, not an inferred paper mandate.
New standing rules are proposals; an already authorized correction to an existing rule
can be implemented within that exact authority. Codex memory changes also require the
separate explicit user request and supported memory-update channel.
python "${CLAUDE_SKILL_DIR}/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.
For independence (Generator-Evaluator), spawn a sub-agent with the rubric below and the
extracted user_turns. Ask it to return, per genuine correction: {quote, durable_rule, applicability_condition, confidence, session_id}. Pass only the turns — not your own reasoning.
RUBRIC — a user turn is a DURABLE CORRECTION if the user pushes back on / redirects the agent's behavior in a way that implies a STANDING preference or a mistake to avoid in future:
NOT a durable correction: new feature/task request · diagnostic question ("why did the build fail?", "почему-то падает") · factual/info statement even with "should be / by default / never" ("deploy should be done in 5 min", "по умолчанию там 8080") · agreement ("actually that makes sense, go ahead") · reassurance ("don't worry about the tests") · praise-only · off-topic chatter.
For each detected correction: write it as ONE atomic rule with an applicability condition. Dedup
against existing rules/memory (grep ~/.claude/rules/ and the project memory) — if it is already
a rule, skip or propose an EDIT, not a new ADD. Cluster duplicates across sessions into one rule.
Show the user a compact table: each proposed rule + its applicability condition + source quote +
target file + action (ADD new / EDIT existing / SUPERSEDE old / SPLIT). If that exact change
is not already authorized, ask for approval and retain the proposal. Do not repeatedly
request permission already given for the same in-scope correction. New always-on rules,
SUPERSEDE and DELETE require the applicable explicit authority.
On approval, apply each accepted delta with the ACE discipline from memory-maintenance.md:
addressable ADD/EDIT only, dedup, preserve nuance (no full-file rewrite). Put it in the right home
(file-organization-cohesion.md): a global rule → ~/.claude/rules/, a project-specific lesson →
that project's memory/CLAUDE.md. If the rule is mechanically checkable (file-name shape,
forbidden command, tool-call form), note that it should graduate to a hook/validator (deterministic
tier beats prose — learn-from-corrections.md). When it lands in a hook, add a refuse/act pair to
evals/hooks/cases.json ("kind": "regression", "source" = date and the correction) and check it
with python evals/hooks/run_hook_evals.py --trials 3: the real failure becomes a regression case.
First account for every selected queue item: inspected transcript, accepted/rejected
corrections and their resulting artifact, or an explicit unresolved evidence gap.
The extractor's pending is the selected window when --limit is used, not whole-queue
completion. A missing/unreadable transcript is not processed; locate the canonical
private chat archive by session id and inspect the recovered transcript before closing it.
Only ids actually reconciled in this pass go into the following command:
python "${CLAUDE_SKILL_DIR}/scripts/extract_feedback_queue.py" --mark-processed <session_id> ...
Appends to processed.jsonl (append-only; the queue is never rewritten). The SessionStart nudge
count drops accordingly.
--limit, run it on-demand (not a hook),
and prefer a cheaper model for the detection sub-agent (the rubric is not hard reasoning).pending: N but sessions: [] → all N transcripts are missing/unreadable;
diagnose/recover those specific ids and retain unresolved ones; do not mark them processed.touch ~/.claude/.skip-feedback-capture (or
CLAUDE_SKIP_FEEDBACK_CAPTURE=1); the Stop hook then no-ops.rules/learn-from-corrections.md — the protocol + the evidence behind LLM-semantic + human-gaterules/memory-maintenance.md — the delta-merge (ACE) discipline step 5 reuseshooks/session-feedback-capture.py (Stop, capture) · hooks/feedback-pending-show.py (SessionStart, nudge)What SKILL.md sets; muted values are Claude Code's defaults
60 skills in this plugin
/agent-harness-designDesigning agent harnesses and tool systems — risk taxonomy for tools, permission decisions, draft/commit pattern, structured tool results, agent budgets (10 types), context trust labels against prompt injection, plan-artifact, approval records, observability and traces, evals (13 categories), event model, streaming buffering, 3rd-party skill install checklist, agentic RAG, self-improving SOP loops, model policy, reasoning effort, and Programmatic Tool Calling adoption gates. Use when building a new Agent SDK app, custom orchestrator, MCP server, Cloudflare Worker with tool calls, agentic RAG pipeline, model router, or model-tier policy; when designing tools and permissions; when writing an agent loop; or when you need trust labels for external content. Do NOT use for improving or auditing an already-built harness (use harness-audit / harness-design instead), nor for ordinary Claude Code sessions where the harness is already given./agents-best-practicesUse when designing, auditing, refactoring, or explaining an agentic harness for any domain, especially when work must continue from a measured gap to verified completion. Covers provider-neutral loops, tools, permissions, environment adaptation, planning, durable workflow state, context, skills, observability, evals, and safety for OpenAI, Anthropic, and compatible APIs. Not for implementing an ordinary app feature or reviewing one concrete diff.npx claudepluginhub anastasiyaw/codex-claude-code-config --plugin harnessOther plugins' skills for the same job