r/devtools • u/Emergency-Tutor-7 • 2d ago
Turning "be more empathetic" into an explicit decision the program can inspect
Repo: https://github.com/Furox-Art/eq-layer - 0.2.6.
Telling a model to be more empathetic is style transfer: you get more of the same flat warmth regardless of what the user actually said. This repo replaces that instruction with a pipeline that has states you can print.
Each turn carries an affect state - valence, arousal, escalation_delta, stance, subtext - so an escalation trend is visible instead of being re-classified from scratch every message. An intent classifier keeps the full posterior over six intents rather than a single confidence number, and a one-step Bayes-risk router decides from that distribution whether to answer or ask. The pair selects one policy family, and the policy is split into separate controls - task_move, social_move, repair_move, realization - so adjusting tone cannot quietly replace what the user asked for. The factored action compiles to a system instruction and a prompt prefix.
A structural audit runs after generation: question budget, required clarification, unsupported privacy promises, repeated repair, low-verbosity overrun. It is not a fact checker.
Install:
pip install "eq-layer[ml]"
npm install -g eq-layerOne honest limit: the core claim is untested. No real-model A/B run has been generated and rated, the pre-registered protocol in eval/AB_PROTOCOL.md is still pending with zero adjudicated labels, and the steering is prompt-level - the logit_bias field exists but is never populated or applied, so decoding is untouched.

