Documentation
¶
Overview ¶
Package epic clusters a task plan into named epics/themes using AI. Each epic groups semantically related tasks by business value and domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTags ¶
ApplyTags writes an "epic:<name>" tag to each task referenced by an epic. Existing epic: tags are removed before applying the new assignment.
func ClusterPrompt ¶
ClusterPrompt builds the prompt sent to the AI provider.
Types ¶
type Epic ¶
type Epic struct {
Name string `json:"name"`
Description string `json:"description"` // one-sentence summary
TaskIDs []int `json:"task_ids"`
}
Epic is a named theme grouping related tasks.
func Cluster ¶
func Cluster(ctx context.Context, p provider.Provider, model string, plan *pm.Plan) ([]*Epic, error)
Cluster calls the provider and returns a structured list of epics.
func EpicsFromTags ¶
EpicsFromTags rebuilds epics from existing "epic:<name>" tags in the plan. Returns nil if no tasks have epic tags.
func ParseResponse ¶
ParseResponse parses the AI's JSON response into a slice of Epics.
Click to show internal directories.
Click to hide internal directories.