Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + const DefaultMaxAge + const DefaultMaxEntries + const DefaultProjectSnapshotTTL + const FieldCost + const FieldDuration + const FieldError + const FieldFile + const FieldModel + const FieldProvider + const FieldTokens + const FieldTool + const IntentCodeFix + const IntentCodeReview + const IntentCodeWrite + const IntentConfig + const IntentExplain + const IntentGit + const IntentQuestion + const IntentRefactor + const IntentSearch + const IntentTest + const SynthesisPrompt + var BuiltinPersonas = []Persona + var HintsFilenames = []string + var ModeToolAllowlist = map[SubAgentMode][]string + var ProjectContextFiles = []string + var ReviewCategories = []string + var ScaleBehaviors = map[TaskScale]ScaleBehavior + var TaskToolMap = map[string][]string + func AdaptiveSizes(messages []WindowMessage, budget int) (head, tail int) + func ApplyFix(action CodeAction, content string) (string, error) + func AutoFix(code string, issues []GenIssue) string + func BrainstormPrompt(phase BrainstormPhase, topic string, context string) string + func BuildDependencyGraph(projectDir string) map[string][]string + func BuildEditorPrompt(plan *ArchitectPlan, step PlanStep) string + func BuildFormPrompt(action *ActionRequired) string + func BuildImportGraph(projectDir string) map[string][]string + func BuildPrompt(comment AIComment) string + func BuildRejectionMessage(result *GroundingResult) string + func BuildSchemaPrompt(schema *Schema) string + func BuildSearchContext(similar []*SimilarIssue) string + func BuildTestFeedback(result *TestResult, editedFiles []string) string + func BuiltinWorkflows() map[string]*Workflow + func BumpVersion(current string, changes []ChangeEntry) string + func CheckpointPrompts(phase CheckpointPhase, files []string) string + func ClassifyRisk(changes []SemanticChange) string + func ClassifyTaskComplexity(task string) string + func ClassifyUpdate(current, latest string) string + func CompareApproaches(solutions []Solution) string + func CompareReports(before, after *WorkspaceDiffReport) string + func ComputeGradientPrompt(paramName, currentValue, feedback string, examples []string) string + func CorrectCoursePrompt(originalIntent, currentState, problem string) string + func DefaultIgnorePatterns() []string + func DefaultLintCommands() map[string]string + func DefaultScoreFn(solution string) float64 + func DefaultSoulPath() string + func DefaultTestCommands() map[string]string + func DefaultValidateCmd(dir string) string + func DegradationTimeout(turnCount int) time.Duration + func DescribeControlFlow(funcBody string) string + func DetectArchitecture(dir string) string + func DetectContentType(content string) string + func DetectGenerated(path string) bool + func DetectLanguage(code string) string + func DetectProvider(projectDir string) (string, string, string) + func DetectSideEffects(funcBody string) []string + func DetectTestCommand(projectDir string) string + func DiffPrompts(old, new string) string + func DirectivePrompt(d Directive) string + func EditStrategyPrompt(strategy EditStrategy) string + func EstimateDiffTokens(diff string) int + func EstimateSavings(plan *ArchitectPlan, architectCost, editorCost float64) string + func EstimateStringTokens(content string) int + func EstimateTimeSaved(totalTests, selectedTests int) string + func EstimateTokenSavings(original, formatted string) int + func EstimateTokensFromContent(content string) int + func EvalCondition(condition string, vars map[string]string) bool + func ExperimentPrompt(iteration int, validateCmd string, history []ExperimentResult, ...) string + func ExtractCode(body string, rawURL string) string + func ExtractCodeFromOutput(text string, language string) (string, error) + func ExtractHTML(body string) (title, content string) + func ExtractJSON(body string) string + func ExtractJSONFromOutput(text string) (string, error) + func ExtractKeyFacts(messages []CompressMessage) []string + func ExtractMarkdown(body string) string + func ExtractPattern(errorMsg string) string + func FilterRelevantOutput(output string, maxChars int) string + func FilterToolsForMode(mode SubAgentMode, available []string) []string + func FixCodeFences(text string) string + func FixMarkdown(text string) string + func FormatAnalysis(analysis *ProjectAnalysis) string + func FormatAnnotations(annotations []*Annotation) string + func FormatAsMarkdown(report *WorkspaceDiffReport) string + func FormatAsTerminal(report *WorkspaceDiffReport) string + func FormatAssessment(assessment *RiskAssessment) string + func FormatCIStatus(status *CIStatus) string + func FormatChanges(result *FormattedResponse) string + func FormatCommandSuggestions(suggestions []*CommandSuggestion) string + func FormatCompressed(result *CompressionResult) string + func FormatCompressedPR(pr *CompressedPR) string + func FormatConflictMarkers(conflict Diff3Conflict) string + func FormatConsensus(result *ConsensusResult) string + func FormatContext(ctx *CodeContext) string + func FormatContextItems(items []ContextItem) string + func FormatDiff3Result(result *Diff3Result) string + func FormatError(enriched *EnrichedError) string + func FormatEvents(events []FileEvent) string + func FormatExplanation(exp *CodeExplanation) string + func FormatForCommit(report *WorkspaceDiffReport) string + func FormatForContext(content string, contentType string) string + func FormatGateResults(results []GateResult) string + func FormatGroundingResult(result *GroundingResult) string + func FormatHealResult(result *HealResult) string + func FormatImpact(analysis *ImpactAnalysis) string + func FormatInline(comments []ReviewComment) string + func FormatIntent(intent *Intent) string + func FormatIssueResults(similar []*SimilarIssue) string + func FormatIssues(issues []GitIssue) string + func FormatLanguages(configs []*LanguageConfig) string + func FormatLenses(file string, lenses []CodeLens) string + func FormatOutdated(deps []Dependency) string + func FormatPRs(prs []PullRequest) string + func FormatPartyTurn(p Persona, content string) string + func FormatPattern(p *PromptPattern) string + func FormatPlan(plan *UpdatePlan) string + func FormatPrediction(pred *Prediction, model string) string + func FormatPrompt(base string, sections []PromptSection) string + func FormatPromptExamples(examples []PromptExample) string + func FormatReleaseNotes(release *Release) string + func FormatReport(report *ReviewReport) string + func FormatResponse(response *FormResponse) string + func FormatResult(result *WorkflowResult) string + func FormatReview(result *ReviewResult) string + func FormatSelection(selected *SelectedTests, changedFiles []string, language string, ...) string + func FormatSelfAssessment(a *Assessment) string + func FormatSkill(skill *Skill) string + func FormatSuggestions(actions []CodeAction, maxDisplay int) string + func FormatTasks(tasks []*SuggestedTask) string + func FormatToolSelection(task string, selection *ToolSelection) string + func FormatValidation(v *GenValidation) string + func FormatViolations(violations []Violation) string + func FormatWindow(result *WindowResult) string + func GenerateChangelog(release *Release) string + func GenerateMitigations(assessment *RiskAssessment) []string + func GenerateOnboardingDoc(analysis *ProjectAnalysis) string + func GenerateREADME(doc *ProjectDoc) string + func GenerateSummary(diff *SemanticDiff) string + func GenerateTestCommand(selected *SelectedTests, language string) string + func HashPrompt(prompt string) string + func ImplementFromSpecPrompt(spec *Spec) string + func InferPurpose(name string, params, returns []string) string + func InitSoulPrompt() string + func InvestigatePrompt(phase InvestigatePhase, context string) string + func IsDue(job *CronJob, now time.Time) bool + func LCS(a, b []string) []string + func LearnPrompt(context string) string + func ListPersonas() string + func MatchesPattern(path string, patterns []string) bool + func MergeClean(base, ours, theirs string) (string, bool) + func MergeSynthesisPrompt(subtasks []SubTask, results map[string]string) string + func NextRunTime(expr *CronExpr, after time.Time) time.Time + func NormalizeError(msg string) string + func NormalizeLists(text string) string + func OptimizePrompt(ctx context.Context, llm LLMClient, model string, po *PromptOptimizer, ...) (string, error) + func PackingReport(result *PackingResult, strategy PackingStrategy, totalMessages int, ...) string + func PairwiseSimilarity(a, b string) float64 + func ParseFailedTests(output string, language string) []string + func ParseSemver(version string) (major, minor, patch int, err error) + func QuickDevClarifyPrompt(userInput string) string + func QuickDevPresentPrompt() string + func QuickDevReviewPrompt(filesChanged []string) string + func ReadClipboard() (string, error) + func ReflectPrompt(sessionSummary string) string + func RemoveComment(file string, line int, marker string) error + func RemoveFluff(text string) string + func RenderHTML(doc *ProjectDoc) string + func RenderMarkdown(doc *ProjectDoc) string + func RenderTree(files []string) string + func RenderUnified(change *FileChange) string + func RepairJSON(broken string) (string, error) + func ReviewPrompt(files []string) string + func ScoreByCompleteness(content string) float64 + func ScoreByLength(content string) float64 + func ScoreImportance(msg CompressMessage, position int, total int) float64 + func ShouldApply(messages []WindowMessage, maxTokens int) bool + func ShouldCache(prompt string) bool + func ShouldProceed(assessment *RiskAssessment) bool + func ShouldRetry(solutions []Solution) bool + func ShouldUseArchitect(prompt string, messageCount int) bool + func SpecGeneratePrompt(intent string) string + func StripAnnotations(content string) string + func SubstituteVars(template string, vars map[string]string) string + func SuggestFiles(projectDir string) []string + func SuggestResolution(similar []*SimilarIssue) string + func SummarizeClipboard(content string, maxChars int) string + func SummarizeDropped(dropped []ScoredMessage) string + func SynthesizeSubAgent(ctx context.Context, llm LLMClient, model string, ...) (string, error) + func TokenEstimate(content string) int + func TruncateHunks(diff string, maxTokens int) string + func UpdateVersionFile(version, filePath string) error + func Validate(action *ActionRequired, response *FormResponse) []string + func ValidateWorkflow(wf *Workflow) []string + func WarnIfExpensive(pred *Prediction, budgetUSD float64) string + func WriteClipboard(content string) error + type AIComment struct + Comment string + Context string + File string + Language string + Line int + Marker string + func ScanDirectory(dir string, patterns []string) []AIComment + func ScanFile(path string) []AIComment + type AIWatcher struct + Debounce time.Duration + OnComment func(comment AIComment) + Patterns []string + RootDir string + func NewAIWatcher(rootDir string, patterns []string) *AIWatcher + func (w *AIWatcher) Start(ctx context.Context) error + func (w *AIWatcher) Stop() + type ActionDetector struct + Rules []ActionRule + func NewActionDetector() *ActionDetector + func (ad *ActionDetector) Detect(path, content string) []CodeAction + func (ad *ActionDetector) DetectForDiff(diff string) []CodeAction + 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 ActionRule struct + Antipattern *regexp.Regexp + Category string + FixTemplate string + ID string + Language string + Message string + Name string + Pattern *regexp.Regexp + Priority int + type AdversarialReview struct + Findings []ReviewFinding + func (ar *AdversarialReview) FormatFindings() string + type AgentIntelligence struct + ScaleClassifier func(string) TaskScale + func NewAgentIntelligence() *AgentIntelligence + func (ai *AgentIntelligence) AnalyzeForParallelism(prompt string) SpawnDecision + func (ai *AgentIntelligence) ExecuteWithIntelligence(ctx context.Context, prompt string, ...) (string, error) + func (ai *AgentIntelligence) SelectMode(subtask string) SubAgentMode + type AgentLogger struct + Logger *StructuredLogger + Model string + Turn int + func (a *AgentLogger) LogAPICall(model string, tokens int, cost float64, duration time.Duration) + func (a *AgentLogger) LogCompaction(before, after int) + func (a *AgentLogger) LogPermission(tool string, granted bool) + func (a *AgentLogger) LogToolCall(tool, file string, duration time.Duration, err error) + type AliasSuggestion struct + Alias string + Command string + Count int + Reason string + type Allocation struct + CurrentTokens int + Flexible bool + MaxTokens int + MinTokens int + Name string + Priority int + Usage float64 + type Annotation struct + Author string + Content string + CreatedAt time.Time + File string + ID string + Line int + Resolved bool + Type string + func DetectAnnotations(content string) []*Annotation + type AnnotationManager struct + Annotations map[string][]*Annotation + func NewAnnotationManager() *AnnotationManager + func (am *AnnotationManager) Add(file string, line int, content, annotationType, author string) *Annotation + func (am *AnnotationManager) BuildContextFromAnnotations(file string) string + func (am *AnnotationManager) GetAll() []*Annotation + func (am *AnnotationManager) GetForFile(file string) []*Annotation + func (am *AnnotationManager) GetUnresolved() []*Annotation + func (am *AnnotationManager) InjectAnnotations(file, content string) string + func (am *AnnotationManager) Remove(id string) + func (am *AnnotationManager) Resolve(id string) + func (am *AnnotationManager) Summary() string + type Architect struct + ChatFn func(ctx context.Context, model string, messages []ArchitectMessage) (string, error) + Config ArchitectConfig + func (a *Architect) Plan(ctx context.Context, goal string, repoContext string) (*ArchitectPlan, error) + type ArchitectConfig struct + ArchitectModel string + EditorModel string + Enabled bool + PlanTokenBudget int + type ArchitectMessage struct + Content string + Role string + type ArchitectPlan struct + EstimatedComplexity string + FilesToModify []string + Goal string + RawPlan string + Steps []PlanStep + func ParsePlan(response string) (*ArchitectPlan, error) + type Assessment struct + Dimensions map[string]float64 + Improvements []string + Score float64 + Strengths []string + TaskType string + Timestamp time.Time + Weaknesses []string + type Assumption struct + Proof string + Status AssumptionStatus + Text string + type AssumptionStatus int + const AssumptionConfirmed + const AssumptionFailed + const AssumptionUnverified + type AssumptionTracker struct + Assumptions []Assumption + func NewAssumptionTracker() *AssumptionTracker + func (at *AssumptionTracker) Add(text string) + func (at *AssumptionTracker) Failed() []Assumption + func (at *AssumptionTracker) Reset() + func (at *AssumptionTracker) Summary() string + func (at *AssumptionTracker) VerifyCommandSucceeds(text, cmd string) + func (at *AssumptionTracker) VerifyFileExists(text, path string) + type AutoCommitter struct + Enabled bool + RepoDir string + func NewAutoCommitter(repoDir string) *AutoCommitter + func (ac *AutoCommitter) CommitIfChanged(description string) error + func (ac *AutoCommitter) Undo() error + type BackgroundRunner struct + func NewBackgroundRunner() *BackgroundRunner + func (br *BackgroundRunner) Collect(id string) *BackgroundTask + func (br *BackgroundRunner) Delegate(ctx context.Context, prompt string, ...) string + func (br *BackgroundRunner) ListActive() []*BackgroundTask + func (br *BackgroundRunner) PendingCount() int + func (br *BackgroundRunner) Status(id string) *BackgroundTask + type BackgroundTask struct + DoneAt time.Time + Error string + ID string + Prompt string + Result string + StartedAt time.Time + Status string + type BlameLine struct + Author string + Commit string + Date time.Time + LineNo int + type BrainstormPhase int + const BrainstormConverge + const BrainstormDiverge + const BrainstormEvaluate + const BrainstormOrganize + const BrainstormSetup + func (p BrainstormPhase) String() string + type BrainstormSession struct + Clusters map[string][]string + Ideas []string + Phase BrainstormPhase + TopPicks []string + Topic string + func NewBrainstormSession(topic string) *BrainstormSession + type BranchManager struct + ActiveBranch string + Branches map[string]*ConversationBranch + RootBranch string + func NewBranchManager() *BranchManager + func (bm *BranchManager) Abandon(branchID string) error + func (bm *BranchManager) AddMessage(role, content string, toolUse []string) + func (bm *BranchManager) BuildBranchContext() string + func (bm *BranchManager) CompareBranches(branchA, branchB string) string + func (bm *BranchManager) ExportBranch(branchID string) ([]byte, error) + func (bm *BranchManager) Fork(name string, atMessage int) (*ConversationBranch, error) + func (bm *BranchManager) GetActiveMessages() []BranchMessage + func (bm *BranchManager) GetBranches() []*ConversationBranch + func (bm *BranchManager) ImportBranch(data []byte) (*ConversationBranch, error) + func (bm *BranchManager) Merge(sourceBranchID string) error + func (bm *BranchManager) Prune(olderThan time.Duration) + func (bm *BranchManager) Switch(branchID string) error + type BranchMessage struct + Content string + Role string + Timestamp time.Time + ToolUse []string + type BudgetAlert struct + Level string + Message string + Percentage float64 + Triggered time.Time + type BudgetAllocator struct + Allocations map[string]*Allocation + OutputReserve int + Priority []string + TotalBudget int + func NewBudgetAllocator(totalBudget, outputReserve int) *BudgetAllocator + func (ba *BudgetAllocator) Allocate() map[string]int + func (ba *BudgetAllocator) DefaultAllocations() + func (ba *BudgetAllocator) FormatBudget() string + func (ba *BudgetAllocator) GetAvailable() int + func (ba *BudgetAllocator) Rebalance() + func (ba *BudgetAllocator) Register(name string, min, max, priority int, flexible bool) + func (ba *BudgetAllocator) Release(name string, amount int) + func (ba *BudgetAllocator) RequestMore(name string, needed int) int + func (ba *BudgetAllocator) SuggestCompaction() string + func (ba *BudgetAllocator) WouldExceed(name string, additional int) bool + type CICheck struct + Duration time.Duration + Name string + Status string + URL string + type CIStatus struct + Checks []CICheck + State string + URL string + type CacheEntry struct + CreatedAt time.Time + HitCount int + Key string + LastHit time.Time + Model string + Prompt string + Response string + Similarity float64 + Tokens int + type CacheStats struct + Entries int + HitCount int64 + HitRate float64 + MissCount int64 + SavedCostUSD float64 + SavedTokens int64 + type Capability struct + Category string + Complexity string + Description string + Enabled bool + Examples []string + ID string + Name string + RequiresApproval bool + Tools []string + type CapabilityRegistry struct + Capabilities map[string]*Capability + Categories map[string][]string + func NewCapabilityRegistry() *CapabilityRegistry + func (r *CapabilityRegistry) CanDo(taskDescription string) []*Capability + func (r *CapabilityRegistry) Disable(id string) + func (r *CapabilityRegistry) Enable(id string) + func (r *CapabilityRegistry) FormatCapability(cap *Capability) string + func (r *CapabilityRegistry) FormatHelp() string + func (r *CapabilityRegistry) GetCapability(id string) *Capability + func (r *CapabilityRegistry) GetCategories() []string + func (r *CapabilityRegistry) ListByCategory(category string) []*Capability + func (r *CapabilityRegistry) Search(query string) []*Capability + type ChangeEntry struct + Author string + Breaking bool + CommitHash string + Description string + Scope string + Type string + func ParseConventionalCommit(msg string) *ChangeEntry + type ChangeStats struct + Additions int + Deletions int + NetChange int + type ChatClient interface + Chat func(ctx context.Context, messages []client.EyrieMessage, opts client.ChatOptions) (*client.EyrieResponse, error) + SetAPIKey func(provider, apiKey string) + StreamChatContinue func(ctx context.Context, messages []client.EyrieMessage, opts client.ChatOptions, ...) (*client.StreamResult, error) + func NewMockClientForTest() ChatClient + type CheckpointPhase int + const CheckpointDetail + const CheckpointOrientation + const CheckpointTesting + const CheckpointWalkthrough + const CheckpointWrapup + type ChunkedResponse struct + Chunks []string + Current int + TotalChars int + TotalPages int + func (cr *ChunkedResponse) FormatPage(page int) string + type ClassifiedInput struct + Input string + Intent *Intent + type ClipboardBridge struct + func (cb *ClipboardBridge) IsCode(content string) bool + func (cb *ClipboardBridge) ReadClipboard() (string, error) + func (cb *ClipboardBridge) WriteClipboard(content string) error + type ClipboardMonitor struct + Enabled bool + OnPaste func(content string) + PollInterval time.Duration + func NewClipboardMonitor() *ClipboardMonitor + func (cm *ClipboardMonitor) Start(ctx context.Context) error + func (cm *ClipboardMonitor) Stop() + type CodeAction struct + Category string + Confidence float64 + Description string + File string + Fix string + ID string + Line int + Priority int + Title string + type CodeContext struct + Query string + Snippets []CodeSnippet + TotalTokens int + type CodeExplainer struct + func NewCodeExplainer() *CodeExplainer + func (ce *CodeExplainer) ExplainFile(path, content string) (*CodeExplanation, error) + func (ce *CodeExplainer) ExplainFunction(file, content, funcName string) (*CodeExplanation, error) + func (ce *CodeExplainer) ExplainType(file, content, typeName string) (*CodeExplanation, error) + type CodeExplanation struct + Complexity string + Dependencies []string + File string + Sections []ExplanationSection + Summary string + Symbol string + UsedBy []string + type CodeLens struct + Category string + Command string + File string + Label string + Line int + Tooltip string + func FilterByCategory(lenses []CodeLens, category string) []CodeLens + func GenerateAgeLens(file, content string) []CodeLens + func GenerateComplexityLens(file, content string) []CodeLens + func GenerateCoverageLens(file, content string) []CodeLens + func GenerateReferenceLens(file, content string) []CodeLens + func GenerateTestLens(file, content string) []CodeLens + type CodeLensProvider struct + Providers map[string]LensGenerator + func NewCodeLensProvider() *CodeLensProvider + func (p *CodeLensProvider) Generate(file, content string) []CodeLens + func (p *CodeLensProvider) Register(name string, generator LensGenerator) + type CodeSnippet struct + Content string + EndLine int + File string + Relevance float64 + StartLine int + Symbol string + Type string + type CodingSoul struct + Path string + Preferences string + Style string + func LoadCodingSoul() *CodingSoul + func (s *CodingSoul) ForPrompt() string + type CommandFrequency struct + AvgDuration time.Duration + Command string + Count int + FailRate float64 + type CommandHistory struct + Commands []CommandRecord + Failures map[string]int + Patterns map[string]int + func NewCommandHistory() *CommandHistory + func (ch *CommandHistory) Clear() + func (ch *CommandHistory) DetectPatterns() []string + func (ch *CommandHistory) FormatSummary() string + func (ch *CommandHistory) GetFailing() []CommandRecord + func (ch *CommandHistory) GetFrequent(limit int) []CommandFrequency + func (ch *CommandHistory) GetSlow(threshold time.Duration) []CommandRecord + func (ch *CommandHistory) Record(cmd string, exitCode int, duration time.Duration, output string) + func (ch *CommandHistory) SearchCommands(query string) []CommandRecord + func (ch *CommandHistory) SuggestAlias(minCount int) []AliasSuggestion + type CommandRecord struct + Command string + Duration time.Duration + ExitCode int + Output string + SessionID string + Timestamp time.Time + WorkDir string + type CommandSuggestion struct + Category string + Command string + Confidence float64 + Context string + Description string + type CommitInfo struct + Author string + Date time.Time + FilesChanged int + Hash string + Message string + type CompactionTrigger struct + LastCompact time.Time + MinInterval time.Duration + Threshold float64 + WindowSize int + func NewCompactionTrigger(windowSize int) *CompactionTrigger + func (ct *CompactionTrigger) MarkCompacted() + func (ct *CompactionTrigger) ShouldCompact(currentTokens int) bool + type CompressMessage struct + Content string + Importance float64 + IsToolResult bool + Role string + Tokens int + ToolName string + func SelectiveCompress(messages []CompressMessage, budget int) []CompressMessage + func SemanticCompress(messages []CompressMessage, budget int) []CompressMessage + func TieredCompress(messages []CompressMessage, budget int) []CompressMessage + type CompressStrategy string + const StrategySelective + const StrategySemantic + const StrategySummarize + const StrategyTiered + type CompressedBlock struct + FilesDiscussed []string + KeyFacts []string + OriginalCount int + Summary string + TokensSaved int + ToolCallSummary string + func SummarizeBlock(messages []CompressMessage) *CompressedBlock + type CompressedFile struct + Diff string + Language string + Path string + Priority float64 + Tokens int + Truncated bool + type CompressedPR struct + Files []CompressedFile + OverflowFiles []string + Summary string + TotalTokens int + type CompressionResult struct + Blocks []CompressedBlock + Compressed int + Original int + PreservedMessages int + TokensSaved int + type ConsensusResult struct + Agreement float64 + AllSamples []Sample + Method string + Winner *Sample + type ConsensusSampler struct + NumSamples int + ScoreFn func(solution string) float64 + Strategy string + func NewConsensusSampler(numSamples int) *ConsensusSampler + func (cs *ConsensusSampler) SampleSolutions(ctx context.Context, prompt string, ...) (*ConsensusResult, error) + type ConsolidatedMemory struct + Category string + Confidence float64 + Content string + CreatedAt time.Time + ExpiresAt *time.Time + ID string + References []string + type ConsolidatorStats struct + AvgConfidence float64 + ConsolidatedCount int + ConventionCount int + DecisionCount int + FactCount int + LastConsolidation time.Time + ProcessedCount int + RawCount int + SkillCount int + WarningCount int + type ContextDecay struct + Entries []DecayEntry + HalfLife time.Duration + MinWeight float64 + func NewContextDecay(halfLife time.Duration) *ContextDecay + func (cd *ContextDecay) Access(id string) + func (cd *ContextDecay) Add(content, category string, tokens int) string + func (cd *ContextDecay) ApplyDecay() + func (cd *ContextDecay) BuildContext(maxTokens int) string + func (cd *ContextDecay) FormatEntries(entries []DecayEntry) string + func (cd *ContextDecay) Get(id string) (*DecayEntry, float64) + func (cd *ContextDecay) GetByBudget(maxTokens int) []DecayEntry + func (cd *ContextDecay) GetTopN(n int) []DecayEntry + func (cd *ContextDecay) Pin(id string) + func (cd *ContextDecay) Prune(minWeight float64) int + func (cd *ContextDecay) Stats() DecayStats + func (cd *ContextDecay) Unpin(id string) + type ContextExtractor struct + MaxTokens int + ProjectDir string + func NewContextExtractor(projectDir string, maxTokens int) *ContextExtractor + func (ce *ContextExtractor) ExtractForTask(task string) (*CodeContext, error) + func (ce *ContextExtractor) ExtractFunction(file, funcName string) (*CodeSnippet, error) + func (ce *ContextExtractor) ExtractImports(file string) (*CodeSnippet, error) + func (ce *ContextExtractor) ExtractSurrounding(file string, line, contextLines int) (*CodeSnippet, error) + func (ce *ContextExtractor) ExtractType(file, typeName string) (*CodeSnippet, error) + func (ce *ContextExtractor) FindRelevantSymbols(query string, limit int) []CodeSnippet + func (ce *ContextExtractor) RankSnippets(snippets []CodeSnippet, query string) []CodeSnippet + type ContextFile struct + AddedAt time.Time + AutoRefresh bool + Content string + LastRefreshed time.Time + Path string + Pinned bool + TokenCount int + type ContextFileOption func(*ContextFile) + func WithAutoRefresh() ContextFileOption + func WithPinned() ContextFileOption + type ContextItem struct + Content string + Relevance float64 + Source string + Title string + TokenCount int + func PrioritizeItems(items []ContextItem, budget int) []ContextItem + type ContextManager struct + Providers []ContextProvider + TotalBudget int + func NewContextManager(totalBudget int) *ContextManager + func (cm *ContextManager) GatherAll(ctx context.Context, query string) ([]ContextItem, error) + func (cm *ContextManager) Register(provider ContextProvider) + type ContextPacker struct + MaxTokens int + ReservedForOutput int + Strategy PackingStrategy + SystemPromptTokens int + func NewContextPacker(maxTokens int) *ContextPacker + func (cp *ContextPacker) OptimalSelection(messages []ScoredMessage, budget int) []int + func (cp *ContextPacker) Pack(messages []ScoredMessage, currentTask string) *PackingResult + func (cp *ContextPacker) ScoreMessage(msg ScoredMessage, currentTask string, position int, total int) float64 + type ContextProvider interface + Description func() string + Gather func(ctx context.Context, query string) ([]ContextItem, error) + Name func() string + TokenBudget func() int + type ContextSection struct + Color string + Compressible bool + Items []VizContextItem + Name string + Percentage float64 + Tokens int + type ContextSnapshot struct + Compacted bool + Percentage float64 + TotalTokens int + Turn int + type ContextStats struct + BudgetUsed float64 + PinnedCount int + TotalFiles int + TotalTokens int + type ContextVisualizer struct + MaxTokens int + Sections []ContextSection + func NewContextVisualizer(maxTokens int) *ContextVisualizer + func (cv *ContextVisualizer) HistoryChart(snapshots []ContextSnapshot, width int) string + func (cv *ContextVisualizer) Recommend() []string + func (cv *ContextVisualizer) RenderBar(width int) string + func (cv *ContextVisualizer) RenderCompact() string + func (cv *ContextVisualizer) RenderDetailed() string + func (cv *ContextVisualizer) TakeSnapshot(turn int) ContextSnapshot + func (cv *ContextVisualizer) Update(sections []ContextSection) + func (cv *ContextVisualizer) WarnIfCritical() string + type Convention struct + AntiPattern *regexp.Regexp + Category string + Confidence float64 + Description string + Example string + Language string + Name string + Pattern *regexp.Regexp + type ConventionSet struct + Conventions []Convention + ProjectDir string + func NewConventionSet(projectDir string) *ConventionSet + func (cs *ConventionSet) AddConvention(conv Convention) + func (cs *ConventionSet) Check(code, file string) []Violation + func (cs *ConventionSet) CheckErrorHandling(code string) []Violation + func (cs *ConventionSet) CheckNaming(code string) []Violation + func (cs *ConventionSet) CheckTestStyle(code string) []Violation + func (cs *ConventionSet) Enforce(code string) (string, []Violation) + func (cs *ConventionSet) FormatConventions() string + func (cs *ConventionSet) LearnConventions(projectDir string) error + type ConversationBranch struct + CreatedAt time.Time + ForkPoint int + ID string + Messages []BranchMessage + Metadata map[string]string + Name string + ParentID string + Status string + type ConversationSummarizer struct + func NewConversationSummarizer() *ConversationSummarizer + func (cs *ConversationSummarizer) CompareMessages(before, after []SumMessage) string + func (cs *ConversationSummarizer) Detailed(messages []SumMessage) string + func (cs *ConversationSummarizer) ExtractDecisions(messages []SumMessage) []string + func (cs *ConversationSummarizer) ExtractFilesDiscussed(messages []SumMessage) []string + func (cs *ConversationSummarizer) ExtractTopics(messages []SumMessage) []string + func (cs *ConversationSummarizer) FormatSummary(summary *Summary) string + func (cs *ConversationSummarizer) GenerateTitle(messages []SumMessage) string + func (cs *ConversationSummarizer) OneLine(messages []SumMessage) string + func (cs *ConversationSummarizer) Paragraph(messages []SumMessage) string + func (cs *ConversationSummarizer) Structured(messages []SumMessage) *Summary + func (cs *ConversationSummarizer) Summarize(messages []SumMessage, level SummaryLevel) *Summary + type CoreLoop struct + APIKeys map[string]string + Client ChatClient + Log *logger.Logger + MaxTurns int + Messages []client.EyrieMessage + Model string + Provider string + Registry *tool.Registry + System string + type CostOptimizer struct + History []RequestCost + ModelPricing map[string]ModelPrice + Recommendations []Recommendation + func NewCostOptimizer() *CostOptimizer + func (co *CostOptimizer) Analyze() []Recommendation + func (co *CostOptimizer) CostByModel() map[string]float64 + func (co *CostOptimizer) CostByTaskType() map[string]float64 + func (co *CostOptimizer) DailyCost() float64 + func (co *CostOptimizer) FormatReport() string + func (co *CostOptimizer) ProjectSavings(recommendations []Recommendation) float64 + func (co *CostOptimizer) Record(cost RequestCost) + func (co *CostOptimizer) WeeklyCost() float64 + func (co *CostOptimizer) WhatIf(model string) float64 + type Counter struct + Name string + Value int64 + type CronExpr struct + DayOfMonth []int + DayOfWeek []int + Hour []int + Minute []int + Month []int + func ParseCron(expression string) (*CronExpr, error) + type CronJob struct + Command string + CreatedAt time.Time + Enabled bool + ID string + LastError string + LastResult string + LastRun *time.Time + Name string + NextRun *time.Time + RunCount int + Schedule string + type CronScheduler struct + Jobs map[string]*CronJob + Running bool + func NewCronScheduler() *CronScheduler + func (cs *CronScheduler) AddJob(name, schedule, command string) (*CronJob, error) + func (cs *CronScheduler) FormatJobs() string + func (cs *CronScheduler) ListJobs() []*CronJob + func (cs *CronScheduler) PauseJob(id string) error + func (cs *CronScheduler) RemoveJob(id string) error + func (cs *CronScheduler) ResumeJob(id string) error + func (cs *CronScheduler) Start(ctx context.Context, execFn func(string) (string, error)) + func (cs *CronScheduler) Stop() + type CrossSessionLearner struct + Conventions []SessionConvention + Dir string + FailurePatterns []FailurePattern + Insights []Insight + func NewCrossSessionLearner(dir string) *CrossSessionLearner + func (c *CrossSessionLearner) BuildSessionPrimer(task string) string + func (c *CrossSessionLearner) Decay(factor float64) + func (c *CrossSessionLearner) GetConventions() []SessionConvention + func (c *CrossSessionLearner) GetFailureResolutions(errorMsg string) []FailurePattern + func (c *CrossSessionLearner) GetRelevantInsights(task string, limit int) []Insight + func (c *CrossSessionLearner) LearnConvention(rule string, examples []string, source string) + func (c *CrossSessionLearner) LearnFromOutcome(task, approach string, success bool, toolsUsed []string, ...) + func (c *CrossSessionLearner) Load() error + func (c *CrossSessionLearner) RecordFailure(pattern, context, resolution string) + func (c *CrossSessionLearner) Save() error + func (c *CrossSessionLearner) Stats() LearnerStats + type DebugRecorder struct + ActiveSession *DebugSession + Dir string + Sessions []*DebugSession + func NewDebugRecorder(dir string) *DebugRecorder + func (dr *DebugRecorder) AddHypothesis(description string) + func (dr *DebugRecorder) BuildDebugContext(symptom string) string + func (dr *DebugRecorder) ConfirmHypothesis(index int, evidence string) + func (dr *DebugRecorder) EndSession(successful bool) + func (dr *DebugRecorder) FormatSession(session *DebugSession) string + func (dr *DebugRecorder) Load() error + func (dr *DebugRecorder) RecordStep(action, target, result, insight string) + func (dr *DebugRecorder) RejectHypothesis(index int, evidence string) + func (dr *DebugRecorder) Save() error + func (dr *DebugRecorder) SearchSessions(symptom string) []*DebugSession + func (dr *DebugRecorder) SetResolution(resolution string) + func (dr *DebugRecorder) SetRootCause(cause string) + func (dr *DebugRecorder) StartSession(symptom string) *DebugSession + type DebugSession struct + EndTime *time.Time + FilesInvestigated []string + HypothesesTested []Hypothesis + ID string + Resolution string + RootCause string + StartTime time.Time + Steps []DebugStep + Successful bool + Symptom string + type DebugStep struct + Action string + Index int + InsightGained string + Result string + Target string + Timestamp time.Time + type DecayEntry struct + AccessCount int + Category string + Content string + CreatedAt time.Time + ID string + LastAccessed time.Time + Pinned bool + Tokens int + Weight float64 + type DecayStats struct + AvgWeight float64 + Newest time.Time + Oldest time.Time + PinnedCount int + TotalEntries int + TotalTokens int + type DegradationDetector struct + func NewDegradationDetector(maxTurns int) *DegradationDetector + func (dd *DegradationDetector) IsDegraded() bool + func (dd *DegradationDetector) RecordTurn(toolName string, success bool) + func (dd *DegradationDetector) RecoveryAction() string + func (dd *DegradationDetector) Reset() + func (dd *DegradationDetector) Signal() DegradationSignal + func (dd *DegradationDetector) Stats() (turns, errors, consecutive int) + type DegradationSignal int + const SignalContextDrift + const SignalErrorSpike + const SignalLooping + const SignalNoProgress + type Dependency struct + Changelog string + CurrentVersion string + HasBreakingChanges bool + IsDirectDep bool + LatestVersion string + Name string + SecurityFix bool + UpdateType string + type DependencyContextProvider struct + ProjectDir string + func (d *DependencyContextProvider) Description() string + func (d *DependencyContextProvider) Gather(ctx context.Context, query string) ([]ContextItem, error) + func (d *DependencyContextProvider) Name() string + func (d *DependencyContextProvider) TokenBudget() int + type DependencyUpdater struct + Language string + ProjectDir string + func NewDependencyUpdater(projectDir string) *DependencyUpdater + func (du *DependencyUpdater) ApplyUpdate(dep Dependency) error + func (du *DependencyUpdater) BatchUpdate(deps []Dependency, maxRisk string) ([]string, []error) + func (du *DependencyUpdater) DetectLanguage() string + func (du *DependencyUpdater) GeneratePlan(deps []Dependency) *UpdatePlan + func (du *DependencyUpdater) ListOutdated() ([]Dependency, error) + type Diff3Conflict struct + BaseLines []string + OursLines []string + StartLine int + TheirsLines []string + type Diff3Region struct + BaseEnd int + BaseStart int + OursLines []string + TheirsLines []string + Type string + type Diff3Result struct + Conflicts []Diff3Conflict + HasConflicts bool + Merged string + Stats Diff3Stats + func Merge3(base, ours, theirs string) *Diff3Result + type Diff3Stats struct + AutoMerged int + ConflictCount int + OursOnly int + TheirsOnly int + TotalLines int + type DiffHunk struct + Lines []DiffLine + NewCount int + NewStart int + OldCount int + OldStart int + func ComputeDiff(oldContent, newContent string) []DiffHunk + type DiffLine struct + Content string + NewLineNo int + OldLineNo int + Type string + func ComputeMyersDiff(a, b []string) []DiffLine + type DiffPreview struct + Changes []FileChange + CreatedAt time.Time + SessionID string + func NewDiffPreview() *DiffPreview + func (dp *DiffPreview) Approve(path string) + func (dp *DiffPreview) ApproveAll() + func (dp *DiffPreview) Clear() + func (dp *DiffPreview) GetApproved() []FileChange + func (dp *DiffPreview) GetPending() []FileChange + func (dp *DiffPreview) RecordChange(path, oldContent, newContent string) + func (dp *DiffPreview) Reject(path string, comment string) + func (dp *DiffPreview) RejectAll(comment string) + func (dp *DiffPreview) RenderAll() string + func (dp *DiffPreview) RenderSummary() string + type DiffReporter struct + ProjectDir string + func NewDiffReporter(projectDir string) *DiffReporter + func (dr *DiffReporter) GenerateFromGit() (*WorkspaceDiffReport, error) + func (dr *DiffReporter) GenerateReport(modifiedFiles map[string]string) *WorkspaceDiffReport + type DiffSummarizer struct + func NewDiffSummarizer() *DiffSummarizer + func (ds *DiffSummarizer) AssessImpact(summary *DiffSummary) string + func (ds *DiffSummarizer) DetectChangeType(summary *DiffSummary) string + func (ds *DiffSummarizer) FormatSummary(summary *DiffSummary) string + func (ds *DiffSummarizer) GenerateCommitMessage(summary *DiffSummary) string + func (ds *DiffSummarizer) GeneratePRSummary(summary *DiffSummary) string + func (ds *DiffSummarizer) Summarize(diff string) *DiffSummary + func (ds *DiffSummarizer) SummarizeFile(path string, hunks []string) *FileSummary + type DiffSummary struct + AffectedAreas []string + ChangeType string + Files []FileSummary + Impact string + OverallSummary string + type Directive struct + Command string + Context string + File string + Line int + func ScanDirectives(dir string) []Directive + type DistillExample struct + AssistantResponse string + CreatedAt time.Time + ID string + Model string + Quality float64 + SystemPrompt string + Tags []string + Tokens int + ToolCalls []string + UserMessage string + type DistillStats struct + AvgQuality float64 + ByModel map[string]int + ByTag map[string]int + EstimatedCost float64 + TotalExamples int + TotalTokens int + type DistillationPipeline struct + Dir string + Examples []DistillExample + MinQuality float64 + SourceModel string + TargetModel string + func NewDistillationPipeline(dir string) *DistillationPipeline + func (dp *DistillationPipeline) Capture(system, user, assistant string, toolCalls []string, quality float64, ...) + func (dp *DistillationPipeline) Deduplicate() + func (dp *DistillationPipeline) ExportAnthropicFormat(path string) error + func (dp *DistillationPipeline) ExportJSONL(path string) error + func (dp *DistillationPipeline) ExportOpenAI(path string) error + func (dp *DistillationPipeline) Filter(minQuality float64, tags []string) []DistillExample + func (dp *DistillationPipeline) FormatStats() string + func (dp *DistillationPipeline) Load() error + func (dp *DistillationPipeline) Prune(maxExamples int) + func (dp *DistillationPipeline) Save() error + func (dp *DistillationPipeline) Stats() DistillStats + type DocGenerator struct + IncludePrivate bool + MaxDepth int + OutputFormat string + ProjectDir string + func NewDocGenerator(projectDir string) *DocGenerator + func (dg *DocGenerator) Generate() (*ProjectDoc, error) + func (dg *DocGenerator) InferDescription(projectDir string) string + type DocResult struct + Content string + Relevance float64 + Source string + Title string + Tokens int + URL string + type DocSection struct + Children []DocSection + Content string + Level int + Title string + type DocSource struct + BaseURL string + Language string + Name string + Packages []string + Priority int + type DocUpdate struct + File string + Line int + NewDoc string + OldDoc string + Reason string + Symbol string + type DocUpdater struct + func NewDocUpdater() *DocUpdater + func (du *DocUpdater) ApplyUpdates(updates []DocUpdate, content string) string + func (du *DocUpdater) DetectStaleDocumentation(file, oldContent, newContent string) []DocUpdate + func (du *DocUpdater) FormatUpdates(updates []DocUpdate) string + func (du *DocUpdater) GenerateDocUpdate(funcName, signature, oldDoc string) string + func (du *DocUpdater) ScanProjectForStaleDocs(projectDir string) []DocUpdate + type Edit struct + Index int + Line string + Type string + func EditScript(from, to []string) []Edit + type EditStrategy int + const EditAppend + const EditDiff + const EditInsert + const EditSearchReplace + const EditWholeFile + func SelectEditStrategy(fileLines int, changeDescription string) EditStrategy + type EfficientPrompter struct + Stats EfficientStats + Strategies []PromptOpt + func NewEfficientPrompter() *EfficientPrompter + func (ep *EfficientPrompter) DisableStrategy(name string) + func (ep *EfficientPrompter) EnableStrategy(name string) + func (ep *EfficientPrompter) EstimateSavings(prompt string) int + func (ep *EfficientPrompter) FormatEfficientStats() string + func (ep *EfficientPrompter) Optimize(prompt string) *OptimizedResult + func (ep *EfficientPrompter) OptimizeMessages(messages []PromptMsg) []PromptMsg + func (ep *EfficientPrompter) OptimizeOutput(output string) string + type EfficientStats struct + CallCount int + OptimizedTokens int + OriginalTokens int + TotalSavings int + type EnrichedError struct + Examples []string + Explanation string + Original string + Recoverable bool + Severity string + Suggestions []string + Title string + type EnvironmentContextProvider struct + func (e *EnvironmentContextProvider) Description() string + func (e *EnvironmentContextProvider) Gather(ctx context.Context, query string) ([]ContextItem, error) + func (e *EnvironmentContextProvider) Name() string + func (e *EnvironmentContextProvider) TokenBudget() int + type ErrorContext struct + Patterns map[string]*ErrorHelp + func NewErrorContext() *ErrorContext + func (ec *ErrorContext) AddPattern(pattern string, help ErrorHelp) error + func (ec *ErrorContext) Enrich(err string) *EnrichedError + func (ec *ErrorContext) IsRecoverable(err string) bool + func (ec *ErrorContext) SuggestFix(err string) string + type ErrorContextProvider struct + LogDir string + func (e *ErrorContextProvider) Description() string + func (e *ErrorContextProvider) Gather(ctx context.Context, query string) ([]ContextItem, error) + func (e *ErrorContextProvider) Name() string + func (e *ErrorContextProvider) TokenBudget() int + type ErrorGroup struct + Count int + FirstSeen time.Time + ID string + Instances []ErrorInstance + LastSeen time.Time + Pattern string + Resolution string + Status string + type ErrorGrouper struct + Groups map[string]*ErrorGroup + func NewErrorGrouper() *ErrorGrouper + func (eg *ErrorGrouper) Add(errorMsg, file string, line int, context string) *ErrorGroup + func (eg *ErrorGrouper) FindGroup(errorMsg string) *ErrorGroup + func (eg *ErrorGrouper) FormatGroups() string + func (eg *ErrorGrouper) GetActive() []*ErrorGroup + func (eg *ErrorGrouper) GetResolution(errorMsg string) string + func (eg *ErrorGrouper) IsKnown(errorMsg string) bool + func (eg *ErrorGrouper) MarkResolved(groupID, resolution string) + func (eg *ErrorGrouper) Prune(maxAge time.Duration) + type ErrorHelp struct + AutoFix string + DocURL string + Examples []string + Explanation string + Pattern *regexp.Regexp + Suggestions []string + Title string + type ErrorInstance struct + Context string + File string + Line int + Message string + Timestamp time.Time + type ErrorLearner struct + Patterns map[string]*LearnedPattern + func NewErrorLearner() *ErrorLearner + func (el *ErrorLearner) BuildFixSuggestion(errorMsg string) string + func (el *ErrorLearner) Export() ([]byte, error) + func (el *ErrorLearner) Import(data []byte) error + func (el *ErrorLearner) Learn(errorMsg, fix, language, category string) + func (el *ErrorLearner) MatchLearned(errorMsg string) []*LearnedPattern + func (el *ErrorLearner) PruneWeak(minConfidence float64) + func (el *ErrorLearner) RecordFailure(patternID string) + func (el *ErrorLearner) RecordSuccess(patternID string) + func (el *ErrorLearner) Stats() ErrorLearnerStats + type ErrorLearnerStats struct + AvgConfidence float64 + ByCategory map[string]int + ByLanguage map[string]int + TotalPatterns int + type ErrorRecovery struct + History []RecoveryAttempt + MaxAttempts int + Strategies map[string]*RecoveryStrategy + func NewErrorRecovery() *ErrorRecovery + func (er *ErrorRecovery) BuildRecoveryPrompt(result *RecoveryResult) string + func (er *ErrorRecovery) FormatHistory(limit int) string + func (er *ErrorRecovery) Recover(err error, ctx *RecoveryContext) (*RecoveryResult, error) + func (er *ErrorRecovery) RegisterStrategy(strategy *RecoveryStrategy) + func (er *ErrorRecovery) ShouldRetry(err error) bool + func (er *ErrorRecovery) SuccessRate() float64 + type Event struct + Payload interface{} + Type EventType + type EventBus struct + func NewEventBus() *EventBus + func (eb *EventBus) Publish(event Event) + func (eb *EventBus) Subscribe(eventType EventType) chan Event + func (eb *EventBus) Unsubscribe(eventType EventType, ch chan Event) + type EventType string + const EventError + const EventFileChanged + const EventPermission + const EventSessionEnd + const EventSessionStart + const EventStreamChunk + const EventStreamDone + const EventToolCompleted + const EventToolFailed + const EventToolStarted + 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 Experience struct + Approach string + CreatedAt time.Time + Duration time.Duration + FilesModified []string + ID string + Outcome string + Score float64 + Steps []string + Tags []string + Task string + TokensUsed int + ToolsUsed []string + UsedCount int + type ExperienceStats struct + AvgDuration time.Duration + AvgScore float64 + AvgTokens int + ByOutcome map[string]int + TopTags []string + TopTools []string + TotalExperiences int + type ExperienceStore struct + Dir string + Experiences []*Experience + func NewExperienceStore(dir string) *ExperienceStore + func (es *ExperienceStore) BuildExperienceContext(task string, maxTokens int) string + func (es *ExperienceStore) Deduplicate() int + func (es *ExperienceStore) FindRelevant(task string, limit int) []*Experience + func (es *ExperienceStore) Generalize(exp *Experience) *Experience + func (es *ExperienceStore) Load() error + func (es *ExperienceStore) Prune(maxAge time.Duration, minScore float64) int + func (es *ExperienceStore) Record(task, approach, outcome string, steps, tools, files []string, tokens int, ...) *Experience + func (es *ExperienceStore) Save() error + func (es *ExperienceStore) Stats() ExperienceStats + type ExperimentLoop struct + MaxIters int + Results []ExperimentResult + Timeout time.Duration + ValidateCmd string + WorkDir string + func NewExperimentLoop(workDir, validateCmd string, maxIters int) *ExperimentLoop + func (el *ExperimentLoop) Run(ctx context.Context, ...) error + func (el *ExperimentLoop) Summary() string + type ExperimentResult struct + Change string + Duration time.Duration + ID int + Kept bool + Metric string + Passed bool + type ExplanationSection struct + CodeRef string + Content string + Title string + type ExternalDocs struct + Cache map[string]*DocResult + MaxTokens int + Sources []DocSource + func NewExternalDocs() *ExternalDocs + func (ed *ExternalDocs) BuildDocContext(results []DocResult, budget int) string + func (ed *ExternalDocs) ExtractPackageRefs(text string) []string + func (ed *ExternalDocs) FindRelevant(task string, language string, limit int) []DocResult + func (ed *ExternalDocs) FormatResults(results []DocResult) string + func (ed *ExternalDocs) RegisterSource(source DocSource) + type FailureLayer int + const LayerImplementation + const LayerIntent + const LayerSpec + func (l FailureLayer) String() string + type FailurePattern struct + Context string + ID string + Language string + LastSeen time.Time + Occurrences int + Pattern string + Resolution string + type FailureRecord struct + ErrorMsg string + ErrorType string + Model string + Provider string + Recovered bool + RecoveryDelay time.Duration + RetryCount int + Timestamp time.Time + type Feedback struct + Category string + Comment string + Context string + ID string + Rating int + SessionID string + TaskType string + Timestamp time.Time + type FeedbackCollector struct + Dir string + Entries []Feedback + ImplicitSignals []ImplicitSignal + func NewFeedbackCollector(dir string) *FeedbackCollector + func (fc *FeedbackCollector) FormatReport() string + func (fc *FeedbackCollector) GetByCategory(category string) []Feedback + func (fc *FeedbackCollector) GetSatisfactionScore() float64 + func (fc *FeedbackCollector) GetTrends() string + func (fc *FeedbackCollector) IdentifyIssues() []string + func (fc *FeedbackCollector) Load() error + func (fc *FeedbackCollector) RecordExplicit(rating int, comment, category, sessionID, taskType string) error + func (fc *FeedbackCollector) RecordImplicit(signal ImplicitSignal) error + func (fc *FeedbackCollector) Save() error + type FieldDoc struct + Desc string + Name string + Tag string + Type string + type FieldSpec struct + Description string + Enum []string + MaxLength int + MinLength int + Pattern string + Required bool + Type string + type FileChange struct + Approved bool + Comment string + Hunks []DiffHunk + NewContent string + OldContent string + Path string + Rejected bool + Stats ChangeStats + Type string + type FileContextProvider struct + MaxFiles int + RepoDir string + func (f *FileContextProvider) Description() string + func (f *FileContextProvider) Gather(ctx context.Context, query string) ([]ContextItem, error) + func (f *FileContextProvider) Name() string + func (f *FileContextProvider) TokenBudget() int + type FileDiffReport struct + Additions int + Deletions int + KeyChanges []string + Path string + Status string + Summary string + type FileEvent struct + Path string + Size int64 + Time time.Time + Type string + func DedupEvents(events []FileEvent) []FileEvent + type FileFix struct + Action string + File string + Line int + NewContent string + OldContent string + type FileMentionDetector struct + func NewFileMentionDetector(projectRoot string) *FileMentionDetector + func (d *FileMentionDetector) BuildSuggestion(newFiles []string) string + func (d *FileMentionDetector) DetectMentions(text string) []string + func (d *FileMentionDetector) FilterNew(paths []string, alreadyInContext map[string]bool) []string + func (d *FileMentionDetector) InjectFileMentionContext(text string, messages []client.EyrieMessage) string + type FileSnapshot struct + ModifiedContent []byte + OriginalContent []byte + OriginalMode os.FileMode + Path string + WasNew bool + type FileState struct + Hash string + IsGenerated bool + IsTest bool + Language string + ModTime time.Time + Path string + Size int64 + type FileSummary struct + Action string + Additions int + Deletions int + KeyChanges []string + Path string + Summary string + type FileTracker struct + ModifiedFiles map[string]int + ReadFiles map[string]int + func NewFileTracker() *FileTracker + func (ft *FileTracker) ExtractFromMessages(messages []client.EyrieMessage) + func (ft *FileTracker) FormatForSummary() string + func (ft *FileTracker) Merge(other *FileTracker) + func (ft *FileTracker) ParseFromSummary(summary string) + func (ft *FileTracker) RecordModified(path string) + func (ft *FileTracker) RecordRead(path string) + type FileWatcher struct + BatchWindow time.Duration + Debounce time.Duration + IgnorePatterns []string + OnChange func([]FileEvent) + Patterns []string + RootDir string + func NewFileWatcher(rootDir string, config WatcherConfig) *FileWatcher + func (fw *FileWatcher) ShouldIgnore(path string) bool + func (fw *FileWatcher) Start(ctx context.Context) error + func (fw *FileWatcher) Stop() + 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 FormatRule struct + Enabled bool + Fix func(string) string + Name string + Pattern *regexp.Regexp + type FormattedResponse struct + Changes []string + Formatted string + Original string + TokensDiff int + type FunctionDoc struct + Description string + Example string + Exported bool + Name string + Parameters []ParamDoc + Returns string + Signature string + type GatePhase int + const GateDone + const GateImplement + const GatePlan + const GateSpec + const GateVerify + func (p GatePhase) String() string + type GateResult struct + Passed bool + Phase GatePhase + Reason string + func RunQualityGates(gates []QualityGate) ([]GateResult, bool) + type GenCheck struct + CheckFn func(code, language string) []GenIssue + Language string + Name string + Severity string + type GenIssue struct + AutoFixable bool + Check string + Fix string + Line int + Message string + Severity string + func CheckBalancedDelimiters(code string) []GenIssue + func CheckCompleteness(code string) []GenIssue + func ValidateGo(code string) []GenIssue + func ValidatePython(code string) []GenIssue + func ValidateTypeScript(code string) []GenIssue + type GenValidation struct + Issues []GenIssue + Language string + Score float64 + Valid bool + type GenValidator struct + Checks []GenCheck + func NewGenValidator() *GenValidator + func (gv *GenValidator) Validate(code, language string) *GenValidation + type GitContext struct + RepoDir string + func NewGitContext(repoDir string) *GitContext + func (gc *GitContext) BuildContextForFile(path string) string + func (gc *GitContext) BuildContextForSession() string + func (gc *GitContext) GetBlame(path string, startLine, endLine int) ([]BlameLine, error) + func (gc *GitContext) GetBranch() (string, error) + func (gc *GitContext) GetDiffSummary() (string, error) + func (gc *GitContext) GetFileInfo(path string) (*GitFileInfo, error) + func (gc *GitContext) GetRecentChanges(days int) ([]CommitInfo, error) + func (gc *GitContext) GetRelatedFiles(path string) ([]string, error) + func (gc *GitContext) GetUncommitted() ([]string, error) + func (gc *GitContext) IsRecentlyModified(path string, within time.Duration) bool + type GitContextProvider struct + MaxCommits int + RepoDir string + func (g *GitContextProvider) Description() string + func (g *GitContextProvider) Gather(ctx context.Context, query string) ([]ContextItem, error) + func (g *GitContextProvider) Name() string + func (g *GitContextProvider) TokenBudget() int + type GitFileInfo struct + Blame []BlameLine + CommitCount int + Contributors []string + LastAuthor string + LastCommitMsg string + LastModified time.Time + Path string + RecentCommits []CommitInfo + type GitIssue struct + Author string + Body string + CreatedAt time.Time + Labels []string + Number int + State string + Title string + URL string + type GitProvider struct + BaseURL string + Owner string + Repo string + Token string + Type string + func NewGitProvider(providerType, token, owner, repo string) *GitProvider + func (gp *GitProvider) CreateIssue(title, body string, labels []string) (*GitIssue, error) + func (gp *GitProvider) CreatePR(title, body, branch, baseBranch string) (*PullRequest, error) + func (gp *GitProvider) GetCIStatus(branch string) (*CIStatus, error) + func (gp *GitProvider) GetIssue(number int) (*GitIssue, error) + func (gp *GitProvider) GetReviewComments(prNumber int) ([]string, error) + func (gp *GitProvider) ListIssues(state string, limit int) ([]GitIssue, error) + func (gp *GitProvider) ListPRs(state string, limit int) ([]PullRequest, error) + 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 GroundingResult struct + Grounded bool + Score float64 + SupportedClaims []string + TotalClaims int + UnsupportedClaims []string + type HallucinationGuard struct + Enabled bool + MaxRetries int + Threshold float64 + func NewHallucinationGuard() *HallucinationGuard + func (hg *HallucinationGuard) Check(response string, context []string) *GroundingResult + func (hg *HallucinationGuard) ExtractClaims(text string) []string + func (hg *HallucinationGuard) ExtractKeyTerms(claim string) []string + func (hg *HallucinationGuard) VerifyClaim(claim string, context []string) bool + type HeadTailWindow struct + HeadSize int + IncludeSummary bool + MaxTokens int + TailSize int + func NewHeadTailWindow(headSize, tailSize, maxTokens int) *HeadTailWindow + func (w *HeadTailWindow) Apply(messages []WindowMessage) *WindowResult + type HealAttempt struct + Attempt int + Duration time.Duration + Error string + ExitCode int + Fix string + Output string + Script string + Success bool + type HealResult struct + Attempts []HealAttempt + FinalSuccess bool + FixesApplied int + TotalDuration time.Duration + type HintsLoader struct + func NewHintsLoader() *HintsLoader + func (h *HintsLoader) IsLoaded(dir string) bool + func (h *HintsLoader) LoadHints(dir string) string + func (h *HintsLoader) LoadHintsRecursive(dir string) string + func (h *HintsLoader) Reset() + type Hypothesis struct + Confirmed bool + Description string + Evidence string + Tested bool + type ImpactAnalysis struct + ChangedFiles []string + DirectlyAffected []string + RiskScore float64 + Suggestions []string + TestCoverage float64 + TransitivelyAffected []string + type ImpactAnalyzer struct + ImportGraph map[string][]string + ProjectDir string + TestMapping map[string][]string + func NewImpactAnalyzer(projectDir string) *ImpactAnalyzer + func (ia *ImpactAnalyzer) Analyze(changedFiles []string) (*ImpactAnalysis, error) + func (ia *ImpactAnalyzer) FindDirectDependents(pkg string) []string + func (ia *ImpactAnalyzer) FindTestCoverage(packages []string) float64 + func (ia *ImpactAnalyzer) FindTransitiveDependents(pkg string, depth int) []string + func (ia *ImpactAnalyzer) GenerateSuggestions(analysis *ImpactAnalysis) []string + func (ia *ImpactAnalyzer) QuickImpact(file string) string + func (ia *ImpactAnalyzer) ScoreRisk(analysis *ImpactAnalysis) float64 + type ImplicitSignal struct + SessionID string + Timestamp time.Time + ToolName string + Type string + type InjectionScanner struct + Patterns []injectionPattern + func NewInjectionScanner() *InjectionScanner + func (is *InjectionScanner) Scan(input string) *ScanResult + type Insight struct + Category string + Confidence float64 + Content string + CreatedAt time.Time + ID string + Language string + LastUsed time.Time + SuccessCount int + type InspectionAction int + const ActionAllow + const ActionDeny + const ActionRequireApproval + type InspectionResult struct + Action InspectionAction + Confidence float64 + Reason string + ToolName string + func (r InspectionResult) ShouldExecute() bool + type IntegrationPipeline struct + AdaptivePrompt *SystemPromptBuilder + BudgetAllocator *BudgetAllocator + CommandHistory *CommandHistory + ContextDecay *ContextDecay + ErrorRecovery *ErrorRecovery + ExperienceStore *ExperienceStore + FeedbackCollector *FeedbackCollector + FileMentionDetector *FileMentionDetector + InjectionScanner *InjectionScanner + IntentClassifier *IntentClassifier + KnowledgeBase *KnowledgeBase + LintLoop *LintLoop + OutputRedactor *OutputRedactor + QualityScorer *QualityScorer + ResponseCache *ResponseCache + ResponseFormatter *ResponseFormatter + SelfAssessor *SelfAssessor + StallDetector *StallDetector + TestLoop *TestLoop + Timeline *Timeline + TokenPredictor *TokenPredictor + TokenReporter *TokenReporter + ToolSelector *ToolSelector + WorkspaceState *WorkspaceState + func NewIntegrationPipeline() *IntegrationPipeline + func (p *IntegrationPipeline) EndSession(success bool, taskGoal string) *SessionSummary + func (p *IntegrationPipeline) FormatPipelineStatus() string + func (p *IntegrationPipeline) PostResponse(response string, messages []client.EyrieMessage) *PostResponseResult + func (p *IntegrationPipeline) PostToolExecution(toolName string, args map[string]interface{}, output string, err error) *PostToolResult + func (p *IntegrationPipeline) PreQuery(messages []client.EyrieMessage, userInput string) *PreQueryResult + type Intelligence struct + Activity *memory.ActivityTracker + Beliefs *BeliefState + Enhanced *memory.EnhancedMemoryManager + FileMentions *FileMentionDetector + Memory MemoryRecaller + SkillDistill *memory.SkillDistiller + Sleeptime *memory.SleeptimeAgent + YaadBridge *memory.YaadBridge + type Intent struct + Category string + Confidence float64 + EstimatedComplexity string + Keywords []string + SubCategory string + SuggestedTools []string + type IntentClassifier struct + History []ClassifiedInput + Rules []IntentRule + func NewIntentClassifier() *IntentClassifier + func (ic *IntentClassifier) Classify(input string) *Intent + func (ic *IntentClassifier) ClassifyForRouting(input string) (model, tools string) + func (ic *IntentClassifier) EstimateComplexity(input string) string + func (ic *IntentClassifier) GetPatterns() map[string]int + func (ic *IntentClassifier) RecordClassification(input string, intent *Intent) + func (ic *IntentClassifier) SuggestTools(intent *Intent) []string + type IntentRule struct + Category string + Patterns []string + SubCategory string + Tools []string + Weight float64 + type InvestigatePhase int + const InvestigateFix + const InvestigateIsolate + const InvestigateReproduce + const InvestigateRootCause + const InvestigateVerify + func (p InvestigatePhase) String() string + type Issue struct + Body string + ClosedAt *time.Time + CreatedAt time.Time + ID string + Labels []string + Resolution string + State string + Title string + Tokens []string + type IssueIndex struct + InvertedIndex map[string][]int + Issues []*Issue + func NewIssueIndex() *IssueIndex + func (idx *IssueIndex) AddIssue(issue *Issue) + func (idx *IssueIndex) FindSimilar(query string, limit int) []*SimilarIssue + func (idx *IssueIndex) ImportFromCommits(projectDir string) error + func (idx *IssueIndex) ImportFromGitHub(projectDir string) error + type KnowledgeBase struct + Categories map[string][]string + Dir string + Entries map[string]*KnowledgeEntry + func NewKnowledgeBase(dir string) *KnowledgeBase + func (kb *KnowledgeBase) Add(entry *KnowledgeEntry) error + func (kb *KnowledgeBase) BuildContextForTask(task string, maxTokens int) string + func (kb *KnowledgeBase) ExtractFromSession(messages []string, outcome string) []*KnowledgeEntry + func (kb *KnowledgeBase) FormatEntry(entry *KnowledgeEntry) string + func (kb *KnowledgeBase) GetByCategory(category string) []*KnowledgeEntry + func (kb *KnowledgeBase) Load() error + func (kb *KnowledgeBase) Merge(other *KnowledgeBase) + func (kb *KnowledgeBase) Prune(minConfidence float64, maxAge time.Duration) + func (kb *KnowledgeBase) Save() error + func (kb *KnowledgeBase) Search(query string, limit int) []*KnowledgeEntry + func (kb *KnowledgeBase) Stats() KnowledgeStats + type KnowledgeEntry struct + Category string + Confidence float64 + Content string + CreatedAt time.Time + Examples []string + ID string + Language string + LastUsed time.Time + Source string + Tags []string + Title string + UsageCount int + type KnowledgeStats struct + AvgConfidence float64 + ByCategory map[string]int + ByLanguage map[string]int + MostUsed []string + TotalEntries int + type LanguageConfig struct + BuildCommand string + CommentStyle string + Extensions []string + FormatCommand string + FunctionPattern *regexp.Regexp + ImportPattern *regexp.Regexp + LintCommand string + Name string + PackageFile string + PackageManager string + TestCommand string + type LanguageRegistry struct + Languages map[string]*LanguageConfig + func NewLanguageRegistry() *LanguageRegistry + func (r *LanguageRegistry) Detect(projectDir string) *LanguageConfig + func (r *LanguageRegistry) DetectAll(projectDir string) []*LanguageConfig + func (r *LanguageRegistry) FormatCommand(projectDir string) string + func (r *LanguageRegistry) GetByExtension(ext string) *LanguageConfig + func (r *LanguageRegistry) GetByName(name string) *LanguageConfig + func (r *LanguageRegistry) LintCommand(projectDir string) string + func (r *LanguageRegistry) Register(config *LanguageConfig) + func (r *LanguageRegistry) TestCommand(projectDir string) string + type LargeResponseHandler struct + MaxChunkSize int + OverlapLines int + func NewLargeResponseHandler() *LargeResponseHandler + func (h *LargeResponseHandler) Process(content string) *ChunkedResponse + type LearnedPattern struct + Category string + Confidence float64 + Example string + FailureCount int + Fix string + FixTemplate string + ID string + Language string + LastSeen time.Time + Pattern string + SuccessCount int + type LearnerStats struct + AvgConfidence float64 + ConventionCount int + FailureCount int + InsightCount int + type LensGenerator func(file, content string) []CodeLens + type LintLoop struct + Enabled bool + LintCommands map[string]string + MaxReflections int + func NewLintLoop() *LintLoop + func (ll *LintLoop) BuildReflectedMessage(result *LintResult) string + func (ll *LintLoop) RecordReflection(path string) int + func (ll *LintLoop) ReflectionCount(path string) int + func (ll *LintLoop) Reset() + func (ll *LintLoop) ResetFile(path string) + func (ll *LintLoop) RunLint(path string) (*LintResult, error) + func (ll *LintLoop) ShouldRetry(reflectionCount int) bool + type LintResult struct + Errors []string + ExitCode int + File string + type LogEntry struct + Caller string + Fields map[string]interface{} + Level string + Message string + SessionID string + Timestamp time.Time + type LogLevel int + const LevelDebug + const LevelError + const LevelFatal + const LevelInfo + const LevelWarn + func ParseLevel(s string) LogLevel + type MemoryConsolidator struct + ConsolidatedMemories []ConsolidatedMemory + Dir string + LastConsolidation time.Time + RawMemories []RawMemory + func NewMemoryConsolidator(dir string) *MemoryConsolidator + func (mc *MemoryConsolidator) Consolidate() ([]ConsolidatedMemory, error) + func (mc *MemoryConsolidator) Expire() + func (mc *MemoryConsolidator) ExtractConventions(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) ExtractDecisions(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) ExtractFacts(raw []RawMemory) []ConsolidatedMemory + func (mc *MemoryConsolidator) FormatMemories(memories []ConsolidatedMemory) string + func (mc *MemoryConsolidator) Ingest(content, source, sessionID string) + func (mc *MemoryConsolidator) Load() error + func (mc *MemoryConsolidator) Recall(query string, limit int) []ConsolidatedMemory + func (mc *MemoryConsolidator) Save() error + func (mc *MemoryConsolidator) Stats() ConsolidatorStats + type MigrationPlan struct + AffectedFiles []string + CreatedAt time.Time + Description string + EstimatedChanges int + Name string + RiskLevel string + Steps []MigrationStep + Validated bool + type MigrationPlanner struct + ProjectDir string + func NewMigrationPlanner(projectDir string) *MigrationPlanner + func (mp *MigrationPlanner) Execute(plan *MigrationPlan) (*MigrationResult, error) + func (mp *MigrationPlanner) PlanAPIChange(oldSig, newSig string) (*MigrationPlan, error) + func (mp *MigrationPlanner) PlanDependencyUpgrade(pkg, fromVersion, toVersion string) (*MigrationPlan, error) + func (mp *MigrationPlanner) PlanPatternReplace(pattern, replacement, fileGlob string) (*MigrationPlan, error) + func (mp *MigrationPlanner) PlanRename(oldName, newName string) (*MigrationPlan, error) + func (mp *MigrationPlanner) Preview(plan *MigrationPlan) string + func (mp *MigrationPlanner) Rollback(plan *MigrationPlan) error + func (mp *MigrationPlanner) Validate(plan *MigrationPlan) []string + type MigrationResult struct + Completed int + Failed int + ManualReview []MigrationStep + Skipped int + type MigrationStep struct + Completed bool + Description string + Error string + Files []string + Manual bool + Order int + Pattern string + Replacement string + type ModelPrice struct + CacheReadPerMillion float64 + CacheWritePerMillion float64 + InputPerMillion float64 + OutputPerMillion float64 + type ModuleInfo struct + Dependencies []string + Name string + Path string + PublicAPI []string + Purpose string + Size int + type MultiRepoConfig struct + Repos []RepoRelation + type MultiRepoContext struct + BaseDir string + Config MultiRepoConfig + func LoadMultiRepoConfig(projectDir string) *MultiRepoContext + func (mrc *MultiRepoContext) HasRelatedRepos() bool + func (mrc *MultiRepoContext) LoadBoundaryContext() string + type Observability struct + Log *logger.Logger + Metrics *metrics.Registry + Tracer *trace.Tracer + type OptimizationStep struct + Gradient PromptGradient + NewScore float64 + NewValue string + OldScore float64 + OldValue string + Parameter string + Timestamp time.Time + type OptimizedResult struct + Applied []string + Optimized string + Original string + TokensSaved int + type Optimizer struct + Cascade *CascadeRouter + Cost Cost + CostTracker *CostTracker + MaxBudget float64 + Router *modelPkg.Router + func (o *Optimizer) WithinBudget() bool + type OutputRedactor struct + KnownSecrets map[string]string + Patterns []*RedactPattern + Stats RedactStats + func NewOutputRedactor() *OutputRedactor + func (r *OutputRedactor) AddKnownSecret(name, value string) + func (r *OutputRedactor) AddPattern(name string, pattern string, category string) error + func (r *OutputRedactor) FormatStats() string + func (r *OutputRedactor) IsClean(output string) bool + func (r *OutputRedactor) Redact(output string) string + func (r *OutputRedactor) RedactEnvVars(output string) string + func (r *OutputRedactor) RedactPaths(output string, homedir string) string + type PRCompressor struct + LanguagePriority map[string]int + MaxTokens int + func NewPRCompressor(maxTokens int) *PRCompressor + func (pc *PRCompressor) CompressDiff(fullDiff string, budget int) *CompressedPR + func (pc *PRCompressor) ScoreFile(path string) float64 + type PackageDoc struct + Description string + FileCount int + Functions []FunctionDoc + Name string + Path string + Types []TypeDoc + type PackingResult struct + DroppedMessages []int + KeptMessages []int + Summary string + TotalTokens int + Utilization float64 + type PackingStrategy string + const StrategyCompression + const StrategyHybrid + const StrategyRecent + const StrategyRelevance + type ParamDoc struct + Desc string + Name string + Type string + type PartySession struct + Personas []Persona + Topic string + Turns []PartyTurn + func NewPartySession(topic string, personaCodes []string) *PartySession + func (ps *PartySession) GeneratePrompt(roundNum int) string + type PartyTurn struct + Content string + Persona Persona + type Pattern struct + Confidence float64 + Description string + Files []string + Name string + func DetectPatterns(dir string) []Pattern + type PatternLibrary struct + Dir string + Patterns map[string]*PromptPattern + func NewPatternLibrary(dir string) *PatternLibrary + func (pl *PatternLibrary) Apply(patternName string, input string) (string, string, error) + func (pl *PatternLibrary) Chain(patterns []string, input string) []string + func (pl *PatternLibrary) Get(name string) *PromptPattern + func (pl *PatternLibrary) ListByTag(tag string) []*PromptPattern + func (pl *PatternLibrary) LoadBuiltins() + func (pl *PatternLibrary) LoadFromDir(dir string) error + func (pl *PatternLibrary) Register(pattern *PromptPattern) + func (pl *PatternLibrary) Remove(name string) + func (pl *PatternLibrary) Search(query string) []*PromptPattern + type Persona struct + Code string + Icon string + Name string + Style string + Title string + type PlanStep struct + Action string + Description string + Details string + File string + type PlannedCall struct + Args map[string]interface{} + Targets []string + ToolName string + type PostResponseResult struct + FormattedResponse string + MentionedFiles []string + QualityScore float64 + TokensUsed int + type PostToolResult struct + LintErrors string + RecoveryAction string + ShouldRetry bool + StallWarning string + TestFailures string + type PreQueryResult struct + BudgetAllocation map[string]int + CacheHit bool + CachedResponse string + InjectionRisk *ScanResult + Intent *Intent + PredictedCost float64 + SuggestedTools []string + SystemPrompt string + type Prediction struct + Confidence float64 + EstimatedCost float64 + InputTokens int + OutputTokens int + Reasoning string + TotalTokens int + type PredictionRecord struct + Accuracy float64 + Actual int + Model string + Predicted int + TaskType string + Timestamp time.Time + type ProfileSpan struct + Children []ProfileSpan + Duration time.Duration + End time.Time + Metadata map[string]string + Name string + Start time.Time + type Profiler struct + Counters map[string]*Counter + Enabled bool + Spans []ProfileSpan + Timers map[string]*Timer + func NewProfiler() *Profiler + func (p *Profiler) EndSpan(span *ProfileSpan) + func (p *Profiler) ExportJSON() string + func (p *Profiler) GetP50(timer string) time.Duration + func (p *Profiler) GetP95(timer string) time.Duration + func (p *Profiler) GetP99(timer string) time.Duration + func (p *Profiler) HotPaths() [][]string + func (p *Profiler) Increment(counter string, delta int64) + func (p *Profiler) Recommendations() []string + func (p *Profiler) RecordDuration(timer string, d time.Duration) + func (p *Profiler) Report() string + func (p *Profiler) Reset() + func (p *Profiler) StartSpan(name string) *ProfileSpan + type ProjectAnalysis struct + Architecture string + Complexity string + Conventions []string + Dependencies int + EntryPoints []string + Framework string + KeyModules []ModuleInfo + LOC int + Language string + Name string + Patterns []Pattern + TestCoverage string + type ProjectAnalyzer struct + Dir string + func NewProjectAnalyzer(dir string) *ProjectAnalyzer + func (pa *ProjectAnalyzer) Analyze() (*ProjectAnalysis, error) + func (pa *ProjectAnalyzer) AnalyzeModule(path string) *ModuleInfo + type ProjectContext struct + Loaded map[string]string + ProjectDir string + func NewProjectContext(projectDir string) *ProjectContext + func (pc *ProjectContext) HasContext() bool + func (pc *ProjectContext) InitPrompt() string + func (pc *ProjectContext) Load() string + type ProjectDoc struct + Architecture string + Description string + GeneratedAt time.Time + Name string + Packages []PackageDoc + QuickStart string + type ProjectSnapshot struct + DirectoryListing string + GatheredAt time.Time + GitStatus string + RecentCommits string + func (s *ProjectSnapshot) ForExploreMode() *ProjectSnapshot + type ProjectSnapshotCache struct + func NewProjectSnapshotCache(dir string, ttl time.Duration) *ProjectSnapshotCache + func (c *ProjectSnapshotCache) Get(ctx context.Context) *ProjectSnapshot + func (c *ProjectSnapshotCache) Invalidate() + type PromptBuildContext struct + HasGoals bool + HasMemory bool + Language string + Model string + ProjectType string + Task string + TurnCount int + type PromptExample struct + Category string + Input string + Output string + Score float64 + type PromptFewShotSelector struct + Examples []PromptExample + func (fs *PromptFewShotSelector) Select(query string, k int) []PromptExample + type PromptGradient struct + Direction string + Feedback string + Magnitude float64 + Parameter string + type PromptMsg struct + Content string + Role string + Tokens int + type PromptOpt struct + ApplyFn func(string) string + Enabled bool + Name string + type PromptOptimizer struct + History []OptimizationStep + Parameters map[string]*PromptParameter + Path string + func NewPromptOptimizer() *PromptOptimizer + func (po *PromptOptimizer) ApplyGradient(paramName, newValue string, gradient PromptGradient) + func (po *PromptOptimizer) Get(name string) string + func (po *PromptOptimizer) NeedsOptimization(threshold float64) []*PromptParameter + func (po *PromptOptimizer) RecordFailure(paramName, feedback string) + func (po *PromptOptimizer) RecordSuccess(paramName string) + func (po *PromptOptimizer) Register(name, initialValue string) + type PromptParameter struct + Name string + Score float64 + Value string + Version int + type PromptPattern struct + Author string + Description string + Name string + OutputFormat string + SystemPrompt string + Tags []string + UserTemplate string + Version string + type PromptSection struct + Conditional func() bool + Content string + Dynamic func() string + Name string + Priority int + Tokens int + func DefaultSections(ctx PromptBuildContext) []PromptSection + type PullRequest struct + BaseBranch string + Body string + Branch string + Draft bool + Labels []string + Mergeable bool + Number int + State string + Title string + URL string + type QualityGate struct + Check func() GateResult + Phase GatePhase + func ImplementGate(validateCmd string, workDir string) QualityGate + func SpecGate(spec *Spec) QualityGate + type QualityScorer struct + History []ScoredResponse + Weights ScoreWeights + func NewQualityScorer() *QualityScorer + func (qs *QualityScorer) AverageScore(n int) float64 + func (qs *QualityScorer) FormatReport(last int) string + func (qs *QualityScorer) GenerateFeedback(scored *ScoredResponse) []string + func (qs *QualityScorer) Score(ctx ResponseContext) *ScoredResponse + func (qs *QualityScorer) TrendAnalysis() string + type QuickDevPhase int + const QuickDevClarify + const QuickDevImplement + const QuickDevPresent + const QuickDevReview + const QuickDevRoute + func (p QuickDevPhase) String() string + type QuickDevState struct + FilesChanged []string + Intent string + IsOneShot bool + Phase QuickDevPhase + Spec string + type RawMemory struct + Content string + Processed bool + SessionID string + Source string + Timestamp time.Time + type ReadOnlyContext struct + Files map[string]*ContextFile + MaxTokenBudget int + Patterns []string + func NewReadOnlyContext(maxBudget int) *ReadOnlyContext + func (rc *ReadOnlyContext) AddFile(path string, opts ...ContextFileOption) error + func (rc *ReadOnlyContext) AddPattern(pattern string) error + func (rc *ReadOnlyContext) BuildContextBlock() string + func (rc *ReadOnlyContext) Evict() []string + func (rc *ReadOnlyContext) IsReadOnly(path string) bool + func (rc *ReadOnlyContext) RefreshStale() error + func (rc *ReadOnlyContext) RemoveFile(path string) + func (rc *ReadOnlyContext) Stats() ContextStats + type Recipe struct + Author string + CreatedAt time.Time + Description string + ID string + Model string + Name string + Prompt string + Provider string + Settings map[string]interface{} + Tools []string + Version string + type RecipeRegistry struct + Dir string + Recipes map[string]*Recipe + func NewRecipeRegistry(dir string) *RecipeRegistry + func (r *RecipeRegistry) Create(recipe *Recipe) string + func (r *RecipeRegistry) Decode(deeplink string) (*Recipe, error) + func (r *RecipeRegistry) Encode(recipe *Recipe) string + func (r *RecipeRegistry) Execute(ctx context.Context, recipe *Recipe, ...) (string, error) + func (r *RecipeRegistry) FormatRecipe(recipe *Recipe) string + func (r *RecipeRegistry) Get(id string) *Recipe + func (r *RecipeRegistry) ImportFromURL(url string) (*Recipe, error) + func (r *RecipeRegistry) List() []*Recipe + func (r *RecipeRegistry) Load() error + func (r *RecipeRegistry) Save() error + func (r *RecipeRegistry) Share(recipe *Recipe) string + func (r *RecipeRegistry) Validate(recipe *Recipe) []string + type Recommendation struct + Action string + Description string + EstimatedSavings float64 + Priority string + Type string + type RecoveryAttempt struct + Duration time.Duration + Error string + Recovered bool + Strategy string + Timestamp time.Time + type RecoveryContext struct + Attempt int + Error error + ErrorMsg string + FilesModified []string + LastArgs map[string]interface{} + LastToolCall string + Messages []string + type RecoveryResult struct + Action string + Message string + Recovered bool + RetryWith string + type RecoveryStrategy struct + ErrorPattern *regexp.Regexp + FailureCount int + Name string + Priority int + RecoverFn func(err error, context *RecoveryContext) (*RecoveryResult, error) + SuccessCount int + type RedactPattern struct + Category string + Name string + Pattern *regexp.Regexp + Replacement string + type RedactStats struct + ByCategory map[string]int + BytesSaved int + TotalRedacted int + type ReflectionEntry struct + Attempt int + TaskGoal string + Timestamp time.Time + WhatFailed string + WhatToDo string + WhyFailed string + type Release struct + BreakingChanges []ChangeEntry + Changes []ChangeEntry + Contributors []string + Date time.Time + Stats ReleaseStats + Version string + type ReleaseManager struct + CurrentVersion string + ProjectDir string + func NewReleaseManager(projectDir string) *ReleaseManager + func (rm *ReleaseManager) DetectCurrentVersion() (string, error) + func (rm *ReleaseManager) GatherChanges(sinceTag string) ([]ChangeEntry, error) + func (rm *ReleaseManager) PrepareRelease() (*Release, error) + func (rm *ReleaseManager) ValidateRelease(release *Release) []string + type ReleaseStats struct + Additions int + Commits int + Contributors int + Deletions int + FilesChanged int + type RepoRelation struct + Path string + Relation string + type RequestCost struct + CacheHit bool + CostUSD float64 + Duration time.Duration + InputTokens int + Model string + OutputTokens int + Provider string + TaskType string + Timestamp time.Time + type ResearchAgent struct + MaxWorkers int + Results []ResearchResult + Timeout time.Duration + func NewResearchAgent(maxWorkers int) *ResearchAgent + func (ra *ResearchAgent) DecomposeQuestion(question string) []string + func (ra *ResearchAgent) FormatResult(result *ResearchResult) string + func (ra *ResearchAgent) ParallelSearch(ctx context.Context, queries []string, searchFn func(string) (string, error)) []ResearchFinding + func (ra *ResearchAgent) RankFindings(findings []ResearchFinding, query string) []ResearchFinding + func (ra *ResearchAgent) Research(ctx context.Context, query ResearchQuery, ...) (*ResearchResult, error) + func (ra *ResearchAgent) Synthesize(findings []ResearchFinding, query string) string + type ResearchFinding struct + Confidence float64 + Content string + Relevance float64 + Source string + type ResearchQuery struct + MaxTokens int + Question string + Sources []string + SubQuestions []string + type ResearchResult struct + Duration time.Duration + Findings []ResearchFinding + Query string + Sources []string + TotalTokens int + type ResponseCache struct + Entries map[string]*CacheEntry + HitCount int64 + MaxAge time.Duration + MaxEntries int + MissCount int64 + func NewResponseCache(maxEntries int, maxAge time.Duration) *ResponseCache + func (rc *ResponseCache) EvictLRU() + func (rc *ResponseCache) Export() ([]byte, error) + func (rc *ResponseCache) FormatStats() string + func (rc *ResponseCache) Get(prompt, model string) (*CacheEntry, bool) + func (rc *ResponseCache) Import(data []byte) error + func (rc *ResponseCache) Invalidate(pattern string) + func (rc *ResponseCache) InvalidateByAge(maxAge time.Duration) + func (rc *ResponseCache) Set(prompt, response, model string, tokens int) + func (rc *ResponseCache) SimilarityMatch(prompt string, threshold float64) (*CacheEntry, float64) + func (rc *ResponseCache) Stats() CacheStats + type ResponseContext struct + AssistantResponse string + Duration time.Duration + FilesModified []string + LintPassed bool + TestsPassed bool + TokensUsed int + ToolCallCount int + ToolErrors int + UserPrompt string + type ResponseFormatter struct + Rules []FormatRule + func NewResponseFormatter() *ResponseFormatter + func (rf *ResponseFormatter) AddRule(rule FormatRule) + func (rf *ResponseFormatter) DisableRule(name string) + func (rf *ResponseFormatter) EnableRule(name string) + func (rf *ResponseFormatter) Format(response string) *FormattedResponse + type RetryDecision struct + Delay time.Duration + FallbackModel string + FallbackProvider string + Reason string + ShouldRetry bool + type RetryItem struct + Args map[string]interface{} + Attempts int + CreatedAt time.Time + Error string + ID string + MaxAttempts int + NextRetry time.Time + Operation string + Priority int + Status string + type RetryQueue struct + BackoffBase time.Duration + BackoffMax time.Duration + Items []*RetryItem + MaxSize int + func NewRetryQueue() *RetryQueue + func (rq *RetryQueue) CalculateBackoff(attempts int) time.Duration + func (rq *RetryQueue) Clear() + func (rq *RetryQueue) Dequeue() *RetryItem + func (rq *RetryQueue) Enqueue(operation string, args map[string]interface{}, err string, priority int) *RetryItem + func (rq *RetryQueue) FormatQueue() string + func (rq *RetryQueue) GetPending() []*RetryItem + func (rq *RetryQueue) GetReady() []*RetryItem + func (rq *RetryQueue) MarkFailed(id string, err string) + func (rq *RetryQueue) MarkSuccess(id string) + func (rq *RetryQueue) Prune() + func (rq *RetryQueue) Size() int + type RetryStrategy struct + AbortOn []string + BackoffMultiplier float64 + BaseDelay time.Duration + JitterPct float64 + MaxDelay time.Duration + MaxRetries int + Provider string + RetryOn []string + type ReviewBot struct + Rules []ReviewRule + Severity string + func NewReviewBot() *ReviewBot + func (rb *ReviewBot) ReviewDiff(diff string) (*ReviewReport, error) + func (rb *ReviewBot) ReviewFile(path, content string) (*ReviewReport, error) + type ReviewComment struct + Category string + File string + Line int + Message string + RuleID string + Severity string + Suggestion string + func FilterBySeverity(comments []ReviewComment, minSeverity string) []ReviewComment + type ReviewFinding struct + Category string + File string + Fix string + Issue string + Line int + Severity string + type ReviewReport struct + BySeverity map[string]int + Comments []ReviewComment + Duration time.Duration + FilesReviewed int + IssuesFound int + type ReviewResult struct + Agreement float64 + All []Solution + Attempts int + Best *Solution + TotalDuration time.Duration + TotalTokens int + type ReviewRule struct + Category string + Check func(file string, lines []string, diff []DiffLine) []ReviewComment + ID string + Language string + Name string + type RiskAssessment struct + Factors []RiskFactor + Level string + Mitigations []string + Recommendation string + Score float64 + type RiskAssessor struct + Factors []RiskFactorDef + func NewRiskAssessor() *RiskAssessor + func (ra *RiskAssessor) Assess(ctx *RiskContext) *RiskAssessment + type RiskContext struct + Complexity int + Diff string + Files []string + FilesAffected int + HasBreakingChange bool + IsExported bool + LinesChanged int + TestsExist bool + type RiskFactor struct + Description string + Name string + Score float64 + Weight float64 + type RiskFactorDef struct + EvaluateFn func(ctx *RiskContext) float64 + Name string + Weight float64 + type RotatingWriter struct + Dir string + MaxFiles int + MaxSize int64 + Prefix string + func NewRotatingWriter(dir, prefix string) (*RotatingWriter, error) + func (rw *RotatingWriter) Close() error + func (rw *RotatingWriter) Write(p []byte) (n int, err error) + type SafetyLayer struct + Autonomy AutonomyLevel + Limits *LimitTracker + Perm *PermissionEngine + Protected *ProtectedPaths + Sandbox *DiffSandbox + func (sl *SafetyLayer) IsPermitted(action string) bool + type Sample struct + Content string + Duration time.Duration + ID int + Score float64 + TokensUsed int + func BestScore(samples []Sample) *Sample + func MajorityVote(samples []Sample) *Sample + func Synthesize(samples []Sample) *Sample + type Scaffolder struct + TemplateDir string + Templates map[string]*Template + func NewScaffolder() *Scaffolder + func (s *Scaffolder) Generate(templateName string, vars map[string]string, outputDir string) error + func (s *Scaffolder) ListTemplates() []*Template + func (s *Scaffolder) LoadTemplate(path string) (*Template, error) + func (s *Scaffolder) Preview(templateName string, vars map[string]string) string + func (s *Scaffolder) RegisterTemplate(t *Template) + func (s *Scaffolder) ValidateVars(tmpl *Template, vars map[string]string) []string + type ScaleBehavior struct + AutoApprove bool + MaxTurns int + PlanRequired bool + Scale TaskScale + ScanScope string + func GetBehavior(scale TaskScale) ScaleBehavior + type ScanResult struct + IsRisky bool + Patterns []string + RiskLevel string + Suggestion string + type Schema struct + Examples []string + Fields map[string]FieldSpec + Name string + Pattern *regexp.Regexp + Required []string + Type string + type SchemaValidationError struct + Expected string + Field string + Got string + Message string + type SchemaValidationResult struct + Errors []SchemaValidationError + Extracted interface{} + Valid bool + Warnings []string + type SchemaValidator struct + Schemas map[string]*Schema + func NewSchemaValidator() *SchemaValidator + func (sv *SchemaValidator) Register(name string, schema *Schema) + func (sv *SchemaValidator) Validate(schemaName string, output string) *SchemaValidationResult + func (sv *SchemaValidator) ValidateJSON(output string, schema *Schema) *SchemaValidationResult + type ScoreWeights struct + Completeness float64 + Conciseness float64 + Correctness float64 + Safety float64 + ToolUsage float64 + func DefaultWeights() ScoreWeights + type ScoredMessage struct + Content string + Index int + MustKeep bool + Role string + Score float64 + Tokens int + type ScoredResponse struct + Breakdown map[string]float64 + Feedback []string + Model string + Score float64 + TaskType string + Timestamp time.Time + type ScrapeResult struct + Content string + ContentType string + FetchedAt time.Time + StatusCode int + Title string + TokenEstimate int + URL string + type SelectedTests struct + Coverage float64 + Packages []string + Reason map[string]string + Tests []string + type SelfAssessor struct + History []Assessment + func NewSelfAssessor() *SelfAssessor + func (sa *SelfAssessor) Assess(ctx TaskContext) *Assessment + func (sa *SelfAssessor) AverageScore(n int) float64 + func (sa *SelfAssessor) GetTrend(dimension string) string + func (sa *SelfAssessor) IdentifyStrengths(ctx TaskContext) []string + func (sa *SelfAssessor) IdentifyWeaknesses(ctx TaskContext) []string + func (sa *SelfAssessor) SuggestImprovements(ctx TaskContext) []string + type SelfAwareness struct + MaxComplexity TaskScale + Specialties []string + func (sa *SelfAwareness) DelegationPrompt(prompt string, reason string) string + func (sa *SelfAwareness) ShouldDelegate(prompt string, currentScale TaskScale) bool + type SelfHealer struct + ChatFn func(ctx context.Context, prompt string) (string, error) + History []HealAttempt + MaxAttempts int + Timeout time.Duration + func NewSelfHealer(chatFn func(context.Context, string) (string, error)) *SelfHealer + func (sh *SelfHealer) ApplyFixes(fixes []FileFix) error + func (sh *SelfHealer) BuildFixPrompt(script, output, errorMsg string, attempt int) string + func (sh *SelfHealer) Heal(ctx context.Context, scriptPath string) (*HealResult, error) + func (sh *SelfHealer) HealCommand(ctx context.Context, command string) (*HealResult, error) + func (sh *SelfHealer) ParseFix(response string) ([]FileFix, error) + func (sh *SelfHealer) RunScript(ctx context.Context, path string) (stdout, stderr string, exitCode int, err error) + type SelfImproveEntry struct + Category string + Lesson string + Timestamp time.Time + What string + Why string + type SelfImprover struct + Entries []SelfImproveEntry + Path string + func NewSelfImprover() *SelfImprover + func (si *SelfImprover) ForPrompt(maxEntries int) string + func (si *SelfImprover) Learn(what, why, lesson, category string) + func (si *SelfImprover) Lessons(category string) []SelfImproveEntry + type SemanticAnalyzer struct + func NewSemanticAnalyzer() *SemanticAnalyzer + func (sa *SemanticAnalyzer) AnalyzeDiff(diff string) (*SemanticDiff, error) + func (sa *SemanticAnalyzer) FindAffectedAPIs(changes []SemanticChange, content string) []string + type SemanticChange struct + Breaking bool + Description string + File string + Name string + Risk string + Type string + func DetectBehaviorChanges(oldContent, newContent string) []SemanticChange + func DetectBreakingChanges(oldContent, newContent string) []SemanticChange + type SemanticDiff struct + AffectedAPIs []string + Changes []SemanticChange + RiskLevel string + Summary string + type ServiceOption func(*SessionServices) + func WithCascade(cascade *CascadeRouter) ServiceOption + func WithGuardian(guardian *permissions.Guardian) ServiceOption + func WithLogger(log *logger.Logger) ServiceOption + func WithMaxBudget(budget float64) ServiceOption + func WithMemory(mem MemoryRecaller) ServiceOption + func WithProvider(provider, model string) ServiceOption + func WithSandbox(sandbox *DiffSandbox) ServiceOption + func WithTools(registry *tool.Registry) ServiceOption + func WithTracing(tracer *trace.Tracer) ServiceOption type Session + FileMentions *FileMentionDetector + Files *FileTracker + LintLoop *LintLoop + Pipeline *IntegrationPipeline + ResponseCache *ResponseCache + Steering *SteeringQueue + TestLoop *TestLoop + func (s *Session) Services() *SessionServices + func (s *Session) SetTestClient(c ChatClient) + func (s *Session) SplitTurnNeeded(keepCount int) bool + type SessionCompressor struct + MinMessages int + PreservePatterns []string + Strategy CompressStrategy + func NewSessionCompressor(strategy CompressStrategy) *SessionCompressor + func (sc *SessionCompressor) Compress(messages []CompressMessage, budget int) (*CompressionResult, []CompressMessage, error) + type SessionConvention struct + AppliedCount int + Confidence float64 + Examples []string + ID string + Rule string + Source string + type SessionReflection struct + Confidence int + Lesson string + ToImprove string + WentBadly string + WentWell string + type SessionServices struct + Backtrack *BacktrackEngine + ConvoDAG *storage.DAG + Core *CoreLoop + Critic *Critic + Intel *Intelligence + Lifecycle *SessionLifecycle + LintLoop *LintLoop + Observe *Observability + Optim *Optimizer + Plan *PlanState + Reflector *Reflector + Safety *SafetyLayer + Shadow *ShadowWorkspace + Snapshots SnapshotTracker + Teach TeachConfig + Trajectory *TrajectoryDistiller + func NewSessionServices(opts ...ServiceOption) *SessionServices + type SessionSummary struct + Assessment *Assessment + Duration time.Duration + Experience *Experience + FilesModified []string + Summary string + TokensTotal int + type SignatureChange struct + Name string + NewReceiver string + NewReturn string + OldReceiver string + OldReturn string + ParamsAdded []string + ParamsRemoved []string + ParamsReordered bool + ReceiverChanged bool + ReturnChanged bool + func CompareSignatures(oldSig, newSig string) *SignatureChange + type SimilarIssue struct + Issue *Issue + MatchingTerms []string + Score float64 + type SingleFileWatcher struct + func WatchSingle(path string, onChange func()) *SingleFileWatcher + func (sw *SingleFileWatcher) Start(ctx context.Context) error + func (sw *SingleFileWatcher) Stop() + type Skill struct + Author string + CreatedAt time.Time + Description string + ID string + Language string + Name string + Steps []SkillStep + SuccessRate float64 + Tags []string + UsageCount int + type SkillRegistry struct + Dir string + Skills map[string]*Skill + func NewSkillRegistry(dir string) *SkillRegistry + func (r *SkillRegistry) Execute(ctx context.Context, skillID string, vars map[string]string, ...) (*SkillResult, error) + func (r *SkillRegistry) Get(id string) *Skill + func (r *SkillRegistry) LearnFromSession(goal string, toolCalls []string, outcome string) *Skill + func (r *SkillRegistry) ListByTag(tag string) []*Skill + func (r *SkillRegistry) Load() error + func (r *SkillRegistry) Register(skill *Skill) error + func (r *SkillRegistry) Remove(id string) error + func (r *SkillRegistry) Save() error + func (r *SkillRegistry) Search(query string, tags []string) []*Skill + func (r *SkillRegistry) UpdateStats(id string, success bool) + type SkillResult struct + Duration time.Duration + Outputs []string + SkillID string + StepsCompleted int + Success bool + TotalSteps int + type SkillStep struct + Action string + Content string + ExpectedOutcome string + Fallback string + Order int + ToolName string + type SmartRetry struct + FailureHistory []FailureRecord + MaxHistorySize int + Strategies map[string]*RetryStrategy + func NewSmartRetry() *SmartRetry + func (sr *SmartRetry) AdaptStrategy(provider string) + func (sr *SmartRetry) CalculateDelay(strategy *RetryStrategy, attempt int) time.Duration + func (sr *SmartRetry) ClassifyError(err error) string + func (sr *SmartRetry) Decide(provider, model string, err error, attempt int) *RetryDecision + func (sr *SmartRetry) FormatStatus() string + func (sr *SmartRetry) GetProviderHealth() map[string]string + func (sr *SmartRetry) RecordRecovery(provider, model string, recoveryDelay time.Duration) + func (sr *SmartRetry) ResetProvider(provider string) + func (sr *SmartRetry) ShouldFallback(provider string) (bool, string) + type Solution struct + Content string + Duration time.Duration + Errors []string + FilesModified []string + ID int + Score float64 + TokensUsed int + type SolutionReviewer struct + MaxAttempts int + ScoreFn func(solution string) float64 + func NewSolutionReviewer(maxAttempts int) *SolutionReviewer + func (sr *SolutionReviewer) ReviewAndSelect(ctx context.Context, task string, ...) (*ReviewResult, error) + func (sr *SolutionReviewer) ScoreSolution(solution *Solution) float64 + type SourceRoot struct + ExploredAt time.Time + FileCount int + Path string + type SourceRoots struct + func NewSourceRoots() *SourceRoots + func (sr *SourceRoots) Invalidate(path string) + func (sr *SourceRoots) IsExplored(path string) bool + func (sr *SourceRoots) List() []*SourceRoot + func (sr *SourceRoots) Mark(path string, fileCount int) + func (sr *SourceRoots) Stale(maxAge time.Duration) []*SourceRoot + type SpawnDecision struct + ShouldParallelize bool + Strategy SpawnStrategy + SubTasks []SubTask + type SpawnStrategy int + const StrategyParallel + const StrategyPipeline + const StrategySequential + const StrategySingle + type Spec struct + Approved bool + Assumptions []string + CreatedAt time.Time + Criteria []string + Files []string + Goal string + OutOfScope []string + Title string + func (s *Spec) Format() string + type StagedChange struct + Description string + File string + Hunks []StagedHunk + Modified string + Original string + StagedAt time.Time + Status string + type StagedHunk struct + Approved bool + EndLine int + NewLines []string + OldLines []string + StartLine int + type StagingArea struct + Staged map[string]*StagedChange + func NewStagingArea() *StagingArea + func (sa *StagingArea) ApplyAll() ([]string, error) + func (sa *StagingArea) ApplyFile(file string) error + func (sa *StagingArea) ApproveHunk(file string, hunkIndex int) + func (sa *StagingArea) Clear() + func (sa *StagingArea) FormatStaging() string + func (sa *StagingArea) GetDiff(file string) string + func (sa *StagingArea) GetStaged() map[string]*StagedChange + func (sa *StagingArea) HasPending() bool + func (sa *StagingArea) Reject(file string) + func (sa *StagingArea) RejectHunk(file string, hunkIndex int) + func (sa *StagingArea) Stage(file, original, modified, description string) + type StallDetector struct + HardThreshold int + SoftThreshold int + Window []StallEntry + WindowSize int + func NewStallDetector() *StallDetector + func (sd *StallDetector) BuildEscalation(result *StallResult) string + func (sd *StallDetector) Check() *StallResult + func (sd *StallDetector) DetectErrorLoop() bool + func (sd *StallDetector) DetectOscillation() bool + func (sd *StallDetector) DetectRepetition() (int, string) + func (sd *StallDetector) FormatWindow() string + func (sd *StallDetector) Record(toolName string, args map[string]interface{}, output string) + func (sd *StallDetector) Reset() + type StallEntry struct + ArgsHash string + OutputHash string + Timestamp time.Time + ToolName string + type StallResult struct + IsStalled bool + Level string + Pattern string + RepeatCount int + Suggestion string + type SteeringMessage struct + Content string + Priority int + type SteeringQueue struct + func NewSteeringQueue() *SteeringQueue + func (sq *SteeringQueue) Clear() + func (sq *SteeringQueue) Drain() []SteeringMessage + func (sq *SteeringQueue) Enqueue(msg SteeringMessage) + func (sq *SteeringQueue) HasPending() bool + func (sq *SteeringQueue) Notify() <-chan struct{} + type StepResult struct + Duration time.Duration + Error string + Output string + Status string + StepName string + type StreamOptimizer struct + BufferSize int + DeduplicateRepeats bool + MinFlushInterval time.Duration + ProgressiveRender bool + func NewStreamOptimizer() *StreamOptimizer + func (s *StreamOptimizer) DetectIncomplete(buffer string) (complete, remainder string) + func (s *StreamOptimizer) DetectStutter(buffer string) string + func (s *StreamOptimizer) OptimizeToolOutput(output string) string + func (s *StreamOptimizer) Process(ch <-chan string) <-chan string + func (s *StreamOptimizer) ProgressIndicator(elapsed time.Duration, charsReceived int) string + func (s *StreamOptimizer) Reset() + func (s *StreamOptimizer) ShouldFlush() bool + func (s *StreamOptimizer) Stats() StreamStats + func (s *StreamOptimizer) WordWrap(text string, width int) string + type StreamStats struct + AvgFlushSize int + BufferedChars int + CharsPerSecond float64 + DeduplicatedChars int + Duration time.Duration + FlushCount int + TotalChars int + type StructuredLogger struct + Fields map[string]interface{} + Format string + Level LogLevel + Output io.Writer + SessionID string + func NewStructuredLogger(level LogLevel, output io.Writer) *StructuredLogger + func (l *StructuredLogger) Debug(msg string, fields ...map[string]interface{}) + func (l *StructuredLogger) Error(msg string, fields ...map[string]interface{}) + func (l *StructuredLogger) Info(msg string, fields ...map[string]interface{}) + func (l *StructuredLogger) Warn(msg string, fields ...map[string]interface{}) + func (l *StructuredLogger) WithFields(fields map[string]interface{}) *StructuredLogger + func (l *StructuredLogger) WithSession(sessionID string) *StructuredLogger + type SubAgentBudget struct + MaxTurns int + Mode SubAgentMode + TurnsUsed int + func NewSubAgentBudget(mode SubAgentMode, cfg SubAgentConfig) *SubAgentBudget + func (b *SubAgentBudget) Remaining() int + func (b *SubAgentBudget) ShouldSynthesize() bool + func (b *SubAgentBudget) Tick() + type SubAgentConfig struct + ExploreMaxTurns int + GeneralMaxTurns int + MaxDepth int + func DefaultSubAgentConfig() SubAgentConfig + type SubTask struct + DependsOn []string + ID string + Mode SubAgentMode + Priority int + Prompt string + 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 SuggestionEngine struct + Context map[string]string + History []string + Rules []SuggestionRule + func NewSuggestionEngine() *SuggestionEngine + func (se *SuggestionEngine) AddRule(rule SuggestionRule) + func (se *SuggestionEngine) Dismiss(command string) + func (se *SuggestionEngine) GetTopSuggestion() *CommandSuggestion + func (se *SuggestionEngine) RecordCommand(cmd string) + func (se *SuggestionEngine) Suggest(ctx map[string]string) []*CommandSuggestion + func (se *SuggestionEngine) UpdateContext(key, value string) + type SuggestionRule struct + Condition func(ctx map[string]string) bool + Name string + Priority int + Suggest func(ctx map[string]string) *CommandSuggestion + type SumMessage struct + Content string + IsError bool + Role string + ToolName string + type Summary struct + Content string + Decisions []string + FilesDiscussed []string + Level string + TokensSaved int + ToolsUsed map[string]int + Topics []string + type SummaryLevel string + const SummaryDetailed + const SummaryOneLine + const SummaryParagraph + const SummaryStructured + type SystemPromptBuilder struct + BasePrompt string + MaxTokens int + Sections []PromptSection + func NewSystemPromptBuilder(basePrompt string, maxTokens int) *SystemPromptBuilder + func (b *SystemPromptBuilder) AdaptForModel(model string) *SystemPromptBuilder + func (b *SystemPromptBuilder) AdaptForTask(task string) *SystemPromptBuilder + func (b *SystemPromptBuilder) AddSection(section PromptSection) + func (b *SystemPromptBuilder) Build(ctx PromptBuildContext) string + func (b *SystemPromptBuilder) RemoveSection(name string) + type Task struct + Dependencies []string + Description string + EstimatedTokens int + ID string + Priority int + Result string + Status string + Type string + type TaskContext struct + Duration time.Duration + Errors int + FilesModified int + Goal string + Retries int + TestsPassed bool + TokensUsed int + ToolCalls int + UserFeedback 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) + type TaskScale int + const ScaleEpic + const ScaleMajor + const ScaleMinor + const ScalePatch + func ClassifyScale(prompt string) TaskScale + func (s TaskScale) String() string + type Template struct + Description string + Files []TemplateFile + Framework string + Language string + Name string + PostCreate []string + Variables []TemplateVariable + type TemplateFile struct + Condition string + Content string + Mode os.FileMode + Path string + type TemplateVariable struct + Choices []string + Default string + Description string + Name string + Required bool + Type string + type TestLoop struct + Commands map[string]string + Enabled bool + MaxRetries int + Timeout time.Duration + func NewTestLoop() *TestLoop + func (tl *TestLoop) RecordRetry(file string) + func (tl *TestLoop) ResetFile(file string) + func (tl *TestLoop) RetryCount(file string) int + func (tl *TestLoop) RunTests(ctx context.Context, projectDir string) (*TestResult, error) + func (tl *TestLoop) ShouldRetry(file string) bool + type TestResult struct + Duration time.Duration + ExitCode int + FailedTests []string + Output string + Passed bool + type TestSelector struct + DepGraph map[string][]string + Language string + ProjectDir string + func NewTestSelector(projectDir string) *TestSelector + func (ts *TestSelector) FindRelatedTests(file string) []string + func (ts *TestSelector) SelectFromDiff(diff string) (*SelectedTests, error) + func (ts *TestSelector) SelectFromFiles(changedFiles []string) (*SelectedTests, error) + type ThinkingPhase string + const PhaseExecute + const PhasePlan + const PhaseReflect + const PhaseUnderstand + const PhaseVerify + type ThinkingProtocol struct + CurrentPhase ThinkingPhase + Enabled bool + Steps []ThinkingStep + Visible bool + func NewThinkingProtocol() *ThinkingProtocol + func (tp *ThinkingProtocol) AddAlternative(thought, alternative string) + func (tp *ThinkingProtocol) AddThought(content string, confidence float64) + func (tp *ThinkingProtocol) BuildThinkingPrompt(task string) string + func (tp *ThinkingProtocol) FormatThinking(steps []ThinkingStep) string + func (tp *ThinkingProtocol) GetPhaseHistory() map[ThinkingPhase][]ThinkingStep + func (tp *ThinkingProtocol) ParseThinking(response string) []ThinkingStep + func (tp *ThinkingProtocol) ResetForNewTask() + func (tp *ThinkingProtocol) ShouldThinkFirst(task string) bool + func (tp *ThinkingProtocol) StartPhase(phase ThinkingPhase) + func (tp *ThinkingProtocol) SummarizeThinking() string + type ThinkingStep struct + Alternatives []string + Confidence float64 + Content string + Duration time.Duration + Phase ThinkingPhase + Timestamp time.Time + type Timeline struct + Events []TimelineEvent + SessionID string + StartTime time.Time + func NewTimeline(sessionID string) *Timeline + func (t *Timeline) AddAction(tool, target string, duration time.Duration) + func (t *Timeline) AddDecision(decision, reason string) + func (t *Timeline) AddError(err string) + func (t *Timeline) AddEvent(eventType, content string, metadata map[string]string) + func (t *Timeline) AddFileChange(path, action string) + func (t *Timeline) AddMilestone(description string) + func (t *Timeline) Duration() time.Duration + func (t *Timeline) GetBetween(start, end time.Time) []TimelineEvent + func (t *Timeline) GetByType(eventType string) []TimelineEvent + func (t *Timeline) GetMilestones() []TimelineEvent + func (t *Timeline) RenderTimeline(maxWidth int) string + func (t *Timeline) Summarize() string + type TimelineEvent struct + Content string + Duration time.Duration + ID string + Metadata map[string]string + Timestamp time.Time + Type string + type Timer struct + Name string + Samples []time.Duration + type TokenEntry struct + CostUSD float64 + Cumulative int + InputTokens int + Model string + OutputTokens int + Timestamp time.Time + ToolName string + type TokenPredictor struct + History []PredictionRecord + ModelFactors map[string]float64 + func NewTokenPredictor() *TokenPredictor + func (tp *TokenPredictor) Calibrate() + func (tp *TokenPredictor) EstimateCost(tokens int, model string) float64 + func (tp *TokenPredictor) GetAccuracy(model string) float64 + func (tp *TokenPredictor) Predict(task string, contextSize int, model string) *Prediction + func (tp *TokenPredictor) RecordActual(taskType string, predicted, actual int, model string) + type TokenReporter struct + Alerts []BudgetAlert + Entries []TokenEntry + SessionBudget int + SessionSpent int + func NewTokenReporter(sessionBudget int) *TokenReporter + func (tr *TokenReporter) CheckBudget() *BudgetAlert + func (tr *TokenReporter) FormatAlert(alert *BudgetAlert) string + func (tr *TokenReporter) GetHistory(last int) []TokenEntry + func (tr *TokenReporter) GetRemaining() int + func (tr *TokenReporter) GetUsageRate() float64 + func (tr *TokenReporter) ProjectCompletion() time.Duration + func (tr *TokenReporter) Record(input, output int, model, tool string, cost float64) + func (tr *TokenReporter) RenderBreakdown() string + func (tr *TokenReporter) RenderLive() string + func (tr *TokenReporter) Reset() + type ToolConfirmationRouter struct + Override map[string]ToolRisk + func NewToolConfirmationRouter() *ToolConfirmationRouter + func (r *ToolConfirmationRouter) Classify(toolName string, args map[string]interface{}) ToolRisk + func (r *ToolConfirmationRouter) NeedsConfirmation(toolName string, args map[string]interface{}) bool + type ToolInfo struct + Category string + Cost string + Name string + ReadOnly bool + type ToolInspector struct + Router *ToolConfirmationRouter + func NewToolInspector() *ToolInspector + func (ti *ToolInspector) Inspect(toolName string, args map[string]interface{}) InspectionResult + type ToolRisk int + const RiskHigh + const RiskLow + const RiskMedium + const RiskNone + type ToolSelection struct + Confidence float64 + Excluded []string + Reason string + Recommended []string + type ToolSelector struct + AllTools []ToolInfo + TaskPatterns map[string][]string + UsageHistory map[string]int + func NewToolSelector(tools []ToolInfo) *ToolSelector + func (ts *ToolSelector) Adapt(feedback string) + func (ts *ToolSelector) FilterExpensive(tools []string) []string + func (ts *ToolSelector) GetRecommendedForIntent(intent string) []string + func (ts *ToolSelector) RecordUsage(tool string, task string) + func (ts *ToolSelector) Select(task string, maxTools int) *ToolSelection + type TrajectoryEvent struct + Content string + Duration time.Duration + Index int + Metadata map[string]string + Timestamp time.Time + Tokens int + ToolName string + Type string + type TrajectoryInspector struct + Events []TrajectoryEvent + SessionID string + StartTime time.Time + func NewTrajectoryInspector(sessionID string) *TrajectoryInspector + func (ti *TrajectoryInspector) ExportJSON() (string, error) + func (ti *TrajectoryInspector) FindPatterns() []string + func (ti *TrajectoryInspector) GetByType(eventType string) []TrajectoryEvent + func (ti *TrajectoryInspector) GetToolUsage() map[string]int + func (ti *TrajectoryInspector) Record(eventType, content string, toolName string, duration time.Duration, tokens int) + func (ti *TrajectoryInspector) RenderStats() string + func (ti *TrajectoryInspector) RenderTimeline() string + func (ti *TrajectoryInspector) Replay(speed float64) <-chan TrajectoryEvent + func (ti *TrajectoryInspector) Summarize() string + type TypeDoc struct + Description string + Fields []FieldDoc + Kind string + Methods []FunctionDoc + Name string + type URLScraper struct + Cache map[string]*ScrapeResult + Enabled bool + MaxSize int64 + Timeout time.Duration + UserAgent string + func NewURLScraper() *URLScraper + func (s *URLScraper) CacheGet(rawURL string) *ScrapeResult + func (s *URLScraper) CacheSet(rawURL string, result *ScrapeResult) + func (s *URLScraper) DetectURLs(text string) []string + func (s *URLScraper) Fetch(ctx context.Context, rawURL string) (*ScrapeResult, error) + func (s *URLScraper) FormatForContext(result *ScrapeResult, maxTokens int) string + func (s *URLScraper) ShouldAutoFetch(rawURL string) bool + type UndoEntry struct + Description string + Files []FileSnapshot + ID string + Timestamp time.Time + ToolArgs map[string]interface{} + ToolName string + type UndoManager struct + MaxEntries int + Stack []UndoEntry + func NewUndoManager() *UndoManager + func (um *UndoManager) BeforeModify(path string) error + func (um *UndoManager) Clear() + func (um *UndoManager) DiffEntry(entry *UndoEntry) string + func (um *UndoManager) FormatHistory(entries []UndoEntry) string + func (um *UndoManager) History(limit int) []UndoEntry + func (um *UndoManager) Peek() *UndoEntry + func (um *UndoManager) RecordChange(description, toolName string, toolArgs map[string]interface{}, paths []string) string + func (um *UndoManager) Size() int + func (um *UndoManager) Undo() (*UndoEntry, error) + func (um *UndoManager) UndoN(n int) ([]*UndoEntry, error) + func (um *UndoManager) UndoTo(entryID string) ([]*UndoEntry, error) + type UpdatePlan struct + Dependencies []Dependency + EstimatedBreaking int + RiskLevel string + RollbackCommand string + TestCommand string + type Violation struct + Code string + Convention string + Expected string + File string + Got string + Line int + type VizContextItem struct + Label string + Role string + Tokens int + Truncated bool + type WatcherConfig struct + BatchWindow time.Duration + Debounce time.Duration + IgnorePatterns []string + Patterns []string + PollInterval time.Duration + type WindowMessage struct + Content string + Index int + IsToolResult bool + Role string + Tokens int + func PreserveToolPairs(messages []WindowMessage, head, tail int) ([]WindowMessage, int) + type WindowResult struct + Dropped int + Head []WindowMessage + Summary string + Tail []WindowMessage + TotalTokens int + type Workflow struct + CreatedAt time.Time + Description string + MaxDuration time.Duration + Name string + OnFailure string + Steps []WorkflowStep + Variables map[string]string + type WorkflowEngine struct + ExecuteFn func(ctx context.Context, action, input string) (string, error) + Workflows map[string]*Workflow + func NewWorkflowEngine(executeFn func(context.Context, string, string) (string, error)) *WorkflowEngine + func (we *WorkflowEngine) Execute(ctx context.Context, workflow *Workflow) (*WorkflowResult, error) + func (we *WorkflowEngine) LoadWorkflow(path string) (*Workflow, error) + type WorkflowResult struct + Duration time.Duration + Status string + Steps []StepResult + Variables map[string]string + type WorkflowStep struct + Action string + Condition string + DependsOn []string + Input string + MaxRetries int + Name string + Output string + Timeout time.Duration + type WorkspaceDiffReport struct + Files []FileDiffReport + FilesAdded int + FilesDeleted int + FilesModified int + GeneratedAt time.Time + SessionDuration time.Duration + TotalAdditions int + TotalDeletions int + type WorkspaceState struct + LastScan time.Time + ModifiedFiles map[string]time.Time + OpenFiles map[string]*FileState + ProjectDir string + StagedFiles []string + func NewWorkspaceState(projectDir string) *WorkspaceState + func (ws *WorkspaceState) BuildContextForAgent() string + func (ws *WorkspaceState) DetectExternalChanges() []string + func (ws *WorkspaceState) GetModified() []string + func (ws *WorkspaceState) GetOpened() []string + func (ws *WorkspaceState) HasChanged(path string) bool + func (ws *WorkspaceState) MarkModified(path string) + func (ws *WorkspaceState) MarkOpened(path string) + func (ws *WorkspaceState) MarkStaged(path string) + func (ws *WorkspaceState) Reset() + func (ws *WorkspaceState) Scan() error + func (ws *WorkspaceState) Summary() string v0.1.0 May 12, 2026 Changes in this version + const ConfidenceThreshold + const DefaultExploreTurns + const DefaultGeneralTurns + const DefaultSnapshotTTL + const DoomLoopThreshold + const MaxAgentDepth + const MaxAutoFixRetries + var ExploreTools = []string + func AutoFixPrompt(path, content string, errors []ValidationError) string + func BuildCompactPrompt(variant CompactVariant) string + func CollapseRepeatedMessages(msgs []client.EyrieMessage) []client.EyrieMessage + func CompressForContext(text string, budget int) (string, int) + func CountTokens(text string) int + func CountTokensFast(text string) int + func DecomposePrompt() string + func DefaultCouncilModels() []string + func DynamicMaxTokens(messages []client.EyrieMessage, contextSize int, taskType string) int + func EstimateTokens(msgs []client.EyrieMessage) int + func FormatCompactSummary(raw string) string + func FormatCostDisplay(totalUSD float64) string + func FormatResults(results []BackgroundResult) string + func FormatTeachingMoment(action, reasoning string) string + func LoadCostHistory() ([]analytics.CostEntry, error) + func ModelPricing(modelName string) (inputPricePerM, outputPricePerM float64) + func RemainingTime(ctx context.Context) string + func SummarizeTrajectory(messages []client.EyrieMessage) string + func TeachPromptAugment(depth int) string + func TimeoutMessage(elapsed time.Duration) string + func WithTimeout(ctx context.Context, cfg TimeoutConfig) (context.Context, context.CancelFunc) + type APICompactConfig struct + ClearThinking bool + ClearToolInputs bool + KeepTargetTokens int + PreserveMutating bool + TriggerTokens int + func DefaultAPICompactConfig() APICompactConfig + type APICompactStrategy struct + func (s *APICompactStrategy) Compact(ctx context.Context, sess *Session) (*CompactResult, error) + func (s *APICompactStrategy) Name() string + func (s *APICompactStrategy) ShouldTrigger(msgs []client.EyrieMessage, tokenCount, threshold int) bool + type AdaptivePrompt struct + func NewAdaptivePrompt() *AdaptivePrompt + func (ap *AdaptivePrompt) Count() int + func (ap *AdaptivePrompt) FormatForPrompt() string + func (ap *AdaptivePrompt) LearnFromFeedback(userMessage string) + type AutoCompactor struct + func NewAutoCompactor(config CompactConfig) *AutoCompactor + func (ac *AutoCompactor) AutoCompactIfNeeded(ctx context.Context, sess *Session) (string, bool) + func (ac *AutoCompactor) GetAutoCompactThreshold() int + func (ac *AutoCompactor) LastStrategy() string + func (ac *AutoCompactor) ResetFailures() + func (ac *AutoCompactor) RunCompaction(ctx context.Context, sess *Session) (string, error) + func (ac *AutoCompactor) ShouldAutoCompact(sess *Session) bool + type AutonomyConfig struct + AutoApplyEdits bool + AutoCommit bool + AutoContinue bool + AutoExecuteBash bool + Level AutonomyLevel + func PresetConfig(level AutonomyLevel) AutonomyConfig + func (c AutonomyConfig) NeedsPermission(toolName string, isSafe bool) bool + type AutonomyLevel int + const AutonomyBasic + const AutonomyFull + const AutonomySemi + const AutonomySupervised + const AutonomyYOLO + func ParseAutonomyLevel(s string) AutonomyLevel + func (l AutonomyLevel) String() string + type BackgroundAgentPool struct + func NewBackgroundAgentPool() *BackgroundAgentPool + func (p *BackgroundAgentPool) AllResults() []BackgroundResult + func (p *BackgroundAgentPool) Collect() []BackgroundResult + func (p *BackgroundAgentPool) HasPending() bool + func (p *BackgroundAgentPool) PendingCount() int + func (p *BackgroundAgentPool) Submit(id, prompt string, ...) + func (p *BackgroundAgentPool) WaitAll() []BackgroundResult + type BackgroundResult struct + Elapsed time.Duration + Error error + ID string + Output string + Prompt string + type BacktrackEngine struct + func NewBacktrackEngine() *BacktrackEngine + func (be *BacktrackEngine) FindBacktrackPoint() *DecisionPoint + func (be *BacktrackEngine) GenerateRetryPrompt(dp *DecisionPoint) string + func (be *BacktrackEngine) MarkOutcome(turnIdx int, outcome string) + func (be *BacktrackEngine) RecordDecision(turnIdx int, desc string, alternatives []string, msgs []client.EyrieMessage) + func (be *BacktrackEngine) RestoreState(dp *DecisionPoint) []client.EyrieMessage + func (be *BacktrackEngine) Size() int + type Belief struct + Category string + Confidence float64 + Content string + DiscoveredAt int + ID string + LastVerified int + Subject string + type BeliefState struct + func NewBeliefState() *BeliefState + func (bs *BeliefState) FormatForPrompt() string + func (bs *BeliefState) Get(subject string) []*Belief + func (bs *BeliefState) Invalidate(subject string) + func (bs *BeliefState) Prune(currentTurn int) + func (bs *BeliefState) Record(category, subject, content string, turn int) + func (bs *BeliefState) Size() int + type CascadeRouter struct + DefaultModel string + Enabled bool + FrugalMode bool + Roles routing.ModelRoles + func NewCascadeRouter(defaultModel string, roles routing.ModelRoles) *CascadeRouter + func (cr *CascadeRouter) DecisionCount() int + func (cr *CascadeRouter) Decisions() []RoutingDecision + func (cr *CascadeRouter) Savings() float64 + func (cr *CascadeRouter) SelectModel(prompt string, currentModel string, userOverride string) string + func (cr *CascadeRouter) Summary() string + type CompactConfig struct + AutoCompactBuffer int + AutoEnabled bool + ContextWindowSize int + MaxFailures int + MaxOutputTokens int + func DefaultCompactConfig() CompactConfig + type CompactResult struct + Messages []client.EyrieMessage + Strategy string + Summary string + TokensAfter int + TokensBefore int + type CompactStrategy interface + Compact func(ctx context.Context, s *Session) (*CompactResult, error) + Name func() string + ShouldTrigger func(msgs []client.EyrieMessage, tokenCount, threshold int) bool + type CompactVariant int + const CompactBase + const CompactPartial + const CompactUpTo + type ContextAllocation struct + Conversation int + Memory int + OutputReserve int + PreloadedFiles int + Remaining int + RepoMap int + SafetyMargin int + SystemPrompt int + ToolDefs int + Workspace int + type ContextBudget struct + Conversation int + Memory int + OutputReserve int + PreloadedFiles int + RepoMap int + SafetyMargin int + SystemPrompt int + ToolDefs int + Total int + Workspace int + func NewContextBudget(contextSize int) *ContextBudget + func (b *ContextBudget) Allocate(conversationTokens int) *ContextAllocation + func (b *ContextBudget) FilesBudget(conversationTokens int) int + func (b *ContextBudget) ShouldCompact(conversationTokens int) bool + func (b *ContextBudget) UsageReport(conversationTokens int) string + type Cost struct + CacheReadTokens int + CacheWriteTokens int + CompletionTokens int + Model string + PromptTokens int + TotalCostUSD float64 + func (c *Cost) Add(prompt, completion int) + func (c *Cost) AddCacheTokens(read, write int) + func (c *Cost) Summary() string + func (c *Cost) Total() float64 + func (c *Cost) TotalUSD() float64 + type CostEntry struct + Duration time.Duration + SessionID string + Success bool + TaskGoal string + Timestamp time.Time + TotalCost float64 + type CostTracker struct + func NewCostTracker(sessionID string) *CostTracker + func (ct *CostTracker) Entries() []analytics.CostEntry + func (ct *CostTracker) Record(entry analytics.CostEntry) error + func (ct *CostTracker) SessionTotal() float64 + type CostTrackerInterface interface + Record func(entry CostEntry) error + SessionTotal func() float64 + type CouncilConfig struct + Chairman string + Models []string + type CouncilRanking struct + Model string + Ranking string + type CouncilResponse struct + Model string + Response string + type CouncilResult struct + Rankings []CouncilRanking + Responses []CouncilResponse + Synthesis string + func RunCouncil(ctx context.Context, query string, cfg CouncilConfig, sess *Session) (*CouncilResult, error) + type Critic struct + func NewCritic(model string) *Critic + func (c *Critic) BuildPrompt(original, patched, intent string) string + func (c *Critic) Model() string + func (c *Critic) ParseVerdict(response string) *PatchVerdict + func (c *Critic) PreScreenPatch(originalContent, patchedContent, intent string) *PatchVerdict + func (c *Critic) ShouldBlock(verdict *PatchVerdict) bool + type DecisionPoint struct + Alternatives []string + Description string + Messages []client.EyrieMessage + Outcome string + TurnIndex int + type DiffSandbox struct + func NewDiffSandbox() *DiffSandbox + func (ds *DiffSandbox) Apply(path string) error + func (ds *DiffSandbox) ApplyAll() (int, error) + func (ds *DiffSandbox) DiffAll() string + func (ds *DiffSandbox) DiffFor(path string) string + func (ds *DiffSandbox) Disable() + func (ds *DiffSandbox) Enable() + func (ds *DiffSandbox) Format() string + func (ds *DiffSandbox) Get(path string) *PendingChange + func (ds *DiffSandbox) IsEnabled() bool + func (ds *DiffSandbox) List() []*PendingChange + func (ds *DiffSandbox) Reject(path string) + func (ds *DiffSandbox) RejectAll() + func (ds *DiffSandbox) Stage(path, action, oldContent, newContent string) + type ErrorPattern struct + HitCount int + LastSeen time.Time + Resolution string + RootCause string + Trigger string + type ErrorPatternDB struct + func NewErrorPatternDB() *ErrorPatternDB + func (db *ErrorPatternDB) FormatHints(errorMsg string) string + func (db *ErrorPatternDB) Match(errorMsg string) []ErrorPattern + func (db *ErrorPatternDB) Record(trigger, rootCause, resolution string) + type EvolvingMemoryAdapter struct + EM *memory.EvolvingMemory + func (a *EvolvingMemoryAdapter) Format() string + func (a *EvolvingMemoryAdapter) Learn(pattern, lesson string) error + func (a *EvolvingMemoryAdapter) Retrieve(query string) []string + type EvolvingMemoryInterface interface + Format func() string + Learn func(pattern, lesson string) error + Retrieve func(query string) []string + type FewShotExample struct + CreatedAt time.Time + Prompt string + Quality float64 + Response string + TaskType string + UsedCount int + type FewShotStore struct + func NewFewShotStore() *FewShotStore + func (fs *FewShotStore) FormatForPrompt(prompt string) string + func (fs *FewShotStore) Record(prompt, response, taskType string) + func (fs *FewShotStore) Retrieve(prompt string, topK int) []FewShotExample + type LLMClient interface + Chat func(ctx context.Context, msgs []client.EyrieMessage, opts client.ChatOptions) (*client.EyrieResponse, error) + type LimitTracker struct + func NewLimitTracker(limits SafetyLimits) *LimitTracker + func (lt *LimitTracker) IsExceeded() (bool, string) + func (lt *LimitTracker) RecordCost(usd float64) + func (lt *LimitTracker) RecordTokens(n int) + func (lt *LimitTracker) RecordToolCall(toolName string) + func (lt *LimitTracker) RecordTurn() + func (lt *LimitTracker) Summary() string + type LoopDetector struct + func NewLoopDetector(windowSize, maxRepeats int) *LoopDetector + func (ld *LoopDetector) DoomLoopWarning() string + func (ld *LoopDetector) Escalated() bool + func (ld *LoopDetector) IsDoomLoop() bool + func (ld *LoopDetector) IsLooping() bool + func (ld *LoopDetector) LoopWarning() string + func (ld *LoopDetector) MarkEscalated() + func (ld *LoopDetector) RecordStep(toolNames []string, inputs []string, outputs []string) + func (ld *LoopDetector) Reset() + type MemoryRecaller interface + Recall func(query string, tokenBudget int) (string, error) + Remember func(content, category string) error + type MicroCompactConfig struct + CompactableTools map[string]bool + KeepRecent int + TimeGapMins float64 + func DefaultMicroCompactConfig() MicroCompactConfig + type MicroCompactStrategy struct + func (s *MicroCompactStrategy) Compact(ctx context.Context, sess *Session) (*CompactResult, error) + func (s *MicroCompactStrategy) Name() string + func (s *MicroCompactStrategy) ShouldTrigger(msgs []client.EyrieMessage, tokenCount, threshold int) bool + type ModelTier int + const TierCheap + const TierExpensive + const TierMid + type PatchVerdict struct + Confidence float64 + Issues []string + Likely string + type PendingChange struct + Action string + CreatedAt time.Time + Diff string + NewContent string + OldContent string + Path string + type PermissionEngine struct + AutoMode *permissions.AutoModeState + Autonomy AutonomyLevel + BypassKill *permissions.BypassKillswitch + Classifier *permissions.Classifier + Memory *PermissionMemory + Mode PermissionMode + PromptFn func(PermissionRequest) + func NewPermissionEngine() *PermissionEngine + func (pe *PermissionEngine) ApplyToolState(name string) + func (pe *PermissionEngine) CheckTool(ctx context.Context, tc toolCallInfo) (bool, string) + func (pe *PermissionEngine) SetMode(mode string) error + type PermissionMemory struct + func NewPermissionMemory() *PermissionMemory + func (pm *PermissionMemory) AllowSpec(spec string) + func (pm *PermissionMemory) AlwaysAllow(toolName string) + func (pm *PermissionMemory) AlwaysAllowPattern(pattern string) + func (pm *PermissionMemory) AlwaysDeny(toolName string) + func (pm *PermissionMemory) AlwaysDenyPattern(pattern string) + func (pm *PermissionMemory) Check(toolName string, summary string) *bool + func (pm *PermissionMemory) DenySpec(spec string) + type PermissionMode string + const PermissionModeAcceptEdits + const PermissionModeBypassPermissions + const PermissionModeDefault + const PermissionModeDontAsk + const PermissionModePlan + type PermissionRequest struct + Response chan bool + Summary string + ToolID string + ToolName string + 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 PromptAdjustment struct + Active bool + Confidence float64 + CreatedAt time.Time + LastUsed time.Time + Polarity string + Rule string + Source string + type PromptTuner struct + func NewPromptTuner() *PromptTuner + func (pt *PromptTuner) BestVariant(section string) (string, float64) + func (pt *PromptTuner) RecordOutcome(section, content string, success bool) + func (pt *PromptTuner) Report() string + type PromptVariant struct + Content string + LastUsed time.Time + Score float64 + Section string + Successes int + Uses int + type ProtectedPaths struct + func NewProtectedPaths() *ProtectedPaths + func (p *ProtectedPaths) Add(path string) + func (p *ProtectedPaths) Format() string + func (p *ProtectedPaths) IsProtected(path string) bool + func (p *ProtectedPaths) List() []string + func (p *ProtectedPaths) Remove(path string) + type Reflection struct + Attempt int + TaskGoal string + Timestamp time.Time + WhatFailed string + WhatToDo string + WhyFailed string + type Reflector struct + func NewReflector(llm LLMClient, model string) *Reflector + func (r *Reflector) History() []Reflection + func (r *Reflector) InjectReflections() string + func (r *Reflector) Reflect(ctx context.Context, goal string, messages []client.EyrieMessage, ...) (*Reflection, error) + func (r *Reflector) Reset() + type RoutingDecision struct + OriginalModel string + Reason string + SelectedModel string + TaskType string + Timestamp time.Time + type SafetyLimits struct + MaxBashCommands int + MaxCostUSD float64 + MaxFileWrites int + MaxOutputTokens int + MaxToolCalls int + MaxTurns int + func DefaultLimits() SafetyLimits + func ResearchLimits() SafetyLimits + func VibeLimits() SafetyLimits + type SelfReviewResult struct + Approved bool + Confidence float64 + Issues []string + Suggestions []string + func ReviewBeforeWrite(ctx context.Context, llm LLMClient, model string, intent string, ...) (*SelfReviewResult, error) + type Session struct + Activity *memory.ActivityTracker + AgentSpawnFn func(ctx context.Context, prompt string) (string, error) + AllowedDirs []string + AskUserFn func(question string) (string, error) + AutoCompactThresholdPct int + AutoMode *permissions.AutoModeState + Autonomy AutonomyLevel + Backtrack *BacktrackEngine + Beliefs *BeliefState + BypassKill *permissions.BypassKillswitch + Cascade *CascadeRouter + Classifier *permissions.Classifier + ConvoDAG *convodag.DAG + Cost Cost + CostTracker *CostTracker + Critic *Critic + EnhancedMemory *memory.EnhancedMemoryManager + Lifecycle *SessionLifecycle + Limits *LimitTracker + MaxBudgetUSD float64 + MaxTurns int + Memory MemoryRecaller + Mode PermissionMode + Perm *PermissionEngine + PermissionFn func(PermissionRequest) + Permissions *PermissionMemory + PinnedMessages int + Plan *PlanState + Reflector *Reflector + Router *modelPkg.Router + Sandbox *DiffSandbox + Shadow *ShadowWorkspace + SkillDistiller *memory.SkillDistiller + Sleeptime *memory.SleeptimeAgent + Snapshots SnapshotTracker + Teach TeachConfig + Tracer *trace.Tracer + Trajectory *TrajectoryDistiller + YaadBridge *memory.YaadBridge + func NewSession(provider, model, systemPrompt string, registry *tool.Registry) *Session + func (s *Session) AddAssistant(content string) + func (s *Session) AddUser(content string) + func (s *Session) AppendSystemContext(content string) + func (s *Session) AutoCompactIfNeeded() bool + func (s *Session) Compact() + func (s *Session) ConvoHead() string + func (s *Session) ForkConversation(nodeID string) (string, error) + func (s *Session) ListBranches(nodeID string) ([]*convodag.Node, error) + func (s *Session) LoadMessages(msgs []client.EyrieMessage) + func (s *Session) MessageCount() int + func (s *Session) Metrics() *metrics.Registry + func (s *Session) Model() string + func (s *Session) Provider() string + func (s *Session) RawMessages() []client.EyrieMessage + func (s *Session) RemoveLastExchange() + func (s *Session) SetAPIKey(provider, apiKey string) + func (s *Session) SetAPIKeys(apiKeys map[string]string) + func (s *Session) SetAllowedDirs(dirs []string) + func (s *Session) SetLogger(l *logger.Logger) + func (s *Session) SetMaxBudgetUSD(amount float64) error + func (s *Session) SetMaxTurns(turns int) error + func (s *Session) SetModel(model string) + func (s *Session) SetPermissionMode(mode string) error + func (s *Session) SetProvider(provider string) + func (s *Session) ShouldAutoCompact() bool + func (s *Session) SmartCompact() + func (s *Session) Stream(ctx context.Context) (<-chan StreamEvent, error) + func (s *Session) SwitchBranch(nodeID string) error + func (s *Session) WireAgentTool() + type SessionLifecycle struct + CostTracker CostTrackerInterface + Memory EvolvingMemoryInterface + SkillStore SkillStoreInterface + func (l *SessionLifecycle) OnSessionEnd(_ context.Context, session *Session, outcome SessionOutcome) error + func (l *SessionLifecycle) OnSessionStart(_ context.Context, initialPrompt string) string + type SessionMemoryConfig struct + MaxTokens int + MinTextBlockMessages int + MinTokens int + func DefaultSessionMemoryConfig() SessionMemoryConfig + type SessionMemoryStrategy struct + func (s *SessionMemoryStrategy) Compact(ctx context.Context, sess *Session) (*CompactResult, error) + func (s *SessionMemoryStrategy) Name() string + func (s *SessionMemoryStrategy) ShouldTrigger(msgs []client.EyrieMessage, tokenCount, threshold int) bool + type SessionOutcome struct + Duration time.Duration + FilesChanged []string + Success bool + TaskGoal string + ToolsUsed []string + TotalCost float64 + UserFeedback string + type ShadowWorkspace struct + func NewShadowWorkspace() (*ShadowWorkspace, error) + func (sw *ShadowWorkspace) Close() + func (sw *ShadowWorkspace) TempDir() string + func (sw *ShadowWorkspace) ValidateEdit(originalPath, newContent string) []ValidationError + func (sw *ShadowWorkspace) ValidateMultipleEdits(edits map[string]string) map[string][]ValidationError + type SkillDistillerAdapter struct + SD *memory.SkillDistiller + func (a *SkillDistillerAdapter) Distill(goal string, steps []string, outcome string) error + func (a *SkillDistillerAdapter) Retrieve(_ string) []string + type SkillStoreInterface interface + Distill func(goal string, steps []string, outcome string) error + Retrieve func(query string) []string + type SmartCompactStrategy struct + func (s *SmartCompactStrategy) Compact(ctx context.Context, sess *Session) (*CompactResult, error) + func (s *SmartCompactStrategy) Name() string + func (s *SmartCompactStrategy) ShouldTrigger(msgs []client.EyrieMessage, tokenCount, threshold int) bool + type SnapshotCache struct + func NewSnapshotCache(ttl time.Duration) *SnapshotCache + func (sc *SnapshotCache) Get(key string) (string, bool) + func (sc *SnapshotCache) GetOrCompute(key string, fn func() (string, error)) (string, error) + func (sc *SnapshotCache) Set(key, value string) + type SnapshotTracker interface + Track func(message string) (string, error) + type SnowballDetector struct + func NewSnowballDetector(maxTokens int) *SnowballDetector + func (sd *SnowballDetector) IsSnowballing() bool + func (sd *SnowballDetector) RecordTurn(tokens int, progress float64) + func (sd *SnowballDetector) Reset() + func (sd *SnowballDetector) ShouldAbort() bool + func (sd *SnowballDetector) String() string + func (sd *SnowballDetector) Summary() string + type StrategyRegistry struct + func NewStrategyRegistry(config CompactConfig) *StrategyRegistry + func (r *StrategyRegistry) SelectStrategy(msgs []client.EyrieMessage, tokenCount int) CompactStrategy + type StreamEvent struct + Content string + ToolID string + ToolName string + Type string + Usage *StreamUsage + type StreamUsage struct + CacheReadTokens int + CacheWriteTokens int + CompletionTokens int + PromptTokens int + type SubAgentMode string + const SubAgentExplore + const SubAgentGeneral + type Subtask struct + Description string + Files []string + ID int + Status string + Title string + func ParseSubtasks(output string) []Subtask + type TeachConfig struct + Depth int + Enabled bool + type TimeoutConfig struct + Countdown bool + PerTool time.Duration + PerTurn time.Duration + Total time.Duration + func DefaultTimeoutConfig() TimeoutConfig + type TrajectoryDistiller struct + func NewTrajectoryDistiller(session *Session, maxRuns int) *TrajectoryDistiller + func (td *TrajectoryDistiller) BestRun(runs []TrajectoryRun) *TrajectoryRun + func (td *TrajectoryDistiller) RunWithDistillation(ctx context.Context, prompt string) (string, error) + type TrajectoryRun struct + ID int + Messages []client.EyrieMessage + Success bool + Summary string + Tokens int + type TransferLearning struct + func NewTransferLearning() *TransferLearning + func (tl *TransferLearning) Apply(language, taskDescription string) []TransferPattern + func (tl *TransferLearning) FormatForPrompt(language, task string) string + func (tl *TransferLearning) Learn(language, category, pattern, approach string) + type TransferPattern struct + Approach string + Category string + Confidence float64 + CreatedAt time.Time + Language string + Pattern string + SuccessRate float64 + UsedCount int + type TruncateStrategy struct + func (s *TruncateStrategy) Compact(ctx context.Context, sess *Session) (*CompactResult, error) + func (s *TruncateStrategy) Name() string + func (s *TruncateStrategy) ShouldTrigger(_ []client.EyrieMessage, tokenCount, threshold int) bool + type ValidationError struct + Column int + File string + Line int + Message string + type ValidationResult struct + Errors []ValidationError + Valid bool + func ValidateFile(path string) *ValidationResult