Skip to main content

Codex

Struct Codex 

Source
pub struct Codex;

Trait Implementations§

Source§

impl Harness for Codex

Source§

fn normalise(&self, raw: Value) -> Value

apply_patch becomes a canonical Edit (see patch_edit); the rollout path is dropped.

Source§

fn sub_runs( &self, home: &Path, session: Option<&str>, since: Option<i64>, ) -> Vec<Run>

Each session’s spawned agents (spawn_runs) under $CODEX_HOME/sessions, else home/.codex/sessions.

Source§

fn session_log( &self, home: &Path, session: &str, _input: &Value, ) -> Option<PathBuf>

The thread’s rollout (rollout_of; the session id is the thread id).

Source§

fn checks(&self, target: &Path) -> Vec<(Level, String)>

Which of borg’s hooks Codex does not trust, as Codex itself reports it. Only once borg’s hooks are wired; doctor asks only when codex is installed and answers --version. A failed call is a note, never a failure.

Source§

fn name(&self) -> &'static str

The CLI argument (borg hook <name>, borg install <name>), BORG_HARNESS and presence’s harness.
Source§

fn caps(&self) -> Caps

Source§

fn wiring(&self) -> Wiring

What borg install writes.
Source§

fn target(&self, home: &Path, var: &dyn Fn(&str) -> Option<PathBuf>) -> PathBuf

The config file borg install writes, under home; var reads the harness’s own config-dir variables (--home gives none, so nothing outside home is reached).
Source§

fn probe(&self) -> Probe

What borg doctor asks of the harness’s CLI.
Source§

fn install_notes(&self) -> Vec<String>

What borg install tells the engineer to do in the harness itself (e.g. trust the new hooks).
Source§

fn hidden(&self) -> bool

Left out of help, completions, all, status and doctor (the simulated harness).
Source§

fn budgets(&self) -> Option<Budgets>

What its adapter waits for each answer (Budgets); None where the harness runs borg’s hooks itself, under the timeout borg installs or its own default (Claude Code, Codex). Default: None.

Auto Trait Implementations§

§

impl Freeze for Codex

§

impl RefUnwindSafe for Codex

§

impl Send for Codex

§

impl Sync for Codex

§

impl Unpin for Codex

§

impl UnsafeUnpin for Codex

§

impl UnwindSafe for Codex

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

Source§

type Output = T

Should always be Self
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.