Documentation
¶
Index ¶
- Constants
- Variables
- func CopyPersonaSoul(personaHostPath, homeDir string) error
- func GenerateConfig(rc *driver.ResolvedClaw, modelCfg *modelConfig) ([]byte, error)
- func GenerateEnvFile(rc *driver.ResolvedClaw, modelCfg *modelConfig) ([]byte, error)
- func GenerateJobsJSON(rc *driver.ResolvedClaw) ([]byte, error)
- func WriteDefaultSoul(homeDir, agentName, podName string) error
- func WriteEffectiveAgents(workspaceDir, agentHostPath, clawdapusMD string) (string, error)
- type Driver
- func (d *Driver) CompileRunWorker(rc *driver.ResolvedClaw, opts driver.RunWorkerOpts) (*driver.RunWorkerSpec, error)
- func (d *Driver) HealthProbe(ref driver.ContainerRef) (*driver.Health, error)
- func (d *Driver) Materialize(rc *driver.ResolvedClaw, opts driver.MaterializeOpts) (*driver.MaterializeResult, error)
- func (d *Driver) PostApply(rc *driver.ResolvedClaw, opts driver.PostApplyOpts) error
- func (d *Driver) SupportsRunProfile(taskHome bool) bool
- func (d *Driver) Validate(rc *driver.ResolvedClaw) error
- func (d *Driver) ValidateRunWorker(rc *driver.ResolvedClaw) error
Constants ¶
const BaseImageVersion = UpstreamTag + "-claw.3"
const (
// RunResultMarker starts the wrapper's result frame on stdout.
RunResultMarker = "\x1eclaw-run-result\n"
)
const UpstreamTag = "v2026.6.19"
Variables ¶
var BaseImageTag = "ghcr.io/mostlydev/hermes-base:" + BaseImageVersion
Functions ¶
func CopyPersonaSoul ¶
func GenerateConfig ¶
func GenerateConfig(rc *driver.ResolvedClaw, modelCfg *modelConfig) ([]byte, error)
func GenerateEnvFile ¶
func GenerateEnvFile(rc *driver.ResolvedClaw, modelCfg *modelConfig) ([]byte, error)
func GenerateJobsJSON ¶
func GenerateJobsJSON(rc *driver.ResolvedClaw) ([]byte, error)
func WriteDefaultSoul ¶ added in v0.3.5
WriteDefaultSoul writes a Clawdapus-generated SOUL.md to the Hermes home directory. This pre-empts the Hermes runner's default identity seeding ("You are Hermes, an AI assistant made by Nous Research") and establishes the agent's own identity from its service name.
The generated soul keeps the voice/craft guidance that makes Hermes agents effective (concise, no sycophancy, varied structure) while replacing the runner-branded identity with the agent's Clawdapus identity.
func WriteEffectiveAgents ¶
Types ¶
type Driver ¶
type Driver struct{}
func (*Driver) CompileRunWorker ¶ added in v0.32.0
func (d *Driver) CompileRunWorker(rc *driver.ResolvedClaw, opts driver.RunWorkerOpts) (*driver.RunWorkerSpec, error)
func (*Driver) HealthProbe ¶
func (*Driver) Materialize ¶
func (d *Driver) Materialize(rc *driver.ResolvedClaw, opts driver.MaterializeOpts) (*driver.MaterializeResult, error)
func (*Driver) PostApply ¶
func (d *Driver) PostApply(rc *driver.ResolvedClaw, opts driver.PostApplyOpts) error
func (*Driver) SupportsRunProfile ¶ added in v0.32.0
SupportsRunProfile reports which per-run profiles Hermes compiles: only the task-home profile. A stateless one-shot Hermes worker is not supported.
func (*Driver) ValidateRunWorker ¶ added in v0.32.0
func (d *Driver) ValidateRunWorker(rc *driver.ResolvedClaw) error
ValidateRunWorker is separate from Validate, which requires a channel handle that a per-run worker never has.