Skip to main content

Harness

Struct Harness 

Source
pub struct Harness {
Show 19 fields pub name: String, pub register: Vec<String>, pub registered: Vec<String>, pub config: Option<String>, pub marker: Option<String>, pub snippet: Option<String>, pub config_json: Option<String>, pub json_pointer: Option<String>, pub json_entry: Option<String>, pub skills: Option<String>, pub hooks: Option<String>, pub hooks_named: Option<String>, pub hook_events: Vec<String>, pub plugin: Option<String>, pub plugin_template: Option<String>, pub probe: Vec<String>, pub clients: Vec<String>, pub start: Vec<String>, pub resume: Vec<String>,
}
Expand description

One agent runner, as the seat’s own configuration describes it. The seat ships no runner’s name: the file at harnesses_path names them, one table each, and onboard and doctor read it.

A runner registers MCP servers one of two ways. register is a command that does it ({server} is replaced by the path to ljos-mcp) and registered a command that exits 0 once it is done. Or config is a file the runner reads, marker a line that means the entry is present, and snippet what to append when it is not. skills is the directory the runner loads skills from; the protocol goes to <skills>/ljos/SKILL.md.

Fields§

§name: String§register: Vec<String>§registered: Vec<String>§config: Option<String>§marker: Option<String>§snippet: Option<String>§config_json: Option<String>

A JSON config file the runner reads its MCP servers from, for a runner an appended snippet cannot serve.

§json_pointer: Option<String>

Where in that file the entry goes, as a JSON pointer (/mcp/ljos).

§json_entry: Option<String>

The entry to set there, as JSON text; {server} and {name} are replaced.

§skills: Option<String>§hooks: Option<String>

A JSON settings file the runner reads hooks from, in the shape {"hooks": {"<Event>": [{"matcher": "...", "hooks": [{"type": "command", "command": "..."}]}]}}. onboard merges the seat’s memory hook into it, so what the seat knows about a command or a prompt reaches the agent at the point of action.

§hooks_named: Option<String>

A hooks file whose top level maps a hook name to its events ({"NAME": {"PreToolUse": [...], "PreInvocation": [...]}}) takes the seat’s hooks under this name, each command told its event with --event, since that runner’s payload does not name it.

§hook_events: Vec<String>

The events the memory hook fires on. Empty means HOOK_EVENTS, the prompt event alone: a panel of this seat’s personas settled on prompts over tool calls, because a turn issues many shell commands and one prompt. ["UserPromptSubmit", "PreToolUse"] injects on both.

§plugin: Option<String>

Where a runner whose hooks are code loads a plugin from, for a runner with no hooks file: the plugin carries the memory hook and argv law and shells to ljos hook.

§plugin_template: Option<String>

Which bundled plugin goes there: a name in PLUGIN_TEMPLATES.

§probe: Vec<String>

A command that proves the runner loads the ljos tools, not only that its config names them: it must exit 0 and print ljos_sitting. A runner installed without its MCP support lists the entry and loads nothing.

§clients: Vec<String>

The names this runner’s MCP client sends at initialize, when they are not the runner’s name: the seat is then the harness’s name, so one runner’s memory, ballots and trust rows stay one voter instead of scattering over acme and acme-mcp-client.

§start: Vec<String>

How the runner starts in a persona’s home for a session the person can talk in; the runner’s name alone when unset.

§resume: Vec<String>

How it resumes the latest session of the directory it starts in, so a persona’s next hand-off continues its conversation.

Trait Implementations§

Source§

impl Clone for Harness

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Harness

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Harness

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Harness

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Harness

Source§

impl PartialEq for Harness

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Harness

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Harness

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.