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

transcript

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package transcript reads the few facts the status line takes from a session transcript.

Transcripts can be enormous, so only the first and last few lines are read, each within a byte bound.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// ActualModel is the model of the latest assistant turn in the last 200 lines.
	ActualModel string
	// Boot is the prompt size of the first assistant turn.
	Boot int64
	// SkillsChars is the length of the first skill listing.
	SkillsChars int
	// SkillsBare and SkillsTotal count the skills in the initial listing that lost their description, and all listed.
	SkillsBare, SkillsTotal int
	// MemDropped reports a SessionStart hook whose output was too large to inject.
	MemDropped bool
	// SubBare and SubTotal are the same counts for the subagent with the most stripped skills.
	SubBare, SubTotal int
}

Info is what a transcript reveals; every field is zero when it is absent or unreadable.

func Read

func Read(path string) Info

Read gathers Info from the transcript at path. An empty path or any read error yields the zero Info.

func (*Info) BootTokens

func (i *Info) BootTokens() int64

BootTokens is the prompt size of the first assistant turn.

func (*Info) LatestModel

func (i *Info) LatestModel() string

LatestModel is the model of the latest assistant turn in the last 200 lines.

func (*Info) MemoryDropped

func (i *Info) MemoryDropped() bool

MemoryDropped reports a SessionStart hook whose output was too large to inject.

func (*Info) SkillCounts

func (i *Info) SkillCounts() (bare, total int)

SkillCounts is how many skills in the initial listing lost their description, and how many are listed.

func (*Info) SkillListChars

func (i *Info) SkillListChars() int

SkillListChars is the length of the first skill listing.

func (*Info) SubagentSkillCounts

func (i *Info) SubagentSkillCounts() (bare, total int)

SubagentSkillCounts is the same for the subagent with the most stripped skills.

Jump to

Keyboard shortcuts

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