Skip to content
GitHub

GuideKnowledge

Learnings

In the panel: Knowledge › Learnings/knowledge/learningsNeeds knowledge:read

See the one-sentence rules Holtkeeper learns from replies to its review comments, from merged merge requests and from agents, approve or reject them before they activate, and watch which ones earn their place.

A learning is a short imperative rule with its sources. Learnings are kept apart from the rules people write: agents read them last, under a Learned rules heading, and follow them unless a written rule says otherwise. Approval is a delay, not a gate, and a learning nothing confirms expires.

In the panel · Knowledge › Learnings
KnowledgeLearningsRules9Learnings4Status: pending, activeRepository: anyNew learning
2 pending · also in Inbox14 active1 expires within 14 days
Learning Scope Origin Sources Uses · acted on Votes Status
Do not flag any under src/legacy/; it is typed in ABC-210. acme/round/api Review reply 3 0 · 0 — Activates in 2 days Approve Reject
Use formatMoney from @acme/widget-kit for prices in UI. acme/round/web Rule miner 4 0 · 0 — Activates in 1 day Approve Reject
Snapshot tests need a fixed seed. Team Widgets Agent 2 9 · 6 👍 3 Active · expires in 71 days Edit
Put new hooks in src/hooks/, one per file. acme/round/web Person 1 2 · 1 — Active · expires in 9 days Edit
Origin How
Review reply Someone replies to a Holtkeeper review comment with a lasting rule: “we don’t do X here”, “this is intentional because…”, “don’t flag this”. Thanks, “fixed” and questions never pass a cheap filter; a small AI call turns the rest into one sentence without names.
Rule miner The rule-miner analyzer reads the review threads of merged merge requests and keeps the comments that led to a code change. At most 10 learnings on a repository’s first run, then at most 5 every 14 days.
Agent A coding agent calls propose_learning over MCP with the rule, a reason and optionally the files it is about. No AI call is made.
Person New learning with knowledge:write. It is active at once.

A new learning that repeats an existing one (the same text, or most of the same words) creates nothing: its sources are merged into the existing learning, which counts as a confirmation.

Example · Merge request !1204 · acme/round/api
Holtkeeperminorsrc/legacy/session.ts · line 12

Avoid any. The return type is any; give it a concrete type.

Ivo P.

Files under src/legacy/ are typed in ABC-210, please don’t flag any there until then.

A reply that becomes a learning.

Status Meaning
Pending New. It waits learnings.approvalDelayDays (default 3), then becomes active by itself. People with knowledge:write approve or reject it earlier here or in the Inbox.
Active Agents read it.
Expired It went learnings.expiryDays (default 90) without being confirmed and left the prompts. A confirmation brings it back.
Rejected Never used. A rejected learning still catches duplicates, so the same rule is not learned again.

A learning is confirmed when a review comment citing it gets fixed, when someone reacts 👍 to such a comment, or when a new source teaches the same rule. Both settings are in Settings › Policies on the Learnings card; a delay of 0 activates new learnings at once.

Click a row to open it.

In the panel · Knowledge › Learnings › Snapshot tests need a fixed seed.
Snapshot tests need a fixed seed.

Active

3 of 14

Edit

Reject

Reason
Snapshots with random ids fail on every second CI run.
Scope
Team Widgets · files **/*.test.tsx
Sources
!318 acme/round/web · !77 acme/square/web
Uses
9 review comments cited it · 6 were fixed
Votes
👍 3 · 👎 0
Expires
in 71 days · last confirmed 19 days ago
  • Sources link to the merge request notes that taught it.
  • Uses counts review comments that cited it ([learn:<id>]); acted on counts those whose finding was fixed.
  • Edit changes the text, scope and files. Reject takes it out of the prompts.

Active learnings are ranked by fixed citations, uses, votes and sources, then by how recently they were confirmed. They share at most 3,000 of the prompt’s 12,000 characters; the lowest ranked are dropped whole, and the effective prompt shows which.