coach

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package coach provides per-task AI coaching tips before task execution. Unlike explain (which narrates what will happen), coaching is prescriptive: it gives the executor concrete advice on how to approach the task well, what to watch out for, and common pitfalls to avoid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoachingSession

type CoachingSession struct {
	TaskID          int      `json:"task_id"`
	TaskTitle       string   `json:"task_title"`
	Tips            []Tip    `json:"tips"`
	KeyQuestion     string   `json:"key_question"`
	SuccessCriteria []string `json:"success_criteria"`
}

CoachingSession holds the full coaching output for a task.

func Coach

func Coach(ctx context.Context, p provider.Provider, model string, task *pm.Task, plan *pm.Plan, workDir string) (*CoachingSession, error)

Coach generates a coaching session for the given task. model may be empty (the provider will use its default). workDir is used for future context injection but is currently informational.

type Tip

type Tip struct {
	// Category is one of: approach, pitfall, quality, speed, security, testing
	Category string `json:"category"`
	// Advice is the actionable coaching advice (1-3 sentences).
	Advice string `json:"advice"`
}

Tip is a single coaching tip with a category label.

Jump to

Keyboard shortcuts

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