Skip to content

Use Lore

How project memory works

Stored does not mean supplied on every request. Lore keeps a record that can be searched and selects material for the current task within its context budget.

For each request, Lore composes context from eligible material.
  • Recent conversationThe current work, kept in detail
  • Distilled contextCompressed observations from older work
  • Relevant knowledgeProject rules selected for this task
Current request

Material supplied to the agent within its scope and context budget.

Stored history remains searchable through recall. Saving a conversation does not mean sending all of it on every request.

Stored conversation
Original messages and tool results, available for later search. Inspect them in Sessions.
Distilled context
Compressed observations from older work. Inspect session context and distillation views.
Project knowledge
Durable decisions, patterns and lessons. Review them in Knowledge and .lore.md.
Current context
The material composed for a particular request. Inspect session context where recorded.

You discuss duplicate webhook deliveries. That conversation also mentions a temporary test port. A curated entry might retain the event-ID rule as project knowledge. Later, a webhook task can use that rule; the temporary port is unrelated to the task.

This is an illustration of relevance, not a promise that every curation run produces exactly this entry or that every request includes it. Selection also depends on scope, confidence, available task context, and token budget.

Recent work remains available while older context can be distilled and compressed. Original details can remain searchable beyond what currently fits in the prompt. A summary is lossy: use recall and source history when exact details matter.

Read knowledge before treating it as a project rule. Correct inaccurate entries, review .lore.md changes, and inspect the source. Everyday review workflow.

For the request pipeline, storage layers, and context-budget rules, see the architecture reference. To adjust relevance behavior, see tune knowledge injection.