byan-insight
Harvest the native Claude Code outcome trails (tool-log, strict-audit gaps, suitability ledger, ELO) into a GATED self-improvement digest for BYAN. Invoke when the user asks "what did this session teach BYAN", "insight digest", "self-improvement", "qu'est-ce que BYAN a appris", or wants to review recurring gaps / routing outcomes / tool health before deciding what to improve. Observe and propose; the human ratifies each change.
- License 许可
- MIT
- 最近更新
- 2026-09-14
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- byan-insight
- description
- Harvest the native Claude Code outcome trails (tool-log, strict-audit gaps, suitability ledger, ELO) into a GATED self-improvement digest for BYAN. Invoke when the user asks "what did this session teach BYAN", "insight digest", "self-improvement", "qu'est-ce que BYAN a appris", or wants to review recurring gaps / routing outcomes / tool health before deciding what to improve. Observe and propose; the human ratifies each change.
02 资源文件 11
- 参考文档client-api.md31.9 KB
- 许可证LICENSE1.0 KB
- 参考文档options.md3.1 KB
- 参考文档portfolio.md2.9 KB
- 参考文档reference.md39.4 KB
- 参考文档research.md2.4 KB
- 参考文档setup.md6.2 KB
- 参考文档SOURCE.md454 B
- 参考文档trade.md10.9 KB
- 参考文档TRUST.auto.yaml2.2 KB
- 参考文档watchlists.md7.2 KB
03 SKILL.md 正文
BYAN Insight Loop (gated self-improvement)
BYAN already has advisory learning surfaces (ELO trust, the suitability ledger, soul-memory) and the native Claude Code hooks already leave outcome trails on disk. This skill closes the loop: it READS those trails, aggregates them into a digest, and surfaces GATED proposals. It does not modify a behavior surface.
The one hard rule: observe and propose, do not silently self-modify
An agent that rewrote its own routing, personas, or mantra thresholds on a heuristic would be the exact silent-downgrade BYAN exists to prevent. So this loop stops at a PROPOSAL. Applying a change (a routing tweak, a new checklist item, a persona edit) stays a human decision — ideally run as its own FD. The advisory data (ELO, suitability) is read-only here; behavior surfaces are left to the human gate.
Protocol
- Harvest. Call the MCP tool
byan_insight_digest(read-only, no args). It returns{ gated: true, digest, render }wheredigestis{ toolHealth, recurringGaps, routingOutcomes, eloTrends, proposals }.toolHealth: call count, failure rate, top failing tools, output-token cost (from_byan-output/tool-log.jsonl).recurringGaps: clustered self-verify gap themes with counts (from.byan-strict/audit.log) — what BYAN keeps missing.routingOutcomes: per cheap-model x leaf keep-rate (from the suitability ledger) — where a downgrade is proven good or bad.eloTrends: per-domain trust rating.proposals: conservative, GATED suggestions (eachgated: true).
- Present. Show the
rendertext, then the proposals as a numbered list. Make explicit that nothing has been applied. - Gate. For each proposal the user accepts, run the change as its own scoped work (a short FD for a behavior change; a direct edit for a doc/checklist). Do not auto-apply a proposal.
CLI equivalent
node _byan/mcp/byan-mcp-server/bin/byan-insight-digest.js [--root <dir>] [--json]
Prints the human-readable digest, or the raw JSON with --json. Self-disables
(empty digest) when the trails are absent, so a fresh checkout is not an error.
What it deliberately leaves alone
- It does not call
byan_elo_record/byan_suitability_recordfor you (those stay where the outcome actually happens, e.g. a VALIDATE pass). - It does not edit
lib/dispatch.js,native-tiers.js, a persona, or the mantra thresholds. Those are behavior surfaces; a proposal names them, a human changes them.
04 同仓库更多 Skills
byan
BYAN local project skill. Use when working in the BYAN repo, invoking BYAN agents/workflows/commands, enforcing BYAN Strict Mode, or needing the portable BYAN filesystem map.
byan-yanstaller
Yanstaller - Multi-Platform BYAN Installer Agent Role: Installation Expert + Platform Detection Specialist + Zero-Config Automation. Invoke when user mentions : AUTO, DETECT, HELP, EXIT.
byan-tea-tea
tea agent
byan-suitability
Advisory model-suitability ledger — record adversarial verdicts, read learned ratings, human decides downgrades
byan-strict
Enforcement mode that prevents scope downgrade and forces the agent to self-verify its work against the originally locked request before delivering. Invoke when the user asks for a production deliverable, a complete app, a filled contract from a template, or uses any activation keyword (`prod`, `production`, `client`, `contrat`, `template officiel`, `livrable`, `deliverable`, `mise en production`, `release`). Enforces scope-lock, N>=3 self-verify passes, and a 95% confidence floor on hard claims.
byan-skeptic
Scientific Claim Challenger and Epistemic Guard