Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 Changes in this version + func BuildFormPrompt(action *ActionRequired) string + func DecomposePrompt() string + func FormatResponse(response *FormResponse) string + func FormatTasks(tasks []*SuggestedTask) string + func Validate(action *ActionRequired, response *FormResponse) []string + type ActionManager struct + History []*ActionRequired + Pending []*ActionRequired + PromptFn func(action *ActionRequired) (*FormResponse, error) + func NewActionManager(promptFn func(*ActionRequired) (*FormResponse, error)) *ActionManager + func (am *ActionManager) Cancel(id string) + func (am *ActionManager) GetPending() []*ActionRequired + func (am *ActionManager) Request(action *ActionRequired) (*FormResponse, error) + func (am *ActionManager) RequestChoice(title string, choices []string) (string, error) + func (am *ActionManager) RequestConfirm(title string) (bool, error) + func (am *ActionManager) RequestText(title, description string) (string, error) + type ActionRequired struct + CreatedAt time.Time + Description string + Fields []FormField + ID string + Required bool + Resolved bool + Response *FormResponse + Timeout time.Duration + Title string + type ExecutionPlan struct + Dependencies map[string][]string + Parallelizable bool + Steps []ExecutionStep + TotalEstimatedTime time.Duration + type ExecutionPlanner struct + ToolTimings map[string]time.Duration + func NewExecutionPlanner() *ExecutionPlanner + func (ep *ExecutionPlanner) EstimateDuration(plan *ExecutionPlan) time.Duration + func (ep *ExecutionPlanner) FindDependencies(calls []PlannedCall) map[string][]string + func (ep *ExecutionPlanner) FormatPlan(plan *ExecutionPlan) string + func (ep *ExecutionPlanner) GroupParallel(plan *ExecutionPlan) [][]ExecutionStep + func (ep *ExecutionPlanner) Optimize(plan *ExecutionPlan) *ExecutionPlan + func (ep *ExecutionPlanner) Plan(toolCalls []PlannedCall) *ExecutionPlan + func (ep *ExecutionPlanner) RecordTiming(tool string, duration time.Duration) + type ExecutionStep struct + Args map[string]interface{} + CanParallel bool + DependsOn []string + EstimatedDuration time.Duration + Group int + ID string + Priority int + ToolName string + type FormField struct + Choices []string + Default string + Label string + Name string + Required bool + Type string + Validation string + type FormResponse struct + SubmittedAt time.Time + TimedOut bool + Values map[string]string + type Goal struct + CompletedAt *time.Time + CreatedAt time.Time + Dependencies []string + Description string + ID string + ParentID string + Priority int + Progress float64 + Status GoalStatus + SubGoals []Goal + Tags []string + TokenBudget int + TokensUsed int + type GoalEvent struct + EventType string + GoalID string + Message string + Timestamp time.Time + type GoalOption func(*Goal) + func WithBudget(tokens int) GoalOption + func WithDependencies(deps ...string) GoalOption + func WithPriority(p int) GoalOption + func WithTags(tags ...string) GoalOption + type GoalStatus string + const GoalBlocked + const GoalCompleted + const GoalFailed + const GoalInProgress + const GoalPending + type GoalTracker struct + ActiveGoal *Goal + Goals map[string]*Goal + History []GoalEvent + func NewGoalTracker() *GoalTracker + func (gt *GoalTracker) AddGoal(description string, opts ...GoalOption) *Goal + func (gt *GoalTracker) BuildGoalContext() string + func (gt *GoalTracker) CompleteGoal(id string) error + func (gt *GoalTracker) ContinuationPrompt() string + func (gt *GoalTracker) DecomposeGoal(id string, subDescriptions []string) error + func (gt *GoalTracker) FailGoal(id string, reason string) error + func (gt *GoalTracker) GetNextGoal() *Goal + func (gt *GoalTracker) IsBudgetExceeded(id string) bool + func (gt *GoalTracker) RecordTokens(id string, tokens int) + func (gt *GoalTracker) StartGoal(id string) error + func (gt *GoalTracker) UpdateProgress(id string, progress float64) + type PlanState struct + Active bool + Current int + Name string + Subtasks []Subtask + func NewPlanState(name string) *PlanState + func (ps *PlanState) Format() string + func (ps *PlanState) MarkDone(id int) + func (ps *PlanState) Next() *Subtask + func (ps *PlanState) Progress() string + func (ps *PlanState) Skip(id int) + type PlannedCall struct + Args map[string]interface{} + Targets []string + ToolName string + type Subtask struct + Description string + Files []string + ID int + Status string + Title string + func ParseSubtasks(output string) []Subtask + type SuggestedTask struct + Actionable bool + Category string + Command string + Description string + ID string + Priority int + Source string + Title string + func ScanGitTasks(projectDir string) []*SuggestedTask + func ScanTODOs(projectDir string) []*SuggestedTask + func ScanTestFailures(projectDir string) []*SuggestedTask + type Task struct + Dependencies []string + Description string + EstimatedTokens int + ID string + Priority int + Result string + Status string + Type string + type TaskDecomposer struct + MaxTasks int + func NewTaskDecomposer() *TaskDecomposer + func (td *TaskDecomposer) DebuggingPlan(goal string) []Task + func (td *TaskDecomposer) Decompose(goal string) *TaskPlan + func (td *TaskDecomposer) DetectPattern(goal string) string + func (td *TaskDecomposer) EstimateComplexity(goal string) int + func (td *TaskDecomposer) FindParallelGroups(tasks []Task) [][]string + func (td *TaskDecomposer) FormatPlan(plan *TaskPlan) string + func (td *TaskDecomposer) ImplementationPlan(goal string) []Task + func (td *TaskDecomposer) RefactoringPlan(goal string) []Task + func (td *TaskDecomposer) TestingPlan(goal string) []Task + type TaskPlan struct + EstimatedTotal int + Goal string + Parallel [][]string + Tasks []Task + type TaskQueue struct + Dismissed []string + Tasks []*SuggestedTask + func NewTaskQueue() *TaskQueue + func (tq *TaskQueue) Dismiss(taskID string) + func (tq *TaskQueue) GetTop(n int) []*SuggestedTask + func (tq *TaskQueue) Refresh(projectDir string) error + func (tq *TaskQueue) Scan(projectDir string) ([]*SuggestedTask, error)