Skip to content

By PromptFission2 min read

Songe retrains your local model on its own mistakes while your laptop is idle

A proxy records what happened after each action a local model took, then distills that hindsight into a LoRA when you step away. No measured gain is published yet.


A local model in a coding agent makes the same mistake on Friday that you corrected on Monday. Songe, from the sous-labs organization on GitHub, tries to close that loop on your own machine. It logs what followed each thing the model did, and when the computer is idle it trains a small adapter so the model would have acted that way without being told.

How it works

Songe is an OpenAI-compatible proxy on port 7613 that sits between an agent such as opencode or pi and a model server such as LM Studio or vLLM. It passes requests through and logs each exchange.

The training signal is hindsight. For each step the model took, Songe has the context it saw and also what came next: the tool result, the error, or your next message. The design document describes a teacher and a student that are the same model. The teacher is shown the context plus that hindsight. The student, the model with a LoRA adapter, is shown the context alone. The student writes a fresh answer, the teacher scores it, and training pulls the student toward what the teacher would have said. The document credits the method to an earlier paper on on-policy self-distillation and lists a rank 64 LoRA.

To protect what the model already does, some steps use general prompts with the original base model as teacher. A new version is served only if it passes a gate on conversations held out from training. Otherwise the old one stays, and songe undo steps back a version.

One practical detail: the document says LM Studio cannot load LoRA adapters, so each accepted version is fused into a full model folder.

What is not there yet

The first commit is dated November 20 and the roadmap calls the project alpha. We found no measured before-and-after result in the repo.

The README and the design document also disagree. The README says the model writes practice scenes and that a judge compares old and new versions. The design document says generating practice tasks from lessons is not built, and describes a gate with no judge model: the student must move closer to the hindsight teacher on held-out steps, without drifting from the base model on general prompts, emitting more invalid tool calls, or repeating itself. The document notes that this measures the training objective, not the task. We cannot tell which description matches the shipped code.

The design document names further risks: small models may be too weak to use hindsight, and fusing into a 4-bit model may erase the adapter’s gain.

Try it yourself

uv tool install songe, then songe init. The README asks for Python 3.11 or newer, a local model server, and Apple Silicon or an NVIDIA or AMD GPU. Installing adds a background service that starts at login and edits your agent’s provider config, with a backup. The license is Apache 2.0, and the README says nothing leaves your machine.

We have not installed or run Songe. This is based on the README, the design document, the roadmap, and the commit history.