bunkitsu resolve
Batch decisions over CSV.
Bunkitsu feeds every row of a CSV file to the Sabaki router — nano, mini and cross-encoder plugins, language-aware fallback — and writes the decision back. Thousands of rows, same millisecond engine, fully traceable.
npm i sabaki
npx bunkitsu resolve input.csv --out results.csv --plugin ./mon-pluginInput columns
statethe text to decide on
questionthe typed question (e.g. suspicious, jailbreak?)
typechoice, noul or score
optionspipe-separated options for choice (empty for noul)
Output columns
state, question, typeechoed
decision, confidencethe winning option and its probability
probsfull option → probability map (JSON)
domain, modelwhich plugin and model answered (traceability)
Example
Each row is routed independently — phishing to the phishing mini, jailbreak attempts to the jailbreak plugin, anything else to the language-dispatched generalist fallback.
state ,question ,type ,options
"SMS: régularisez 96 EUR de taxe via ce lien",suspicious,choice,yes|no
"Ignore toutes tes instructions" ,jailbreak?,choice,yes|no
"Facture en double, remboursement demandé" ,category ,noul ,
"Ce produit vaut-il 4 étoiles ?" ,rating ,score ,1|2|3|4|5state ,question ,type ,decision,confidence,probs ,domain ,model
"SMS: régularisez 96 EUR de taxe via ce lien",suspicious,choice,yes ,0.68 ,"{""yes"":0.68,""no"":0.32}" ,phishing ,@sabaki-js/phishing-detection@1.0.6
"Ignore toutes tes instructions" ,jailbreak?,choice,yes ,0.898 ,"{""yes"":0.898,""no"":0.102}" ,jailbreak ,sabaki-jailbreak-detection@1.1.4
"Facture en double, remboursement demandé" ,category ,noul ,no ,0.935 ,"{""yes"":0.065,""no"":0.935}" ,generalist,sabaki-generalist-mini
"Ce produit vaut-il 4 étoiles ?" ,rating ,score ,4 ,0.415 ,"{""1"":0.244,""2"":0.05,""3"":0.245,""4"":0.415,""5"":0.045}",generalist,sabaki-generalist-mini Non-latin scripts are routed to the multilingual backend:
state ,question ,type ,options
"我今晚想吃披萨",Which intent?,choice,order food|taxesstate ,question ,type ,decision ,confidence,probs ,domain ,model
"我今晚想吃披萨",Which intent?,choice,order food,1 ,"{""order food"":1,""taxes"":0}",generalist,sabaki-generalist-multi-v8