Help us shape the future of Go! Take the 2026 Go Developer Survey

insights

package
v0.234.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator distills past sessions into a markdown report: which workflows repeat often enough to deserve a skill, and which tool calls keep failing the same way. Counts and error strings are computed here; the model only interprets them, because a model asked to both count and interpret will confidently invent the counts.

func New

func (*Generator) Available

func (g *Generator) Available() bool

Available reports whether the generator has everything it needs. The metadata registry builds shortcuts with nil dependencies and storage can be disabled.

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context, since time.Time, progress io.Writer) (markdown, path string, err error)

Generate reads the sessions, asks the model to interpret them, and writes the report to ~/.infer/insights. Each step is announced on progress as it starts, because the model call alone can run for minutes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL