Skip to main content

AgentEntry

Struct AgentEntry 

Source
pub struct AgentEntry {
Show 33 fields pub session_id: String, pub client_instance_id: Option<String>, pub native_actor_key: Option<String>, pub native_parent_actor_key: Option<String>, pub native_instance_key: Option<String>, pub heddle_session_id: Option<String>, pub thread_id: Option<String>, pub thread: String, pub pid: Option<u32>, pub boot_id: Option<String>, pub liveness_path: Option<PathBuf>, pub heartbeat_at: Option<DateTime<Utc>>, pub anchor_state: Option<String>, pub anchor_root: Option<String>, pub reservation_token: Option<String>, pub path: Option<PathBuf>, pub base_state: String, pub started_at: DateTime<Utc>, pub provider: Option<String>, pub model: Option<String>, pub harness: Option<String>, pub thinking_level: Option<String>, pub usage_summary: AgentUsageSummary, pub last_progress_at: Option<DateTime<Utc>>, pub report_flush_state: Option<String>, pub attach_reason: Option<String>, pub attach_precedence: Vec<String>, pub winning_attach_rule: Option<String>, pub probe_source: Option<String>, pub probe_confidence: Option<f32>, pub status: AgentStatus, pub completed_at: Option<DateTime<Utc>>, pub context_queries: Vec<ContextQueryEntry>,
}
Expand description

A registry entry describing one active (or recently finished) agent session.

Fields§

§session_id: String

Unique session identifier (e.g. agent-xxxxxxxxxxxx).

§client_instance_id: Option<String>

Stable harness-side instance identifier used to reconnect the same local client process to its registry entry across bridge restarts.

§native_actor_key: Option<String>

Harness-native actor identity such as codex:thread:thr_123.

§native_parent_actor_key: Option<String>

Harness-native parent actor identity for child/subagent sessions.

§native_instance_key: Option<String>

Harness-native reconnect key such as a transcript path or client name.

§heddle_session_id: Option<String>

Heddle session identifier when this registry entry is attached to a first-class Heddle multi-segment session.

§thread_id: Option<String>

Thread identifier when the session is attached to a Heddle thread record.

§thread: String

The Heddle thread the agent writes to.

§pid: Option<u32>

Process id that created or last renewed the reservation.

§boot_id: Option<String>

Host boot identifier when available; differentiates reused PIDs.

§liveness_path: Option<PathBuf>

Advisory liveness lock file path for future long-lived runners.

§heartbeat_at: Option<DateTime<Utc>>

Most recent reservation heartbeat.

§anchor_state: Option<String>

Full state id the session was anchored to.

§anchor_root: Option<String>

Root tree id the session was anchored to.

§reservation_token: Option<String>

Opaque token returned to programmatic agent clients.

§path: Option<PathBuf>

Absolute path to the agent’s checkout directory, if filesystem-based.

§base_state: String

Short display form of the base state the agent started from.

§started_at: DateTime<Utc>

When the agent session was created.

§provider: Option<String>

AI provider (e.g. anthropic).

§model: Option<String>

AI model (e.g. claude-sonnet-4-6).

§harness: Option<String>

Harness or client name (e.g. claude-code, codex).

§thinking_level: Option<String>

Harness-specific reasoning/thinking level when available.

§usage_summary: AgentUsageSummary

Aggregated usage counters captured for the active session.

§last_progress_at: Option<DateTime<Utc>>

Most recent progress heartbeat timestamp.

§report_flush_state: Option<String>

Summary flush state for the local session reporter.

§attach_reason: Option<String>

Most recent explanation of why Heddle attached this actor to its current thread/session context.

§attach_precedence: Vec<String>

Ordered explanation of attach rules Heddle evaluated.

§winning_attach_rule: Option<String>

The attach rule that won for this actor.

§probe_source: Option<String>

Where Heddle learned the harness identity from.

§probe_confidence: Option<f32>

How confident Heddle was in the probe result.

§status: AgentStatus

Current status.

§completed_at: Option<DateTime<Utc>>

When the agent was marked complete or merged.

§context_queries: Vec<ContextQueryEntry>

Log of heddle context get calls made during this session. Appended by the CLI each time an agent queries context from its worktree.

Trait Implementations§

Source§

impl Clone for AgentEntry

Source§

fn clone(&self) -> AgentEntry

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 AgentEntry

Source§

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

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

impl<'de> Deserialize<'de> for AgentEntry

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 From<&AgentEntry> for ActorChainNode

Source§

fn from(entry: &AgentEntry) -> Self

Converts to this type from the input type.
Source§

impl Serialize for AgentEntry

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

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> 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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more