Skip to main content

Crate kintsugi_model

Crate kintsugi_model 

Source
Expand description

Kintsugi Tier-2 model wrapper.

The model’s only jobs are to explain (a one-sentence summary) and to score the ambiguous band (a risk 0..=100). It is never in the path for a catastrophic command, and its influence is escalation-only — it can add caution but can never unlock a rule-based block (see CLAUDE.md).

Two backends behind one Scorer trait:

  • HeuristicScorer — deterministic, dependency-free, always available. This is also the graceful-degradation path when no real model is present.
  • LlamaScorer (feature llama) — real CPU GGUF inference via llama.cpp.

Re-exports§

pub use heuristic::HeuristicScorer;
pub use manage::select_spec;
pub use manage::ModelSpec;
pub use manage::MODEL_FALLBACK;
pub use manage::MODEL_PRIMARY;

Modules§

heuristic
The deterministic, dependency-free scorer.
manage
Model weight management: pinned specs, RAM-based selection, checksum verification, and (feature download) the single permitted network fetch.

Structs§

ModelOutput
The model’s structured output for one command.

Constants§

VERSION

Traits§

Scorer
A Tier-2 scorer. Kept warm in the daemon and shared across requests.

Functions§

default_scorer
Construct the best available scorer: the real model if the llama feature is on and weights load, otherwise the heuristic scorer.
model_available
Whether a real (non-heuristic) model backend is compiled in.