Versions in this module Expand all Collapse all v0 v0.2.11 Oct 19, 2026 Changes in this version + const Usage + func BoardKey(c peer.Connection) string + func CheckRunner(ctx context.Context, runner string) error + func Directory(root, session string) string + func IsCommand(args []string) bool + func RunAgent(path string) error + func RunnerArgs(spec RunnerSpec, conversation, prompt string) ([]string, io.Reader, error) + func ShellQuote(s string) string + func WriteJSON(path string, value any) error + type Arguments struct + Flags map[string]string + Pos []string + Sub string + Text string + Verb string + func Parse(args []string) (Arguments, error) + type Attention struct + AgentID string + Detail string + Kind string + Task string + TaskID string + type Board struct + AdmissionErrors map[string]string + Connection peer.Connection + Cursor int64 + Draining bool + Endpoints map[string]*Endpoint + Executions map[string]*Execution + Inbox []pc.Event + Incarnation string + LastContact time.Time + LastError string + Listening bool + Outbox []Outgoing + PeerID string + Projects map[string]Project + Recent []pc.Event + Rejoined bool + State pc.State + Token string + Workspace string + type CommandContext struct + Execution string + Pane string + Session string + Socket string + Token string + type Control struct + Args []string + Conversation string + CostUSD float64 + DeliveryID string + Error string + Execution string + Op string + Pane string + Text string + Token string + type ControlReply struct + BudgetRemaining float64 + Conversation string + DeliveryID string + Done bool + Error string + Output string + Paused bool + Prompt string + Stop bool + func Call(ctx context.Context, socket string, req Control) (ControlReply, error) + type Disk struct + Boards map[string]*Board + Version int + type Endpoint struct + AcceptedLeaders []string + Agent pc.Agent + Enrolled bool + LastProbe time.Time + LeaderExecution string + MaxBudgetUSD float64 + MaxRuntime int + MaxTurns int + Mode string + Model string + Origin string + Permission string + SetupError string + type Execution struct + AgentID string + AttemptID string + Base string + Branch string + CommandToken string + Conversation string + CreatedAt time.Time + Deadline time.Time + Delivery []pc.Event + DeliveryID string + Directory string + Error string + ID string + Inbox []pc.Event + Incarnation string + InitialPrompt string + LastDeliveryID string + LastSeen time.Time + PaneID string + Paused bool + Phase string + SpentUSD float64 + TaskID string + Token string + Turns int + type Host func(context.Context, HostRequest) HostResponse + type HostRequest struct + Args []string + Command string + Directory string + Execution string + Name string + Op string + Origin string + Pane string + Secret string + Workspace string + type HostResponse struct + Err error + Exists bool + Value string + type Outgoing struct + Request pc.Request + Token string + type Project struct + Base string + Path string + type RunnerSpec struct + Binary string + CommandContext string + CommandToken string + Deadline time.Time + Directory string + Execution string + KeySecret string + LogPath string + MaxBudgetUSD float64 + MaxTurns int + Model string + Pane string + Permission string + Runner string + RyshDir string + Session string + Socket string + Token string + type Runtime struct + func New(root, session string, host Host) *Runtime + func (r *Runtime) Close() + func (r *Runtime) Command(ctx context.Context, workspace, pane string, args []string) (any, error) + func (r *Runtime) SetConnected(connected bool) + func (r *Runtime) Start() error + type Summary struct + AgentLimit int + AsOf time.Time + Attention []Attention + Board string + Leader string + Listening bool + ReadyAgents int + RegisteredAccounts int + RegisteredAgents int + Runners map[string]int + Tasks map[string]int + Term int64 + type TurnResult struct + Conversation string + CostUSD float64 + Err error + func RunTurn(ctx context.Context, spec RunnerSpec, conversation, prompt string, ...) TurnResult