Versions in this module Expand all Collapse all v0 v0.0.7 Oct 27, 2026 Changes in this version + const MaxReviseDescriptionRunes + const MaxReviseInstructionRunes + func CleanRevisedDescription(raw string) string + func RevisePrompt(title, current, instruction string) string + func TruncateRunes(s string, n int) string v0.0.6 Oct 16, 2026 Changes in this version type Task + AttachmentCount int v0.0.5 Oct 12, 2026 Changes in this version + const CommitRequireCommitted + const CommitRequireOff + const CommitRequirePushed + const DefaultReviewFixRounds + const MaxReviewFindings + const MaxReviewFixRounds + const MaxReviewInstructionsBytes + const NodeKillerThreshold + const PublishFailed + const PublishPushed + const PublishRefused + const PublishWithheld + const QuarantineNodeKiller + const ReviewModeAdvisory + const ReviewModeBlock + const ReviewModeFix + const StopDiskLimit + var CommitRequirements = []string + var ReviewModes = []string + func DescribeNodeLosses(losses []NodeLoss) string + func DistinctNodes(losses []NodeLoss) []string + func SuspectedNodeKiller(losses []NodeLoss) bool + func ValidVerdict(v ReviewVerdict) bool + type CommitPolicy struct + Enabled bool + Pushed bool + func ParseCommitRequirement(v string) (*CommitPolicy, error) + func (p *CommitPolicy) Active() bool + func (p *CommitPolicy) Clone() *CommitPolicy + func (p *CommitPolicy) Describe() string + func (p *CommitPolicy) Requirement() string + func (p *CommitPolicy) RequiresPush() bool + type NodeLoss struct + Attempt int + ExecutorID string + LostAt time.Time + SessionID string + func SortNodeLosses(losses []NodeLoss) []NodeLoss + type ReviewFinding struct + Detail string + File string + Line int + Severity string + Title string + type ReviewGate struct + Effort string + Enabled bool + Instructions string + MaxFixRounds int + Mode string + Model string + Provider string + func (g *ReviewGate) Active() bool + func (g *ReviewGate) Clone() *ReviewGate + func (g *ReviewGate) EffectiveFixRounds() int + func (g *ReviewGate) EffectiveMode() string + func (g *ReviewGate) Normalize() + func (g *ReviewGate) Validate() error + type ReviewPublish struct + Commit string + Detail string + Outcome string + Ref string + Remote string + Repo string + type ReviewVerdict string + const ReviewApproved + const ReviewChangesRequested + const ReviewNothing + const ReviewUnavailable + type ReviewedRepo struct + Base string + Commits int + Deletions int + Files int + Head string + Insertions int + Path string + Truncated bool + Uncommitted bool type Task + Quarantine *TaskQuarantine + Review *TaskReview + Stop *TaskStop + func (t *Task) Quarantined() bool + type TaskQuarantine struct + Kind string + MarkedAt time.Time + MarkedBy string + Nodes []NodeLoss + Reason string + type TaskReview struct + Blocked bool + Error string + Findings []ReviewFinding + FixRounds int + Mode string + Model string + Provider string + Published []ReviewPublish + Repos []ReviewedRepo + ReviewedAt time.Time + Rounds int + Summary string + Verdict ReviewVerdict + func (r *TaskReview) Approved() bool + func (r *TaskReview) Bound() + func (r *TaskReview) Clone() *TaskReview + func (r *TaskReview) Diagnosis() string + func (r *TaskReview) Headline() string + type TaskStop struct + Cause string + Detail string + DiskLimitMB int + DiskUsedMB int64 v0.0.4 Sep 27, 2026 v0.0.3 Sep 27, 2026 Changes in this version + func RepositoryAccessSection(getenv func(string) string) string v0.0.2 Sep 17, 2026 Changes in this version + func LessByExecutionOrder(a, b *Task) bool type Task + ExecutorID string + ExecutorKind string + Isolation string + RunID string + func SortByExecutionOrder(tasks []*Task) []*Task v0.0.1 Sep 13, 2026 Changes in this version + const DefaultSnapshotRetention + func AbortAppliesTo(a *TaskAbort, result string) bool + func AdaptiveReplanPrompt(goal, instructions string, plan *Plan, failedTask *Task, failureReason string) string + func AddAnnotation(task *Task, author, text string) + func ApplyCalibrationFactor(plan *Plan, factor float64) + func BuildChainPrompt(task *Task, previousOutput string) string + func ClonePrompt(original *Task, adaptContext string) string + func CollectRelevantContext(workDir string, task *Task, maxTokens int) string + func DecomposePrompt(goal, instructions, clarifyContext string) string + func DedupReason(output string) string + func EstimateTokens(text string) int + func EvolveDiscoverPrompt(goal, instructions string, plan *Plan, evolveStep int, innovate bool) string + func ExecuteTaskPrompt(goal, instructions, workDir string, plan *Plan, task *Task, noCodeInject bool, ...) string + func FingerprintSummary(result string) string + func FormatCountdown(d time.Duration) string + func IsOverdue(t *Task) bool + func MergePrompt(tasks []*Task) string + func NextTrigger(expr string, from time.Time) time.Time + func ParseCron(expr string) error + func ParseDeadline(s string) (time.Time, error) + func PinnedCount(tasks []*Task) int + func PruneToTokenBudget(steps []string, budgetTokens int) []string + func ResetIfDue(task *Task, now time.Time) bool + func RoleSystemPrompt(role AgentRole) string + func SaveSnapshot(workDir string, plan *Plan) error + func SetSnapshotRetention(keep int) + func SetSnapshotRetentionResolver(fn func(workDir string) int) + func SnapshotRetention() int + func SplitPrompt(task *Task, reason string) string + func TaskMatchesTags(task *Task, filter []string) bool + func TimeUntilDeadline(t *Task) (time.Duration, bool) + func TimeUntilDeadlineD(t *Task) time.Duration + func ValidRoles() []string + func VerifySignal(output string) (pass bool, found bool) + func VerifyTask(ctx context.Context, p provider.Provider, goal, instructions, model string, ...) (bool, error) + func VerifyTaskPrompt(goal, instructions string, task *Task, executorOutput string) string + type AgentRole string + const RoleBackend + const RoleData + const RoleDevOps + const RoleDocs + const RoleFrontend + const RoleReview + const RoleSecurity + const RoleTesting + type Annotation struct + Author string + Text string + Timestamp time.Time + type BackgroundState string + const BackgroundAbandoned + const BackgroundDrained + const BackgroundWaiting + type BackgroundWork struct + Commands []string + Detected int + DetectedAt time.Time + State BackgroundState + Terminated int + WaitedSeconds int + func (b *BackgroundWork) Pending() bool + type BranchActivation struct + Activated bool + Branch string + TaskID int + Title string + func ResolveBranch(plan *Plan, task *Task) []BranchActivation + type FieldChange struct + Field string + NewValue string + OldValue string + type Link struct + Kind LinkKind + Label string + URL string + type LinkKind string + const LinkKindArtifact + const LinkKindDoc + const LinkKindPR + const LinkKindTicket + func DetectLinkKind(rawURL string) LinkKind + type MergeOptions struct + Provider provider.Options + type MoveResult struct + DstTaskID int + SrcTaskID int + Task *Task + func Move(ctx context.Context, srcPlan *Plan, dstPlan *Plan, dstGoal string, taskID int, ...) (*MoveResult, error) + type OverdueResult struct + Boosted bool + OldPriority int + Overdue bool + Task *Task + func CheckAndBoostOverdue(plan *Plan) []OverdueResult + type Plan struct + Goal string + Tasks []*Task + Version int + func Decompose(ctx context.Context, p provider.Provider, goal, instructions, model string, ...) (*Plan, error) + func NewPlan(goal string) *Plan + func ParseTaskPlan(goal, output string) (*Plan, error) + func RestoreSnapshot(workDir, snapshotID string) (*Plan, error) + func (p *Plan) AbortedOutcomes() []*Task + func (p *Plan) CountByStatus() (done, failed int) + func (p *Plan) DepsReady(t *Task) bool + func (p *Plan) IsComplete() bool + func (p *Plan) NextTask() *Task + func (p *Plan) PermanentlyBlocked(t *Task) bool + func (p *Plan) ReadyTasks() []*Task + func (p *Plan) Summary() string + func (p *Plan) TaskByID(id int) *Task + func (p *Plan) UnverifiedAborts() []*Task + type PlanDiff struct + Added []*Task + Changed []TaskDiff + Removed []*Task + func DiffPlans(a, b *Plan) PlanDiff + func (d *PlanDiff) IsEmpty() bool + type ProjectContext struct + FileTree string + GitStatus string + RecentLog string + WorkDir string + func BuildProjectContext(workdir string) *ProjectContext + func (c *ProjectContext) Format() string + type PruneStats struct + BytesFreed int64 + Deleted int + Remaining int + func PruneSnapshots(workDir string, keep int, dryRun bool) (PruneStats, error) + type SLAStats struct + ComplianceRatio float64 + Met int + Missed int + Total int + func ComputeSLAStats(plan *Plan) SLAStats + type Snapshot struct + Plan *Plan + Timestamp time.Time + Version int + func LoadSnapshot(workDir string, version int) (*Snapshot, error) + type SnapshotMeta struct + Filename string + Summary string + TaskCount int + Timestamp time.Time + Version int + func ListSnapshots(workDir string) ([]*SnapshotMeta, error) + type Task struct + Abort *TaskAbort + ActualMinutes int + Annotations []Annotation + Approved bool + ArtifactPath string + Assignee string + Background *BackgroundWork + ChainInput string + CompletedAt *time.Time + ComplexitySize string + Condition string + Deadline *time.Time + DependsOn []int + Description string + EstimatedMinutes int + ExternalURL string + FailCount int + FailureDiagnosis string + GitHubIssue int + HealAttempts int + ID int + ImpactScore int + Links []Link + MaxMinutes int + NextRunAt *time.Time + OnFailure []string + OnSuccess []string + Pinned bool + Priority int + Recurrence string + RequiresApproval bool + Result string + RetryBudget int + RiskScore int + Role AgentRole + SprintID int + StartedAt *time.Time + Status TaskStatus + StoryPoints int + TDDScore int + TDDStatus string + Tags []string + Title string + VerifyRetries int + WriteBackBranch string + WriteBackCommit string + func AdaptiveReplan(ctx context.Context, p provider.Provider, goal, instructions, model string, ...) ([]*Task, error) + func Clone(ctx context.Context, p provider.Provider, opts provider.Options, plan *Plan, ...) (*Task, error) + func DeduplicateTasks(ctx context.Context, p provider.Provider, opts provider.Options, ...) ([]*Task, error) + func Merge(ctx context.Context, p provider.Provider, opts MergeOptions, plan *Plan, ...) (*Task, error) + func ParseEvolveTasks(goal, output string, existing *Plan) ([]*Task, error) + func ParseSplitResponse(response string, parentTask *Task, nextID int) ([]*Task, error) + func SortPinnedFirst(tasks []*Task) []*Task + func SplitTask(ctx context.Context, p provider.Provider, opts provider.Options, plan *Plan, ...) ([]*Task, error) + type TaskAbort struct + Class string + Cleared bool + ClearedAt *time.Time + ClearedBy string + ClearedNote string + DetectedAt time.Time + Evidence string + Reason string + SummaryFingerprint string + func (a *TaskAbort) Blocks() bool + func (a *TaskAbort) Clear(by, note string) + type TaskDiff struct + Changes []FieldChange + ID int + Title string + type TaskStatus string + const TaskDone + const TaskFailed + const TaskInProgress + const TaskPending + const TaskSkipped + const TaskTimedOut + func CheckTaskSignal(output string) TaskStatus