Versions in this module Expand all Collapse all v0 v0.1.1-nightly.202606060822.62e7189 Jun 5, 2026 v0.1.1-nightly.202606050928.887b5b7 Jun 5, 2026 v0.1.1-nightly.202606031041.bfdcdd4 Jun 2, 2026 v0.1.1-nightly.202606021001.5d71430 Jun 2, 2026 v0.1.0 Jun 2, 2026 Changes in this version + const DisabledMessage + const TraceDir + const TraceMetadataDir + const TraceSettingsFile + const TraceSettingsLocalFile + const TraceTmpDir + func AgentTranscriptPath(transcriptDir, agentID string) string + func BranchExistsLocally(ctx context.Context, branchName string) (bool, error) + func BranchExistsOnRemote(ctx context.Context, branchName string) (bool, error) + func CapturePrePromptState(ctx context.Context, ag agent.Agent, sessionID, sessionRef string) error + func CapturePreTaskState(ctx context.Context, toolUseID string) error + func CheckoutBranch(ctx context.Context, ref string) error + func CleanupPrePromptState(ctx context.Context, sessionID string) error + func CleanupPreTaskState(ctx context.Context, toolUseID string) error + func CopyAgentTranscript(srcTranscript, taskMetadataDir, agentID string) error + func CountTodosFromToolInput(toolInput json.RawMessage) int + func DispatchLifecycleEvent(ctx context.Context, ag agent.Agent, event *agent.Event) error + func EnsurePluginBinDir() (string, error) + func ExtractLastCompletedTodoFromToolInput(toolInput json.RawMessage) string + func ExtractTodoContentFromToolInput(toolInput json.RawMessage) string + func FetchAndCheckoutRemoteBranch(ctx context.Context, branchName string) error + func FetchBlobsByHash(ctx context.Context, hashes []plumbing.Hash) error + func FetchMetadataBranch(ctx context.Context) error + func FetchMetadataFromCheckpointRemote(ctx context.Context) error + func FetchMetadataTreeOnly(ctx context.Context) error + func FetchV2MainRef(ctx context.Context) error + func FetchV2MainTreeOnly(ctx context.Context) error + func FetchV2MetadataFromCheckpointRemote(ctx context.Context) error + func FilterAndNormalizePaths(files []string, cwd string) []string + func FindActivePreTaskFile(ctx context.Context) (taskToolUseID string, found bool) + func FindCheckpointUUID(lines []transcriptLine, toolUseID string) (string, bool) + func FormatDuration(d time.Duration) string + func GetAgentsWithHooksInstalled(ctx context.Context) []types.AgentName + func GetCurrentBranch(ctx context.Context) (string, error) + func GetCurrentHookAgent() (agent.Agent, error) + func GetLogLevel() string + func GetMergeBase(ctx context.Context, branch1, branch2 string) (*plumbing.Hash, error) + func GetNextCheckpointSequence(sessionID, taskToolUseID string) int + func GetStrategy(_ context.Context) *strategy.ManualCommitStrategy + func HasUncommittedChanges(ctx context.Context) (bool, error) + func InstalledAgentDisplayNames(ctx context.Context) []string + func IsAccessibleMode() bool + func IsEnabled(ctx context.Context) (bool, error) + func IsOfficialPlugin(name string) bool + func IsOnDefaultBranch(ctx context.Context) (bool, string, error) + func JoinAgentNames(names []types.AgentName) string + func LoadTraceSettings(ctx context.Context) (*settings.TraceSettings, error) + func MaybeRunPlugin(ctx context.Context, rootCmd *cobra.Command, args []string) (handled bool, exitCode int) + func NewAccessibleForm(groups ...*huh.Group) *huh.Form + func NewAuthenticatedAPIClient(insecureHTTP bool) (*api.Client, error) + func NewHelpCmd(rootCmd *cobra.Command) *cobra.Command + func NewRootCmd() *cobra.Command + func ParseSubagentTypeAndDescription(toolInput json.RawMessage) (agentType, description string) + func PluginBinDir() (string, error) + func PluginDataDir(name string) (string, error) + func PrependPluginBinDirToPATH(ctx context.Context) func() + func RegisterObjectSigner() + func RemoveInstalledPlugin(name string) error + func RenderTimeline(t *Timeline, width int) string + func SaveTraceSettings(ctx context.Context, s *settings.TraceSettings) error + func SaveTraceSettingsLocal(ctx context.Context, s *settings.TraceSettings) error + func ShouldSkipOnDefaultBranch(ctx context.Context) (bool, string) + func TaskMetadataDir(sessionMetadataDir, toolUseID string) string + func TruncateTranscriptAtUUID(lines []transcriptLine, uuid string) []transcriptLine + func ValidateBranchName(ctx context.Context, branchName string) error + func WriteTaskCheckpoint(taskMetadataDir string, checkpoint *TaskCheckpoint) error + func WriteTaskPrompt(taskMetadataDir, prompt string) error + type CheckpointInfo struct + Additions int + Deletions int + Description string + FilesChanged int + ID string + Timestamp time.Time + type DiffRenderer struct + CollapseThreshold int + ContextLines int + Theme Theme + func NewDiffRenderer() *DiffRenderer + func (r *DiffRenderer) RenderDiff(diff string) string + func (r *DiffRenderer) RenderSideBySide(diff string, width int) string + func (r *DiffRenderer) RenderSummary(diffs []string) string + type EnableOptions struct + AbsoluteGitHookPath bool + CheckpointRemote string + ForceHooks bool + LocalDev bool + SkipPushSessions bool + SuppressDoneMessage bool + Telemetry bool + UseLocalSettings bool + UseProjectSettings bool + Yes bool + type FileChanges struct + Deleted []string + Modified []string + New []string + func DetectFileChanges(ctx context.Context, previouslyUntracked []string) (*FileChanges, error) + type GitAuthor struct + Email string + Name string + func GetGitAuthor(ctx context.Context) (*GitAuthor, error) + type GitHubBootstrapOptions struct + InitRepo bool + InitialCommitMessage string + NoGitHub bool + NoInitRepo bool + RepoName string + RepoOwner string + RepoVisibility string + SkipInitialCommit bool + Yes bool + type InstallPluginOptions struct + Force bool + SourcePath string + type InstalledPlugin struct + LinkTarget string + Name string + Path string + Symlink bool + func FindInstalledPlugin(name string) (*InstalledPlugin, error) + func InstallPluginFromPath(opts InstallPluginOptions) (*InstalledPlugin, error) + func ListInstalledPlugins() ([]*InstalledPlugin, error) + type PostTaskHookInput struct + AgentID string + ToolInput json.RawMessage + type PrePromptState struct + LastTranscriptIdentifier string + LastTranscriptLineCount int + SessionID string + StartMessageIndex int + StepTranscriptStart int + Timestamp string + TranscriptOffset int + UntrackedFiles []string + func LoadPrePromptState(ctx context.Context, sessionID string) (*PrePromptState, error) + func (s *PrePromptState) PreUntrackedFiles() []string + type PreTaskState struct + Timestamp string + ToolUseID string + UntrackedFiles []string + func LoadPreTaskState(ctx context.Context, toolUseID string) (*PreTaskState, error) + func (s *PreTaskState) PreUntrackedFiles() []string + type SilentError struct + Err error + func NewSilentError(err error) *SilentError + func (e *SilentError) Error() string + func (e *SilentError) Unwrap() error + type SubagentCheckpointHookInput struct + SessionID string + ToolInput json.RawMessage + ToolName string + ToolResponse json.RawMessage + ToolUseID string + TranscriptPath string + type TaskCheckpoint struct + AgentID string + CheckpointUUID string + SessionID string + ToolUseID string + func ReadTaskCheckpoint(taskMetadataDir string) (*TaskCheckpoint, error) + type TaskHookInput struct + SessionID string + ToolInput json.RawMessage + ToolUseID string + TranscriptPath string + type TempFileDeleteError struct + Err error + File string + type Theme struct + Addition string + Bold string + Collapse string + Context string + Deletion string + FilePath string + Header string + LineNumber string + Reset string + StatAdd string + StatDel string + WordAdd string + WordDel string + func DefaultTheme() Theme + type Timeline struct + Duration time.Duration + EndTime time.Time + Entries []TimelineEntry + SessionID string + StartTime time.Time + func BuildTimeline(checkpoints []CheckpointInfo) *Timeline + type TimelineEntry struct + Checkpoint CheckpointInfo + Label string + type TraceSettings = settings.TraceSettings + type TranscriptPosition struct + LastUUID string + LineCount int + func GetTranscriptPosition(path string) (TranscriptPosition, error)