Versions in this module Expand all Collapse all v0 v0.0.3 Mar 26, 2026 v0.0.1 Mar 24, 2026 Changes in this version + const BeeperDelegationPrompt + const BeeperHelpPrompt + const BeeperSearchPrompt + const BossSystemPrompt + const DefaultAgentAvatarMXC + const DefaultAgentID + const DefaultAgentsFilename + const DefaultBootstrapFilename + const DefaultBootstrapMaxChars + const DefaultHeartbeatEvery + const DefaultHeartbeatFilename + const DefaultHeartbeatPrompt + const DefaultIdentityFilename + const DefaultMaxAckChars + const DefaultMemoryAltFilename + const DefaultMemoryFilename + const DefaultSoulEvilFilename + const DefaultSoulFilename + const DefaultSystemPrompt + const DefaultToolsFilename + const DefaultUserFilename + const HeartbeatToken + const ModelClaudeOpus + const ModelClaudeSonnet + const ModelOpenAIGPT52 + const ModelZAIGLM47 + const SilentReplyToken + var BeeperAIAgent = &AgentDefinition + var BeeperHelpAgent = &AgentDefinition + var BeeperSearchAgent = &AgentDefinition + var BossAgent = &AgentDefinition + var ErrAgentIsPreset = errors.New("cannot modify preset agent") + var ErrAgentNotFound = errors.New("agent not found") + var ErrMissingAgentID = errors.New("agent ID is required") + var ErrMissingAgentName = errors.New("agent name is required") + var PresetAgents = []*AgentDefinition + var SimpleAgent = &AgentDefinition + func BuildSystemPrompt(params SystemPromptParams) string + func EnsureBootstrapFiles(ctx context.Context, store *textfs.Store) (bool, error) + func IdentityHasValues(identity IdentityFile) bool + func IsBeeperHelp(agentID string) bool + func IsBossAgent(agentID string) bool + func IsHeartbeatContentEffectivelyEmpty(content string) bool + func IsPreset(agentID string) bool + func ResolveHeartbeatPrompt(raw string) string + func StripHeartbeatTokenWithMode(text string, mode StripHeartbeatMode, maxAckChars int) (bool, string, bool) + type AgentDefinition struct + AvatarURL string + CreatedAt int64 + Description string + HeartbeatPrompt string + ID string + Identity *Identity + IsPreset bool + MemorySearch any + Model ModelConfig + Name string + PromptMode PromptMode + ReasoningEffort string + ResponseMode ResponseMode + Subagents *agentconfig.SubagentConfig + SystemPrompt string + Temperature *float64 + Tools *toolpolicy.ToolPolicyConfig + UpdatedAt int64 + func GetBeeperAI() *AgentDefinition + func GetPresetByID(id string) *AgentDefinition + func (a *AgentDefinition) Clone() *AgentDefinition + func (a *AgentDefinition) EffectiveName() string + func (a *AgentDefinition) Validate() error + type AgentStore interface + DeleteAgent func(ctx context.Context, agentID string) error + ListAvailableTools func(ctx context.Context) ([]tools.ToolInfo, error) + ListModels func(ctx context.Context) ([]ModelInfo, error) + LoadAgents func(ctx context.Context) (map[string]*AgentDefinition, error) + SaveAgent func(ctx context.Context, agent *AgentDefinition) error + type ElevatedInfo struct + Allowed bool + DefaultLevel string + type EmbeddedContextFile struct + Content string + Path string + func BuildBootstrapContextFiles(files []WorkspaceBootstrapFile, maxChars int, warn func(message string)) []EmbeddedContextFile + type Identity struct + Name string + Persona string + type IdentityFile struct + Avatar string + Creature string + Emoji string + Name string + Theme string + Vibe string + func ParseIdentityMarkdown(content string) IdentityFile + type MemorySearchCacheConfig struct + Enabled *bool + MaxEntries int + type MemorySearchChunkingConfig struct + Overlap int + Tokens int + type MemorySearchConfig struct + Cache *MemorySearchCacheConfig + Chunking *MemorySearchChunkingConfig + Enabled *bool + Experimental *MemorySearchExperimentalConfig + ExtraPaths []string + Query *MemorySearchQueryConfig + Sources []string + Store *MemorySearchStoreConfig + Sync *MemorySearchSyncConfig + type MemorySearchExperimentalConfig struct + SessionMemory *bool + type MemorySearchHybridConfig struct + CandidateMultiplier int + type MemorySearchQueryConfig struct + Hybrid *MemorySearchHybridConfig + MaxInjectedChars int + MaxResults int + MinScore float64 + type MemorySearchSessionSyncConfig struct + DeltaBytes int + DeltaMessages int + RetentionDays int + type MemorySearchStoreConfig struct + Driver string + Path string + type MemorySearchSyncConfig struct + IntervalMinutes int + OnSearch *bool + OnSessionStart *bool + Sessions *MemorySearchSessionSyncConfig + Watch *bool + WatchDebounceMs int + type ModelConfig struct + Fallbacks []string + Primary string + func (m ModelConfig) Clone() ModelConfig + type ModelInfo struct + Description string + ID string + MaxCompletionTokens int + MaxContextTokens int + Name string + Provider string + SupportsCodeExecution bool + SupportsReasoning bool + SupportsStreaming bool + SupportsTools bool + SupportsVision bool + SupportsWebSearch bool + type PromptMode string + const PromptModeFull + const PromptModeMinimal + const PromptModeNone + type ReactionGuidance struct + Channel string + Level string + type ResolvedTimeFormat string + type ResponseMode string + const ResponseModeNatural + const ResponseModeSimple + type RuntimeInfo struct + AgentID string + Arch string + Capabilities []string + Channel string + DefaultModel string + Host string + Model string + Node string + OS string + RepoRoot string + type SandboxInfo struct + AgentWorkspaceMount string + BrowserBridgeURL string + BrowserNoVncURL string + Elevated *ElevatedInfo + Enabled bool + HostBrowserAllowed *bool + WorkspaceAccess string + WorkspaceDir string + type SoulEvilCheckParams struct + Config *SoulEvilConfig + Now time.Time + Random func() float64 + UserTimezone string + type SoulEvilConfig struct + Chance float64 + File string + Purge *SoulEvilPurge + type SoulEvilDecision struct + FileName string + Reason string + UseEvil bool + func DecideSoulEvil(params SoulEvilCheckParams) SoulEvilDecision + type SoulEvilPurge struct + At string + Duration string + type StripHeartbeatMode string + const StripHeartbeatModeHeartbeat + const StripHeartbeatModeMessage + type SystemPromptParams struct + ContextFiles []EmbeddedContextFile + DefaultThinkLevel string + ExtraSystemPrompt string + HeartbeatPrompt string + MemoryCitations string + MessageToolHints []string + ModelAliasLines []string + OwnerNumbers []string + PromptMode PromptMode + ReactionGuidance *ReactionGuidance + ReasoningLevel string + ReasoningTagHint bool + RuntimeInfo *RuntimeInfo + SandboxInfo *SandboxInfo + SkillsPrompt string + TTSHint string + ToolNames []string + ToolSummaries map[string]string + UserIdentitySupplement string + UserTime string + UserTimeFormat ResolvedTimeFormat + UserTimezone string + WorkspaceDir string + WorkspaceNotes []string + type TrimBootstrapResult struct + Content string + MaxChars int + OriginalLength int + Truncated bool + func TrimBootstrapContent(content, fileName string, maxChars int) TrimBootstrapResult + type WorkspaceBootstrapFile struct + Content string + Missing bool + Name string + Path string + func FilterBootstrapFilesForSession(files []WorkspaceBootstrapFile, isSubagent bool) []WorkspaceBootstrapFile + func LoadBootstrapFiles(ctx context.Context, store *textfs.Store) ([]WorkspaceBootstrapFile, error)