/** * `/learn` — promote what recent sessions actually taught into durable rules * and skills. * * The command is a thin shell on purpose. It runs the mining pipeline over * session transcripts on disk, renders the ranked result, and injects it as a * follow-up message; every judgement after that belongs to the model, which can * read the repo and phrase a rule far better than a heuristic can. * * Reading transcripts from disk rather than the live context is what makes this * work: the on-disk history survives compaction, and it spans past sessions, so * "you have said this in five separate sessions" is available as a number * instead of a guess. That number is the whole reason the command exists. * * The pipeline reads every transcript with a model rather than pre-filtering * with regexes, which costs real tokens on a cold cache. That price is stated * before it is paid, never inferred: a run with sessions to read asks first. * * Follows /grill in modes.ts: no session switch, no mode change, no config * write — just a follow-up message. Writes to AGENTS.md happen through ordinary * edit tools, so the existing permission prompt is the approval step and no * separate picker is needed. */ import type { ExtensionAPI } from "../../core/extensions/types.js"; export declare function setupLearn(hoo: ExtensionAPI): void; //# sourceMappingURL=learn.d.ts.map