← all repositories
sous-labs/songe

Your agent's mistakes become its training data, overnight

Songe sits between your coding agent and your local model, learns from your corrections, and fine-tunes the model while you are away.

★702 stars Python ML FrameworksCoding Assistants
songe
Too new to rank. Velocity needs a few days of history.
not enough history yet
star history

What it does: Songe is a local proxy that records what happens after each of your model’s actions: tool results, errors, your corrections and next message. When your agent goes quiet, it turns those moments into lessons and trains a small adapter on your machine. A new version is only promoted if it does better on your own conversations, and everything stays local, with no account, telemetry, or cloud.

The interesting bit: The training method is on-policy distillation. The model as it stands, shown the lesson, acts as the teacher; the same model with a small LoRA-style adapter, shown only a generated practice scene, is the student. Your real conversations are never trained on directly, the model writes its own practice material in your agent’s tools, and earlier skills get rehearsed so they stick.

Key highlights

  • Two modes: a Quick Dream that injects your stated preferences into the model’s instructions in minutes, and a Deep Dream that trains an adapter over an hour or more.
  • Runs only when the agent is quiet, memory is free, and the battery is fine; stops the moment you return.
  • Every new version must beat the current one at the moments you reacted to, without breaking what already worked.
  • Works with LM Studio, vLLM, Ollama, llama.cpp, and mlx-lm; agents opencode and pi are set up for you, and any OpenAI-compatible tool works.
  • Training on Apple Silicon via MLX and NVIDIA/AMD via PyTorch; machines without a GPU can still serve and record.

Caveats

  • End-to-end testing covers only LM Studio on macOS and vLLM on Linux, with opencode and pi as the tested agents.
  • It installs a background service that starts at login and edits your agent’s provider settings (with backups, and songe uninstall restores them).

Verdict: Worth a look if you run a local model with a coding agent daily and want it to absorb your habits without your data leaving the machine. If you use hosted models or rarely correct your agent, there is little here for it to learn from.

Frequently asked

What is sous-labs/songe?
Songe sits between your coding agent and your local model, learns from your corrections, and fine-tunes the model while you are away.
Is songe open source?
Yes — sous-labs/songe is open source, released under the Apache-2.0 license.
What language is songe written in?
sous-labs/songe is primarily written in Python.
How popular is songe?
sous-labs/songe has 702 stars on GitHub.
Where can I find songe?
sous-labs/songe is on GitHub at https://github.com/sous-labs/songe.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.