Versions in this module Expand all Collapse all v0 v0.2.2 Apr 24, 2026 v0.2.1 Apr 21, 2026 v0.2.0 Apr 17, 2026 Changes in this version type CreateAgentReq + Template string v0.1.1 Apr 10, 2026 v0.1.0 Apr 10, 2026 Changes in this version + const DefaultHTTPAddr + func DefaultSocketPath() string + func IsDaemonNotRunning(err error) bool + type AgentCostDetail struct + Daily []*AgentDailyCost + Summary *CostSummary + type AgentCostSummary struct + AgentID string + InputTokens int64 + OutputTokens int64 + RequestCount int64 + TotalCostUSD float64 + TotalTokens int64 + type AgentDailyCost struct + AgentID string + CostUSD float64 + Date string + InputTokens int64 + OutputTokens int64 + RecordCount int64 + TotalTokens int64 + type AgentHealthInfo struct + ErrorMessage string + LastUpdated string + Name string + Role string + StaleDuration string + StateFresh bool + Status string + TmuxAlive bool + type AgentInfo struct + Children []string + CreatedAt time.Time + ID string + Name string + ParentID string + Role string + Session string + SessionID string + StartedAt time.Time + State string + StoppedAt *time.Time + Task string + Team string + Tool string + UpdatedAt time.Time + type AgentStatsRecord struct + AgentName string + BlockReadMB float64 + BlockWriteMB float64 + CPUPct float64 + CollectedAt time.Time + MemLimitMB float64 + MemUsedMB float64 + NetRxMB float64 + NetTxMB float64 + type AgentsClient struct + func (a *AgentsClient) Broadcast(ctx context.Context, message string) (int, error) + func (a *AgentsClient) Cost(ctx context.Context, name string) (*AgentCostSummary, error) + func (a *AgentsClient) Create(ctx context.Context, req CreateAgentReq) (*AgentInfo, error) + func (a *AgentsClient) Delete(ctx context.Context, name string, force bool) error + func (a *AgentsClient) GenerateName(ctx context.Context) (string, error) + func (a *AgentsClient) Get(ctx context.Context, name string) (*AgentInfo, error) + func (a *AgentsClient) Health(ctx context.Context, timeout string, agentName string) ([]AgentHealthInfo, error) + func (a *AgentsClient) List(ctx context.Context) ([]AgentInfo, error) + func (a *AgentsClient) ListByRole(ctx context.Context, role string) ([]AgentInfo, error) + func (a *AgentsClient) Peek(ctx context.Context, name string, lines int) (string, error) + func (a *AgentsClient) Rename(ctx context.Context, oldName, newName string) error + func (a *AgentsClient) Report(ctx context.Context, name, state, message string) error + func (a *AgentsClient) Send(ctx context.Context, name, message string) error + func (a *AgentsClient) SendToPattern(ctx context.Context, pattern, message string) (*SendResultInfo, error) + func (a *AgentsClient) SendToRole(ctx context.Context, role, message string) (*SendResultInfo, error) + func (a *AgentsClient) Sessions(ctx context.Context, name string) ([]SessionInfo, error) + func (a *AgentsClient) Start(ctx context.Context, name, runtime, resumeID string) (*AgentInfo, error) + func (a *AgentsClient) Stats(ctx context.Context, name string, limit int) ([]*AgentStatsRecord, error) + func (a *AgentsClient) Stop(ctx context.Context, name string) error + func (a *AgentsClient) StopAll(ctx context.Context) (int, error) + type ChannelInfo struct + CreatedAt time.Time + Description string + MemberCount int + Members []string + MessageCount int + Name string + Type string + UpdatedAt time.Time + type ChannelStatusInfo struct + ChannelCount int + TotalMembers int + type ChannelsClient struct + func (ch *ChannelsClient) AddMember(ctx context.Context, chanName, agentName string) error + func (ch *ChannelsClient) Create(ctx context.Context, name, description string) (*ChannelInfo, error) + func (ch *ChannelsClient) Delete(ctx context.Context, name string) error + func (ch *ChannelsClient) Get(ctx context.Context, name string) (*ChannelInfo, error) + func (ch *ChannelsClient) History(ctx context.Context, chanName string, limit, offset int, agentFilter string) ([]MessageInfo, error) + func (ch *ChannelsClient) List(ctx context.Context) ([]ChannelInfo, error) + func (ch *ChannelsClient) React(ctx context.Context, chanName string, msgID int, emoji, user string) (bool, error) + func (ch *ChannelsClient) RemoveMember(ctx context.Context, chanName, agentName string) error + func (ch *ChannelsClient) Send(ctx context.Context, chanName, sender, message string) (*MessageInfo, error) + func (ch *ChannelsClient) Status(ctx context.Context) (*ChannelStatusInfo, error) + func (ch *ChannelsClient) Update(ctx context.Context, name, description string) (*ChannelInfo, error) + type Client struct + Agents *AgentsClient + BaseURL string + Channels *ChannelsClient + Costs *CostsClient + Cron *CronClient + Doctor *DoctorClient + Events *EventsClient + HTTPClient *http.Client + MCP *MCPClient + Notify *NotifyClient + Roles *RolesClient + Secrets *SecretsClient + Settings *SettingsClient + Stats *StatsClient + Tools *ToolsClient + func New(addr string) *Client + func (c *Client) Ping(ctx context.Context) error + type CostBudget struct + AlertAt float64 + HardStop bool + ID int64 + LimitUSD float64 + Period string + Scope string + UpdatedAt time.Time + type CostBudgetStatus struct + Budget *CostBudget + CurrentSpend float64 + IsNearLimit bool + IsOverBudget bool + PercentUsed float64 + Remaining float64 + type CostProjection struct + DailyAvgCost float64 + DaysAnalyzed int + Duration time.Duration + ProjectedCost float64 + TotalHistorical float64 + type CostSummary struct + AgentID string + InputTokens int64 + Model string + OutputTokens int64 + RecordCount int64 + TeamID string + TotalCostUSD float64 + TotalTokens int64 + type CostsClient struct + func (c *CostsClient) AgentSummary(ctx context.Context, name string) (*AgentCostDetail, error) + func (c *CostsClient) CheckBudget(ctx context.Context, scope string) (*CostBudgetStatus, error) + func (c *CostsClient) Daily(ctx context.Context, days int) ([]*DailyCost, error) + func (c *CostsClient) DeleteBudget(ctx context.Context, scope string) error + func (c *CostsClient) ListBudgets(ctx context.Context) ([]*CostBudget, error) + func (c *CostsClient) ProjectCost(ctx context.Context, lookbackDays, projectDays int) (*CostProjection, error) + func (c *CostsClient) SetBudget(ctx context.Context, req *SetBudgetReq) (*CostBudget, error) + func (c *CostsClient) SummaryByAgent(ctx context.Context) ([]*CostSummary, error) + func (c *CostsClient) SummaryByModel(ctx context.Context) ([]*CostSummary, error) + func (c *CostsClient) SummaryByTeam(ctx context.Context) ([]*CostSummary, error) + func (c *CostsClient) Sync(ctx context.Context) (int, error) + func (c *CostsClient) WorkspaceSummary(ctx context.Context) (*CostSummary, error) + type CreateAgentReq struct + EnvFile string + Name string + Parent string + Role string + Runtime string + Team string + Tool string + type CronClient struct + func (c *CronClient) Add(ctx context.Context, job *CronJob) (*CronJob, error) + func (c *CronClient) Delete(ctx context.Context, name string) error + func (c *CronClient) Disable(ctx context.Context, name string) error + func (c *CronClient) Enable(ctx context.Context, name string) error + func (c *CronClient) Get(ctx context.Context, name string) (*CronJob, error) + func (c *CronClient) List(ctx context.Context) ([]CronJob, error) + func (c *CronClient) Logs(ctx context.Context, name string, last int) ([]CronLogEntry, error) + func (c *CronClient) Run(ctx context.Context, name string) error + type CronJob struct + AgentName string + Command string + CreatedAt *time.Time + Enabled bool + LastRun *time.Time + Name string + NextRun *time.Time + Prompt string + RunCount int + Schedule string + type CronLogEntry struct + CostUSD float64 + DurationMS int64 + RunAt time.Time + Status string + type DailyCost struct + CostUSD float64 + Date string + InputTokens int64 + OutputTokens int64 + RecordCount int64 + TotalTokens int64 + type DeliveryEntry struct + Agent string + Channel string + Error string + ID int64 + LoggedAt time.Time + Preview string + Status string + type DoctorCategory struct + Items []DoctorItem + Name string + type DoctorClient struct + func (d *DoctorClient) ByCategory(ctx context.Context, cat string) (*DoctorCategory, error) + func (d *DoctorClient) RunAll(ctx context.Context) (*DoctorReport, error) + func (d *DoctorClient) RunAllRaw(ctx context.Context) (json.RawMessage, error) + type DoctorItem struct + Fix string + Message string + Name string + Severity string + type DoctorReport struct + Categories []DoctorCategory + type EventInfo struct + Agent string + Data map[string]any + Message string + Timestamp time.Time + Type string + type EventsClient struct + func (e *EventsClient) Append(ctx context.Context, ev EventInfo) error + func (e *EventsClient) List(ctx context.Context) ([]EventInfo, error) + func (e *EventsClient) ListByAgent(ctx context.Context, agentName string) ([]EventInfo, error) + func (e *EventsClient) Tail(ctx context.Context, n int) ([]EventInfo, error) + type MCPClient struct + func (m *MCPClient) Add(ctx context.Context, cfg *MCPServerConfig) (*MCPServerConfig, error) + func (m *MCPClient) Disable(ctx context.Context, name string) error + func (m *MCPClient) Enable(ctx context.Context, name string) error + func (m *MCPClient) Get(ctx context.Context, name string) (*MCPServerConfig, error) + func (m *MCPClient) List(ctx context.Context) ([]*MCPServerConfig, error) + func (m *MCPClient) Remove(ctx context.Context, name string) error + type MCPServerConfig struct + Args []string + Command string + Enabled bool + Env map[string]string + Name string + Transport string + URL string + type MessageInfo struct + Channel string + Content string + CreatedAt time.Time + ID int64 + Reactions map[string][]string + Sender string + Type string + type NotifyClient struct + func (n *NotifyClient) Activity(ctx context.Context, channel string, limit int) ([]DeliveryEntry, error) + func (n *NotifyClient) ChannelSubscriptions(ctx context.Context, channel string) ([]Subscription, error) + func (n *NotifyClient) ListSubscriptions(ctx context.Context) ([]Subscription, error) + func (n *NotifyClient) Subscribe(ctx context.Context, channel, agent string, mentionOnly bool) error + func (n *NotifyClient) Unsubscribe(ctx context.Context, channel, agent string) error + type RoleInfo struct + Agents map[string]string + Commands map[string]string + MCPServers []string + Name string + Plugins []string + Prompt string + PromptCreate string + PromptDelete string + PromptStart string + PromptStop string + Review string + Rules map[string]string + Secrets []string + Settings map[string]any + Skills map[string]string + type RolesClient struct + func (r *RolesClient) Get(ctx context.Context, name string) (*RoleInfo, error) + func (r *RolesClient) List(ctx context.Context) (map[string]*RoleInfo, error) + type SecretInfo struct + CreatedAt time.Time + Description string + Name string + UpdatedAt time.Time + type SecretsClient struct + func (s *SecretsClient) Create(ctx context.Context, name, value, description string) (*SecretInfo, error) + func (s *SecretsClient) Delete(ctx context.Context, name string) error + func (s *SecretsClient) Get(ctx context.Context, name string) (*SecretInfo, error) + func (s *SecretsClient) List(ctx context.Context) ([]SecretInfo, error) + func (s *SecretsClient) Update(ctx context.Context, name, value string) (*SecretInfo, error) + type SendResultInfo struct + Failed int + Matched []string + Sent int + Skipped int + type SessionInfo struct + Current bool + ID string + Timestamp time.Time + type SetBudgetReq struct + AlertAt float64 + HardStop bool + LimitUSD float64 + Period string + Scope string + type SettingsClient struct + func (s *SettingsClient) Get(ctx context.Context) (json.RawMessage, error) + func (s *SettingsClient) Patch(ctx context.Context, section string, data map[string]any) (json.RawMessage, error) + func (s *SettingsClient) Update(ctx context.Context, patch map[string]any) (json.RawMessage, error) + type StatsClient struct + func (s *StatsClient) Summary(ctx context.Context) (*SummaryStats, error) + func (s *StatsClient) System(ctx context.Context) (*SystemStats, error) + type StuckConfig struct + ActivityTimeout time.Duration + MaxFailures int + WorkTimeout time.Duration + type StuckDetection struct + AgentName string + Details string + FailureCount int + IdleDuration time.Duration + IsStuck bool + LastEventTime time.Time + Reason StuckReason + func DetectStuck(events []EventInfo, config StuckConfig) StuckDetection + type StuckReason string + const StuckNoActivity + const StuckRepeatedFailures + const StuckWorkTimeout + type Subscription struct + Agent string + Channel string + CreatedAt time.Time + ID int64 + MentionOnly bool + type SummaryStats struct + AgentsRunning int + AgentsStopped int + AgentsTotal int + ChannelsTotal int + MessagesTotal int + RolesTotal int + ToolsTotal int + TotalCostUSD float64 + UptimeSeconds int64 + type SystemStats struct + Arch string + CPUUsagePercent float64 + CPUs int + DiskPercent float64 + DiskTotalBytes uint64 + DiskUsedBytes uint64 + GoVersion string + Goroutines int + Hostname string + MemoryPercent float64 + MemoryTotalBytes uint64 + MemoryUsedBytes uint64 + OS string + UptimeSeconds int64 + type ToolInfo struct + Builtin bool + Command string + Enabled bool + InstallCmd string + MCPServers []string + Name string + SlashCmds []string + UpgradeCmd string + type ToolsClient struct + func (t *ToolsClient) Delete(ctx context.Context, name string) error + func (t *ToolsClient) Disable(ctx context.Context, name string) error + func (t *ToolsClient) Enable(ctx context.Context, name string) error + func (t *ToolsClient) Get(ctx context.Context, name string) (*ToolInfo, error) + func (t *ToolsClient) List(ctx context.Context) ([]*ToolInfo, error) + func (t *ToolsClient) Update(ctx context.Context, tool *ToolInfo) (*ToolInfo, error) v0.1.0-alpha Apr 9, 2026