Versions in this module Expand all Collapse all v0 v0.4.3 Nov 9, 2026 v0.4.2 Nov 4, 2026 Changes in this version + func Run(ctx context.Context, opts Options, input string) (string, error) + type MemoryOptions struct + AutoInject bool + IncludeIndexInPrompt bool + MaxInject int + Store *memory.Store + type Options struct + AllowedTools []string + AppendSystemPrompt []string + AskUser tool.AskUserFunc + BashEnv []string + BraveSearchAPIKey string + CanUseTool permission.CanUseTool + Compaction *compaction.Config + Compactor harness.Compactor + DeepSeekSearchAPIKey string + DeepSeekSearchBaseURL string + DeepSeekSearchModel string + DeferredTools []string + Deps harness.QueryDeps + DisableBackgroundTasks bool + DisallowedTools []string + DynamicBoundary int + EnableWebFetch bool + EnableWebSearch bool + EscalateMaxTokens bool + Hooks harness.HookRunner + MaxConcurrency int + MaxDuration time.Duration + MaxTokens int + MaxToolOutputChars int + MaxTurns int + Memory *MemoryOptions + NonStreaming bool + OnWarn func(string) + PermissionMode permission.Mode + Plan *PlanOptions + Provider llm.Provider + SessionID string + Settlement *harness.Settlement + Skills *skill.Registry + SystemPrompt []string + SystemReminderFunc func() string + TavilySearchAPIKey string + Temperature *float64 + Todos *tool.TodoStore + TokenBudget int + ToolOutputDir string + Tools []tool.CoreTool + Transcript *transcript.Store + UnlockSet *tool.UnlockSet + WebFetchCACert string + WebFetchInsecureTLS bool + WebFetchProxy string + WebSearchBackend string + WebSearchCACert string + WebSearchInsecureTLS bool + WebSearchProxy string + WorkingDir string + type PlanOptions struct + Approver plan.Approver + StartInPlanMode bool + TargetMode permission.Mode + type Session struct + func NewSession(opts Options) *Session + func (s *Session) Close() error + func (s *Session) Messages() []llm.Message + func (s *Session) Prompt(ctx context.Context, input string) iter.Seq2[harness.Event, error] + func (s *Session) Reset() + func (s *Session) Resume(sessionID string) error + func (s *Session) SessionID() string + func (s *Session) UnlockSet() *tool.UnlockSet + func (s *Session) Usage() llm.Usage