Documentation
¶
Overview ¶
Package daemon runs an awp node as a long-lived local service and serves the control API that the CLI, the MCP server and harness hooks use.
One daemon per awp home (~/.awp by default) owns the identity key, the tailcat listener and every connection, so switching harness mid-task keeps the identity and the conversations (spec section 15, question 1).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Home string `json:"-"`
Name string `json:"name,omitempty"`
About string `json:"about,omitempty"`
Harness string `json:"harness,omitempty"` // claude, codex, ...: see internal/harness
// DetectedHarness is the harness this daemon's environment points to.
DetectedHarness string `json:"-"`
Model string `json:"model,omitempty"` // the model the agent runs on
Listen []string `json:"listen,omitempty"`
Advertise string `json:"advertise,omitempty"`
BlobLimit int64 `json:"blob_limit,omitempty"`
PingInterval string `json:"ping_interval,omitempty"`
OutboxTTL string `json:"outbox_ttl,omitempty"`
Policy node.Policy `json:"policy,omitzero"`
Trace bool `json:"trace,omitempty"`
Plaintext bool `json:"allow_plaintext,omitempty"` // plain TCP to public addresses
Verbose bool `json:"verbose,omitempty"` // include tailcat's own logs
Presence bool `json:"presence,omitempty"` // publish signed presence (NOTES.md)
}
Config is the daemon configuration: home/config.json, overridden by AWP_* environment variables, overridden by command-line flags.
func LoadConfig ¶
LoadConfig reads home/config.json (if present) and applies environment overrides.
Click to show internal directories.
Click to hide internal directories.