Versions in this module Expand all Collapse all v1 v1.30.1 Mar 11, 2026 Changes in this version + type CreateTodosOutput struct + Created []Todo + type LSPBackend struct + LSP *LSPTool + Toolset tools.ToolSet + type LSPMultiplexer struct + func NewLSPMultiplexer(backends []LSPBackend) *LSPMultiplexer + func (m *LSPMultiplexer) Instructions() string + func (m *LSPMultiplexer) Start(ctx context.Context) error + func (m *LSPMultiplexer) Stop(ctx context.Context) error + func (m *LSPMultiplexer) Tools(ctx context.Context) ([]tools.Tool, error) + type ListTodosOutput struct + Todos []Todo + type UpdateTodosOutput struct + NotFound []string + Updated []TodoUpdate v1.30.0 Mar 9, 2026 Changes in this version + const ToolNameAddDependency + const ToolNameAddMemory + const ToolNameAddTool + const ToolNameChangeModel + const ToolNameCreateTask + const ToolNameCreateTodo + const ToolNameCreateTodos + const ToolNameDeleteMemory + const ToolNameDeleteTask + const ToolNameDirectoryTree + const ToolNameEditFile + const ToolNameFetch + const ToolNameGetMemories + const ToolNameGetTask + const ToolNameHandoff + const ToolNameLSPCallHierarchy + const ToolNameLSPCodeActions + const ToolNameLSPDefinition + const ToolNameLSPDiagnostics + const ToolNameLSPDocumentSymbols + const ToolNameLSPFormat + const ToolNameLSPHover + const ToolNameLSPImplementations + const ToolNameLSPInlayHints + const ToolNameLSPReferences + const ToolNameLSPRename + const ToolNameLSPSignatureHelp + const ToolNameLSPTypeHierarchy + const ToolNameLSPWorkspace + const ToolNameLSPWorkspaceSymbols + const ToolNameListBackgroundJobs + const ToolNameListDirectory + const ToolNameListTasks + const ToolNameListTodos + const ToolNameMkdir + const ToolNameNextTask + const ToolNameReadFile + const ToolNameReadMultipleFiles + const ToolNameReadSkill + const ToolNameReadSkillFile + const ToolNameRemoveDependency + const ToolNameRevertModel + const ToolNameRmdir + const ToolNameRunShellBackground + const ToolNameSearchFilesContent + const ToolNameSearchMemories + const ToolNameSearchTool + const ToolNameShell + const ToolNameStopBackgroundJob + const ToolNameThink + const ToolNameTransferTask + const ToolNameUpdateMemory + const ToolNameUpdateTask + const ToolNameUpdateTodos + const ToolNameUserPrompt + const ToolNameViewBackgroundJob + const ToolNameWriteFile + var NewSharedTodoTool = sync.OnceValue(func() *TodoTool { ... }) + type APITool struct + func NewAPITool(config latest.APIToolConfig, expander *js.Expander) *APITool + func (t *APITool) Instructions() string + func (t *APITool) Tools(context.Context) ([]tools.Tool, error) + type AddDependencyArgs struct + DependsOnID string + TaskID string + type AddMemoryArgs struct + Category string + Memory string + type AddToolArgs struct + Name string + type CallHierarchyArgs struct + Direction string + type ChangeModelArgs struct + Model string + type CodeActionsArgs struct + EndLine int + File string + StartLine int + type CreateDirectoryArgs struct + Paths []string + type CreateTaskArgs struct + Dependencies []string + Description string + Path string + Priority string + Title string + type CreateTodoArgs struct + Description string + type CreateTodosArgs struct + Descriptions []string + type DB interface + AddMemory func(ctx context.Context, memory database.UserMemory) error + DeleteMemory func(ctx context.Context, memory database.UserMemory) error + GetMemories func(ctx context.Context) ([]database.UserMemory, error) + SearchMemories func(ctx context.Context, query, category string) ([]database.UserMemory, error) + UpdateMemory func(ctx context.Context, memory database.UserMemory) error + type DeferredToolset struct + func NewDeferredToolset() *DeferredToolset + func (d *DeferredToolset) AddSource(toolset tools.ToolSet, deferAll bool, toolNames []string) + func (d *DeferredToolset) HasSources() bool + func (d *DeferredToolset) Instructions() string + func (d *DeferredToolset) Start(ctx context.Context) error + func (d *DeferredToolset) Stop(context.Context) error + func (d *DeferredToolset) Tools(context.Context) ([]tools.Tool, error) + type DeleteMemoryArgs struct + ID string + type DeleteTaskArgs struct + ID string + type DirectoryTreeArgs struct + Path string + type DirectoryTreeMeta struct + DirCount int + FileCount int + Truncated bool + type Edit struct + NewText string + OldText string + type EditFileArgs struct + Edits []Edit + Path string + type FetchResult struct + Body string + ContentLength int + ContentType string + Error string + Status string + StatusCode int + URL string + type FetchTool struct + func NewFetchTool(options ...FetchToolOption) *FetchTool + func (t *FetchTool) Instructions() string + func (t *FetchTool) Tools(context.Context) ([]tools.Tool, error) + type FetchToolArgs struct + Format string + Timeout int + URLs []string + type FetchToolOption func(*FetchTool) + func WithTimeout(timeout time.Duration) FetchToolOption + type FileArgs struct + File string + type FileSystemOpt func(*FilesystemTool) + func WithIgnoreVCS(ignoreVCS bool) FileSystemOpt + func WithPostEditCommands(postEditCommands []PostEditConfig) FileSystemOpt + type FilesystemTool struct + func NewFilesystemTool(workingDir string, opts ...FileSystemOpt) *FilesystemTool + func (t *FilesystemTool) Instructions() string + func (t *FilesystemTool) Tools(context.Context) ([]tools.Tool, error) + type GetTaskArgs struct + ID string + type HandoffArgs struct + Agent string + type HandoffTool struct + func NewHandoffTool() *HandoffTool + func (t *HandoffTool) Tools(context.Context) ([]tools.Tool, error) + type InlayHintsArgs struct + EndLine int + File string + StartLine int + type LSPTool struct + func NewLSPTool(command string, args, env []string, workingDir string) *LSPTool + func (t *LSPTool) HandlesFile(path string) bool + func (t *LSPTool) Instructions() string + func (t *LSPTool) SetFileTypes(fileTypes []string) + func (t *LSPTool) Start(ctx context.Context) error + func (t *LSPTool) Stop(ctx context.Context) error + func (t *LSPTool) Tools(context.Context) ([]tools.Tool, error) + type ListDirectoryArgs struct + Path string + type ListDirectoryMeta struct + Dirs []string + Files []string + Truncated bool + type ListTasksArgs struct + Priority string + Status string + type MemoryTodoStorage struct + func NewMemoryTodoStorage() *MemoryTodoStorage + func (s *MemoryTodoStorage) Add(todo Todo) + func (s *MemoryTodoStorage) All() []Todo + func (s *MemoryTodoStorage) Clear() + func (s *MemoryTodoStorage) FindByID(id string) int + func (s *MemoryTodoStorage) Len() int + func (s *MemoryTodoStorage) Update(index int, fn func(Todo) Todo) + type MemoryTool struct + func NewMemoryTool(manager DB) *MemoryTool + func NewMemoryToolWithPath(manager DB, dbPath string) *MemoryTool + func (t *MemoryTool) Describe() string + func (t *MemoryTool) Instructions() string + func (t *MemoryTool) Tools(context.Context) ([]tools.Tool, error) + type ModelPickerTool struct + func NewModelPickerTool(models []string) *ModelPickerTool + func (t *ModelPickerTool) AllowedModels() []string + func (t *ModelPickerTool) Instructions() string + func (t *ModelPickerTool) Tools(context.Context) ([]tools.Tool, error) + type OpenAPITool struct + func NewOpenAPITool(specURL string, headers map[string]string) *OpenAPITool + func (t *OpenAPITool) Instructions() string + func (t *OpenAPITool) Tools(ctx context.Context) ([]tools.Tool, error) + type PositionArgs struct + Character int + File string + Line int + type PostEditConfig struct + Cmd string + Path string + type QueryRAGArgs struct + Query string + type QueryResult struct + ChunkIndex int + Content string + Similarity float64 + SourcePath string + type RAGTool struct + func NewRAGTool(manager *rag.Manager, toolName string) *RAGTool + func (t *RAGTool) Instructions() string + func (t *RAGTool) Tools(context.Context) ([]tools.Tool, error) + type ReadFileArgs struct + Path string + type ReadFileMeta struct + Content string + Error string + LineCount int + Path string + type ReadMultipleFilesArgs struct + JSON bool + Paths []string + type ReadMultipleFilesMeta struct + Files []ReadFileMeta + type ReferencesArgs struct + IncludeDeclaration *bool + type RemoveDependencyArgs struct + DependsOnID string + TaskID string + type RemoveDirectoryArgs struct + Paths []string + type RenameArgs struct + NewName string + type RunShellArgs struct + Cmd string + Cwd string + Timeout int + type RunShellBackgroundArgs struct + Cmd string + Cwd string + type ScriptShellTool struct + func NewScriptShellTool(shellTools map[string]latest.ScriptShellToolConfig, env []string) (*ScriptShellTool, error) + func (t *ScriptShellTool) Instructions() string + func (t *ScriptShellTool) Tools(context.Context) ([]tools.Tool, error) + type SearchFilesContentArgs struct + ExcludePatterns []string + IsRegex bool + Path string + Query string + type SearchFilesContentMeta struct + FileCount int + MatchCount int + type SearchMemoriesArgs struct + Category string + Query string + type SearchToolArgs struct + Query string + type SearchToolResult struct + Description string + Name string + type ShellTool struct + func NewShellTool(env []string, runConfig *config.RuntimeConfig) *ShellTool + func (t *ShellTool) Instructions() string + func (t *ShellTool) Start(context.Context) error + func (t *ShellTool) Stop(context.Context) error + func (t *ShellTool) Tools(context.Context) ([]tools.Tool, error) + type SkillsToolset struct + func NewSkillsToolset(loadedSkills []skills.Skill) *SkillsToolset + func (s *SkillsToolset) Instructions() string + func (s *SkillsToolset) ReadSkillContent(name string) (string, error) + func (s *SkillsToolset) ReadSkillFile(skillName, relativePath string) (string, error) + func (s *SkillsToolset) Skills() []skills.Skill + func (s *SkillsToolset) Tools(context.Context) ([]tools.Tool, error) + type StopBackgroundJobArgs struct + JobID string + type Task struct + CreatedAt string + Dependencies []string + Description string + ID string + Priority TaskPriority + Status TaskStatus + Title string + UpdatedAt string + type TaskPriority string + const PriorityCritical + const PriorityHigh + const PriorityLow + const PriorityMedium + type TaskStatus string + const StatusBlocked + const StatusDone + const StatusInProgress + const StatusPending + type TasksTool struct + func NewTasksTool(storagePath string) *TasksTool + func (t *TasksTool) Instructions() string + func (t *TasksTool) Tools(_ context.Context) ([]tools.Tool, error) + type ThinkArgs struct + Thought string + type ThinkTool struct + func NewThinkTool() *ThinkTool + func (t *ThinkTool) Instructions() string + func (t *ThinkTool) Tools(context.Context) ([]tools.Tool, error) + type Todo struct + Description string + ID string + Status string + type TodoOption func(*TodoTool) + func WithStorage(storage TodoStorage) TodoOption + type TodoStorage interface + Add func(todo Todo) + All func() []Todo + Clear func() + FindByID func(id string) int + Len func() int + Update func(index int, fn func(Todo) Todo) + type TodoTool struct + func NewTodoTool(opts ...TodoOption) *TodoTool + func (t *TodoTool) Instructions() string + func (t *TodoTool) Tools(context.Context) ([]tools.Tool, error) + type TodoUpdate struct + ID string + Status string + type TransferTaskArgs struct + Agent string + ExpectedOutput string + Task string + type TransferTaskTool struct + func NewTransferTaskTool() *TransferTaskTool + func (t *TransferTaskTool) Tools(context.Context) ([]tools.Tool, error) + type TypeHierarchyArgs struct + Direction string + type UpdateMemoryArgs struct + Category string + ID string + Memory string + type UpdateTaskArgs struct + Dependencies []string + Description string + ID string + Path string + Priority string + Status string + Title string + type UpdateTodosArgs struct + Updates []TodoUpdate + type UserPromptArgs struct + Message string + Schema map[string]any + Title string + type UserPromptResponse struct + Action string + Content map[string]any + type UserPromptTool struct + func NewUserPromptTool() *UserPromptTool + func (t *UserPromptTool) Instructions() string + func (t *UserPromptTool) SetElicitationHandler(handler tools.ElicitationHandler) + func (t *UserPromptTool) Tools(context.Context) ([]tools.Tool, error) + type ViewBackgroundJobArgs struct + JobID string + type WorkspaceArgs struct + type WorkspaceSymbolsArgs struct + Query string + type WriteFileArgs struct + Content string + Path string