Documentation
¶
Overview ¶
Package lessons stores what agents learn as plain markdown files under .dibs/lessons/ — committed, diffed, and reviewed like any other file in the repository. Memory that travels with the repo: your team and your CI agents get it through `git pull`, not through a database.
Search is classic BM25 over title, tags, and body. For the few hundred lessons a real repository accumulates, a lexical index built on demand is instant, deterministic, and needs no embedding model, no vector store, and no background process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hit ¶
type Hit struct {
Lesson Lesson `json:"lesson"`
Score float64 `json:"score"`
Snippet string `json:"snippet,omitempty"`
}
Hit is a search result.
type Lesson ¶
type Lesson struct {
Slug string `yaml:"-" json:"slug"`
Title string `yaml:"title" json:"title"`
Tags []string `yaml:"tags,omitempty" json:"tags,omitempty"`
Agent string `yaml:"agent,omitempty" json:"agent,omitempty"`
CreatedAt time.Time `yaml:"created" json:"created_at"`
Body string `yaml:"-" json:"body"`
}
Lesson is one piece of durable knowledge.
Click to show internal directories.
Click to hide internal directories.