Versions in this module Expand all Collapse all v0 v0.1.2 Sep 7, 2026 v0.1.1 Sep 5, 2026 v0.1.0 Sep 5, 2026 Changes in this version + var ErrStillRunning = errors.New("still running") + func LoadAgents(home string) (map[string]Agent, error) + func Root(home string) string + func SocketPath(home string) string + type Agent struct + Argv []string + Bare bool + Env []string + type Client struct + func NewClient(home string) *Client + func (c *Client) Ensure(ctx context.Context) error + func (c *Client) Log(ctx context.Context, id string, tail int) (string, error) + func (c *Client) Ls(ctx context.Context, all bool) (string, error) + func (c *Client) Result(ctx context.Context, id, turn string) (string, error) + func (c *Client) Say(ctx context.Context, id, message string) (string, error) + func (c *Client) Spawn(ctx context.Context, spec Spec) (string, error) + func (c *Client) Statuses(ctx context.Context) ([]Status, error) + func (c *Client) Stop(ctx context.Context, id string) (string, error) + func (c *Client) Wait(ctx context.Context, id string, timeout time.Duration) (string, error) + func (c *Client) WaitOnce(ctx context.Context, id string, seconds int) (entry string, final bool, err error) + func (c *Client) Watch(ctx context.Context, ids []string, timeout time.Duration, out io.Writer) error + type Daemon struct + func NewDaemon(home string, logger *slog.Logger) (*Daemon, error) + func (d *Daemon) Ls(all bool, only string) string + func (d *Daemon) Serve(ctx context.Context) error + func (d *Daemon) Spawn(ctx context.Context, spec Spec) (string, error) + func (d *Daemon) Statuses() []Status + type Meta struct + AckSeq int64 + ContextSize int64 + ContextUsed int64 + CostUSD float64 + Detail string + Ended time.Time + ID string + NextRPCID int64 + PID int + SessionID string + Spec Spec + Started time.Time + State State + TurnCallID int64 + TurnDeadline time.Time + TurnLog []TurnInfo + Turns int + Usage Usage + type Now struct + Flag string + Line string + type Spec struct + Agent string + Brief string + Cwd string + Label string + Minutes int + Model string + Thinking string + Writes bool + type State string + const StateDone + const StateFailed + const StateQuota + const StateRunning + const StateStarting + const StateStopped + const StateTimeout + func (s State) Terminal() bool + type Status struct + Entry string + Flag string + ID string + Label string + Line string + State State + type TurnInfo struct + Chars int + State State + type Usage struct + CachedRead int64 + Input int64 + Output int64 + type Worker struct + func (w *Worker) Meta() Meta + func (w *Worker) Result() string + func (w *Worker) ResultTurn(turn string) (string, error) + func (w *Worker) Say(text string) (string, error) + func (w *Worker) Stop() + func (w *Worker) TurnsLine() string