insights

package
v0.264.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redact added in v0.254.0

func Redact(s string) string

Redact masks secrets in text that is about to leave the machine for a model.

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