Versions in this module Expand all Collapse all v0 v0.1.5 Mar 23, 2026 Changes in this version + const BashToolName + const EditToolName + const HooksEnabled + const ListDirToolName + const ReadToolName + const RemindersEnabled + const RoleCoder + const RoleExplorer + const RoleFull + const RolePlanner + const SearchCodeName + const SearchFilesName + const SpawnAgentToolName + const SubagentEnabled + const WebFetchToolName + const WebSearchToolName + const WriteToolName + var Definitions = []ToolDef + func ApplyWrites(writes []FileWrite) error + func BashPrefixesFromContext(ctx context.Context) []string + func DirectWriteFromContext(ctx context.Context) bool + func ExecuteBash(ctx context.Context, command string) string + func ExecuteEditFile(ctx context.Context, path, oldString, newString string) (string, string) + func ExecuteListDirectory(ctx context.Context, path string, depth int) string + func ExecuteRead(ctx context.Context, path string, offset, limit int) string + func ExecuteSearchCode(ctx context.Context, pattern, path, fileGlob string, contextLines int) string + func ExecuteSearchFiles(ctx context.Context, pattern, basePath string) string + func ExecuteWebFetch(rawURL string) string + func ExecuteWebSearch(query string) string + func LoadDisabledTools(path string) (map[string]bool, error) + func MCPDispatchersFromContext(ctx context.Context) map[string]MCPDispatcher + func MaxStepsFromContext(ctx context.Context) int + func RestoreSnapshots(snaps []FileSnapshot) error + func SaveDisabledTools(path string, disabled map[string]bool) error + func SeedFromContext(ctx context.Context) (int64, bool) + func SetAllowLocalFetch(b bool) + func SetBashTimeout(d time.Duration) + func SetWebSearchAPIBase(u string) + func SubagentDepthFromContext(ctx context.Context) int + func SystemPromptExtraFromContext(ctx context.Context) (string, bool) + func SystemPromptGuidance() string + func SystemPromptSuffix(ctx context.Context) string + func ToolGuidanceMapFromContext(ctx context.Context) map[string]string + func WithActiveTools(ctx context.Context, defs []ToolDef) context.Context + func WithBashPrefixes(ctx context.Context, prefixes []string) context.Context + func WithDirectWrites(ctx context.Context, enabled bool) context.Context + func WithMCPDispatchers(ctx context.Context, dispatchers map[string]MCPDispatcher) context.Context + func WithMaxSteps(ctx context.Context, n int) context.Context + func WithSeed(ctx context.Context, seed int64) context.Context + func WithSubagentDepth(ctx context.Context, depth int) context.Context + func WithSubagentDispatcher(ctx context.Context, d SubagentDispatcher) context.Context + func WithSystemPromptExtra(ctx context.Context, s string) context.Context + func WithToolGuidanceMap(ctx context.Context, m map[string]string) context.Context + func WithWorkDir(ctx context.Context, dir string) context.Context + func WorkDirFromContext(ctx context.Context) string + func WriteFileDirect(ctx context.Context, path, content string) string + type FileSnapshot struct + Content string + DidNotExist bool + Path string + func SnapshotFiles(writes []FileWrite) ([]FileSnapshot, error) + type FileWrite struct + Content string + Delete bool + Path string + type MCPDispatcher func(args map[string]string) string + type SubagentDispatcher func(ctx context.Context, args map[string]string) (text string, writes []FileWrite, errMsg string) + func SubagentDispatcherFromContext(ctx context.Context) SubagentDispatcher + type ToolDef struct + Description string + Name string + Properties map[string]ToolParam + Required []string + func ActiveDefinitions(disabled map[string]bool) []ToolDef + func ActiveToolsFromContext(ctx context.Context) []ToolDef + func ApplyDescriptions(defs []ToolDef, descs map[string]string) []ToolDef + func DefinitionsAllowed(allowlist []string, disabled map[string]bool) []ToolDef + func FilterDefs(defs []ToolDef, disabled map[string]bool) []ToolDef + func ToolsForRole(role string, parentDefs []ToolDef) []ToolDef + func (d ToolDef) JSONSchemaProps() (props map[string]any, required []string) + type ToolParam struct + Description string + Type string v0.1.0 Mar 14, 2026