pub struct KimetsuSection {
pub project_id: String,
pub schema_version: i64,
pub use_user_brain: bool,
pub mcp_write_tools: bool,
}Fields§
§project_id: String§schema_version: i64§use_user_brain: boolW3.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: boolv1.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.
Trait Implementations§
Source§impl Clone for KimetsuSection
impl Clone for KimetsuSection
Source§fn clone(&self) -> KimetsuSection
fn clone(&self) -> KimetsuSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more