songe is an open-source Python CLI that saves corrections you make to your code agent and, when you stop using it, retrains your local model with them, on your own machine and without sending anything outside. Sous Labs published it on PyPI as alpha, with Apache-2.0 license: it trains on Mac with Apple Silicon (MLX) and on NVIDIA or AMD GPUs (PyTorch), and works with the model you’re already serving in LM Studio, Ollama, llama.cpp, mlx-lm, or vLLM.
yoDEV Tested · November 25, 2026
We tested songe 0.1.0a15 on Linux x86_64 without GPU (Python 3.13, 6.4 GB RAM) with a Qwen2.5 0.5B model on llama.cpp: installation,songe doctor,songe init, the service, and hardware messages. We didn’t test training: on a machine without GPU, songe only records conversations, and downloading the servers we needed was blocked in our environment. Everything we describe about learning comes from the README and the project’s documentation.
What is songe?
songe is a local model training engine that sits between your agent and your model server. It works as a proxy compatible with the OpenAI API at http://127.0.0.1:7613/v1: your agent talks to songe, songe talks to your model, and along the way it records what happens. It automatically configures opencode and pi, and works with any tool that accepts an OpenAI-compatible endpoint.
The underlying idea is continual learning: instead of doing fine-tuning as a one-time event, the model adjusts to your way of working while you’re not using it. According to the README, nothing leaves your machine.
At the time of publishing this note (November 25, 2026), all versions published on PyPI are alpha (Development Status :: 3 - Alpha) and the documentation page doesn’t indicate a date or version number.
How does a local AI learn from your corrections?
songe doesn’t train directly on your conversations. The README describes four steps:
- Reading. It looks for moments worth learning: corrections, rules you state (“in this project always use pathlib”), retries, and tool errors.
- Practice. It writes short practice scenes that use your agent’s tools. Your actual conversations are not training material.
- Training. The same model acts as teacher (sees the lesson) and student (with a small adapter, sees only the scene). It’s on-policy distillation. It also reviews previous skills so it doesn’t forget them.
- Checking. A judge compares the current version with the new one at moments when you reacted. The new one is only adopted if it clearly improves, doesn’t change what already worked, and its responses remain sound.
What are Quick Dream and Deep Dream?
songe calls its two learning modes “Dreams”:
- Quick Dream: takes minutes. It doesn’t touch the weights: it adds your preferences, stated or demonstrated, to the model’s instructions. You can undo it or remove preferences one by one.
- Deep Dream: takes an hour or more. It trains a LoRA adapter with the practice scenes. You can revert to any earlier version.
Dreams start automatically when your agent has been inactive for a while (auto-dream, per model) or when you launch them. Before the first training, songe measures what your hardware can handle and adjusts the training size. It only trains if the agent is idle, there’s free memory, and the battery is good, and it stops when you return.
What is a LoRA adapter?
A LoRA adapter is a small set of weights that adds to the base model without modifying it. That’s why songe can activate, change, or remove a learned version without touching the model you downloaded. In the configuration songe generated in our test, the adapter uses rank = 64 and three versions are kept (kept_versions = 3).
Does songe work with Ollama, LM Studio, and llama.cpp?
Yes, all three are supported, along with mlx-lm and vLLM. But they’re not all equally tested: the README says the full workflow was tested with LM Studio on macOS and with vLLM on Linux. For training hardware, Apple Silicon and NVIDIA were tested; AMD is supported but without that validation.
What we found with llama.cpp is important if you already have a server running: songe doesn’t connect to your llama.cpp server, it launches its own. We passed it --upstream-url http://127.0.0.1:8080/v1 and the generated configuration says:
upstream_url = "http://127.0.0.1:42921/v1"
server_owned = true
server_command = ["llama-server"]
server_source_url = "http://127.0.0.1:8080/v1"
songe needs the llama-server binary in the PATH, because it switches adapters through its /lora-adapters API. We only had the llama-cpp-python server, and every request returned a 502:
Local model unavailable · llama.cpp did not become ready; serving pointer was preserved
songe doctor didn’t warn that llama-server was missing. If you use llama.cpp, install its official build before running songe init.
How do you install songe?
You need Python 3.11 or higher and a local model server with a model loaded. According to the README:
uv tool install songe # or: pipx install songe
songe init
On macOS with Homebrew:
brew tap sous-labs/tap
brew trust sous-labs/tap
brew install songe
songe init
pip install songe also works inside a virtual environment. We installed it pinning the version, with uv pip install --pre songe==0.1.0a15 in a virtual environment.
songe init detects your model server and your agents, shows you what will change, and asks once. It accepts --show-diff to see exact configuration changes and --keep-default to not change your agent’s default model. After that, you choose a songe/… model in your agent or point any OpenAI-compatible tool to http://127.0.0.1:7613/v1.
What commands does songe have?
songeorsonge status: what it’s doing now.songe open: the panel in the browser (songe tuiopens one in the terminal).songe models: the models and their auto-dream status;songe models MODEL on|offactivates or deactivates it.songe sleep: launch a Deep Dream now.songe undo MODEL: revert one version back.songe pause/songe resume: stop and resume learning.songe doctor: check the installation.songe forget: delete recorded conversations and keep the learned versions.songe uninstall: stop the service and restore your agents’ configuration (--purgealso deletes data and learned versions).
Does songe work on Linux without GPU?
It works, but doesn’t train. In our test, songe init said it straight up: Learning records only · no GPU for training. And songe models marked the model as Not supported yet · No training accelerator detected; CPU training is disabled by policy. It’s the honest answer: training on CPU doesn’t make practical sense, and songe doesn’t try.
songe doctor also gives a good initial diagnosis: platform, accelerator (cpu), free memory, detected model server (by default it looks for LM Studio’s at http://127.0.0.1:1234/v1), and service status at 127.0.0.1:7613.
Two details we found:
- On Linux, the base installation doesn’t bring PyTorch. The package declares
cuda,rocm, andtorchextras (which add torch, peft, and transformers), but the README doesn’t mention them and only showsuv tool install songe. On Mac with Apple Silicon it doesn’t happen:mlxandmlx-lminstall automatically. If you’re going to train with NVIDIA or AMD, check that before blaming your GPU. We didn’t test installation with the extras. songe sleepresponds✓ Learning requestedeven if no model is connected. It’s not a serious error, but the message suggests something will happen when nothing can happen.
What does songe change on your machine and how do you uninstall it?
According to the README, songe creates:
- A data folder:
~/Library/Application Support/songeon macOS,$XDG_DATA_HOME/songeon Linux, or asongefolder inside LocalAppData on Windows. In our test, afterinitand running the service, it took 392 KB:config.toml, anexperience.sqlite3database, and the log. - A
songe/folder in LM Studio’s models directory with the current learned version. Your models are not touched. - A provider entry in opencode and pi, with a backup.
- A background service that starts when you log in.
On our machine there was no opencode or pi installed, so init left the agent settings unchanged (✓ Agent settings unchanged). To remove everything, run songe uninstall --purge. If you installed it with Homebrew, run songe uninstall before brew uninstall songe.
Is songe worth trying today?
If you have a Mac with Apple Silicon and LM Studio, it’s the path the project tested most and the installation is short. It’s especially useful if you work with a local model and repeat the same corrections to it daily: that’s exactly the signal it learns from. The design has good safeguards: new versions pass a check before being activated, undo reverts, forget deletes what was recorded, and uninstall restores your configuration.
Take it for what it is today: a freshly published alpha. If you use llama.cpp or train on Linux, expect the two snags we found: you need llama-server and probably PyTorch extras.
What about you? What correction do you repeat most to your code agent?
- Yes, if I can undo each version
- Only if I approve each version by hand
- No, I prefer a fixed model
- I prefer another option (tell us which)
Comment below or, if you got this article by email, reply directly to the email: your answer gets published here.
Related: LM Studio, Ollama, or llama.cpp: what actually runs on your machine