Skip to main content

KimetsuSection

Struct KimetsuSection 

Source
pub struct KimetsuSection {
    pub project_id: String,
    pub schema_version: i64,
    pub use_user_brain: bool,
    pub mcp_write_tools: bool,
    pub tier: Option<Tier>,
}

Fields§

§project_id: String§schema_version: i64§use_user_brain: bool

W3.3: per-project opt-out of the global cross-project user brain (~/.kimetsu/brain.db). When false, GlobalUser writes fall back to the project DB and retrieval skips the user-brain merge — identical to KIMETSU_USER_BRAIN=0 but durable and scoped to this project.

Precedence: KIMETSU_USER_BRAIN env > this field > default (true). #[serde(default)] keeps all pre-W3 project.toml files loading unchanged (they get use_user_brain = true).

§mcp_write_tools: bool

v1.0.0: allow the LOCAL stdio MCP server to expose privileged write tools (kimetsu_brain_record, memory_add/accept/reject, …). Default true: the local plugin install on your own machine is the “trusted session” the gate exists for, and the brain’s own workflow (CLAUDE.md guidance, the Stop-hook harvest cue) instructs the agent to record lessons — a default-deny gate contradicted that at every session end. Personalize via kimetsu config set kimetsu.mcp_write_tools false. Precedence: KIMETSU_MCP_ENABLE_WRITE_TOOLS env (set = wins, truthy/falsy) > this field > default (true). The REMOTE server ignores this field entirely (a cloned repo’s project.toml is untrusted there) and stays env-only, default-deny.

§tier: Option<Tier>

v2.6: which product tier this brain runs as.

"free" (default) is the headline claim — zero LLM calls anywhere in the memory pipeline. Ingest, store, retrieve and rerank are FTS5 + local embeddings + a local cross-encoder, and every capability has a deterministic or statistical implementation.

"deep" opts into a local small model in the loop for the handful of features that are genuinely better with one (see Tier). Every Deep feature has a Free fallback that is the Free behaviour, so flipping the tier can add quality but can never remove a capability.

Absent (the default) means auto: a brain with a cheap model configured is already making model calls, so it reads as Deep; a brain without one reads as Free. That keeps every pre-v2.6 project.toml behaving exactly as it did while making the label honest. Set it explicitly to force the tier — "free" is a durable opt-out of model calls even when credentials are present.

Precedence: KIMETSU_TIER env > this field > auto. Resolve it with ProjectConfig::tier, never by reading this field — the resolver also downgrades deep to free when no model is actually reachable, which would otherwise be a label over a no-op.

Trait Implementations§

Source§

impl Clone for KimetsuSection

Source§

fn clone(&self) -> KimetsuSection

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 KimetsuSection

Source§

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

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

impl<'de> Deserialize<'de> for KimetsuSection

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 Serialize for KimetsuSection

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, 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> 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V