Songe fixes local coding model amnesia while you are away
Wire Songe's local proxy in front of Ollama, vLLM, llama.cpp, or LM Studio, choose between Quick Dream and Deep Dream, and size GPU headroom with safe rollbacks.
6 minutes read Czytaj po polsku

On this page (7)
- Key takeaways
- Why local coding models stall and where Songe sits
- Installing Songe and wiring the proxy to your model server
- Quick Dream vs. Deep Dream: instruction edits or adapter training
- Backend support, memory probing, and VRAM sizing on NVIDIA, AMD, and Apple Silicon
- Judge gates, one-click rollbacks, and clean teardown
- FAQ
Key takeaways
- Songe proxies local coding agents at 127.0.0.1:7613, logging tool errors and corrections without cloud calls or telemetry.
- Quick Dream updates model instructions in minutes, while Deep Dream trains adapters on synthetic scenes during idle hours.
- Tested end to end on Apple Silicon MLX and NVIDIA PyTorch, Songe probes memory capacity before background training.
- A judge gate blocks regressions before promotion, and songe undo MODEL or songe uninstall --purge reverses changes cleanly.
Local coding models are fast on a home workstation, yet every new session starts with amnesia. You fix a tool error, clarify which test command a repository uses, and correct an import convention, only for the same mistake to return the next day behind Ollama, llama.cpp, vLLM, or LM Studio.
Padding your system prompt works temporarily, but it eats context tokens on every turn and still drifts over long sessions. Putting a local proxy between your coding agent and inference server lets the workstation observe those failures and refine the model while you are away.
Why local coding models stall and where Songe sits
Stateless inference servers do exactly what they should: evaluate fixed weights against the current prompt. When a local model misuses a tool schema, enters a shell retry loop, or ignores repository rules you already corrected, that feedback disappears once the session closes.
sous-labs/songe (Apache-2.0; 743 stars, 65 forks, and 122 commits as of November 2026) sits in that gap as a local background training engine. It watches agent turns - tool results, execution errors, retries, and user corrections - and queues improvements for idle time.
Instead of pointing your coding agent straight at your inference backend, you connect it to Songe on 127.0.0.1:7613:
coding agent (opencode, pi, or OpenAI-compatible tool)
-> 127.0.0.1:7613 (Songe proxy: logs interactions; never runs tools)
-> local model server (LM Studio, vLLM, Ollama, llama.cpp, or mlx-lm)Everything stays on localhost. There are no cloud calls, no accounts, and no telemetry, and Songe never executes your tools itself. If you are still picking a serving stack, start with Ollama, llama.cpp or vLLM? When convenience stops being enough, and check GGUF file size is not the VRAM you need for baseline memory math.
Installing Songe and wiring the proxy to your model server
Songe requires Python 3.11 or later and registers a background login service to keep the proxy running. Because that service needs a stable, isolated executable path across restarts, running pip install songe against system Python fails on modern externally managed environments and only works inside a dedicated virtual environment. Install it with uv, pipx, or Homebrew on macOS:
uv tool install songe
pipx install songe
brew tap sous-labs/tap
brew trust sous-labs/tap
brew install songeNext, launch your local inference server and run songe init. Songe scans for LM Studio, vLLM, Ollama, llama.cpp, and mlx-lm, then automatically backs up and updates supported agent configs. In opencode, proxied models appear as songe/songe/<name> (for example, granite-4.2-3b-MLX-4bit configured as default from LM Studio). In pi, you pick models through /model. Any other OpenAI-compatible client works by setting its endpoint to 127.0.0.1:7613.
| Model server | Support tier | Notes |
|---|---|---|
| LM Studio (macOS) | Tested end to end | Tuned models stored in a songe/ subfolder |
| vLLM (Linux) | Tested end to end | Tested Linux serving target |
| Ollama | Supported | Detected and proxied via songe init |
| llama.cpp | Supported | Detected and proxied via songe init |
| mlx-lm | Supported | Local Apple Silicon serving path |
Verify the setup with songe doctor.
Quick Dream vs. Deep Dream: instruction edits or adapter training
Songe separates lightweight prompt updates from weight-level tuning through two modes: Quick Dream and Deep Dream.
| Dimension | Quick Dream | Deep Dream |
|---|---|---|
| Runtime | A few minutes | An hour or more |
| Output | Appended model instructions | Trained small adapter |
| Best for | Explicit rules and preferences | Persistent tool errors and retries |
| Verification | Before/after answer diff | Candidate vs. active judge gate |
Quick Dream finishes in a few minutes by appending preferences you stated or demonstrated to the model's instructions. Where an updated rule changes the model's reply, Songe shows a before/after diff so you can confirm the fix.
Deep Dream runs for an hour or more and trains a small adapter in four stages:
- Reading: inspects logged conversations to extract lessons from tool errors, retries, and corrections.
- Practice: writes synthetic practice scenes in the agent's own tools, never training directly on real conversation logs.
- Training: runs on-policy distillation with the base model plus lesson acting as teacher, and the base model plus adapter seeing only the practice scene as student, while rehearsing earlier skills to avoid forgetting.
- Checking: tests the candidate adapter against the active version before promotion.
Use songe models to view managed models and songe models MODEL on or songe models MODEL off to toggle automatic idle Dreams per model. Run songe sleep to trigger a cycle manually, and pause or resume collection with songe pause and songe resume.
Backend support, memory probing, and VRAM sizing on NVIDIA, AMD, and Apple Silicon
Proxy routing and conversation logging run on any host, including CPU-only machines without training capability. Adapter training is tested end to end on Apple Silicon (MLX) and NVIDIA (PyTorch), and listed as supported on AMD (PyTorch).
Before the first Deep Dream run, Songe probes your hardware to measure how much fits in memory at once and scales training to match. Inspect the resolved settings and their sources with:
songe status --trainingYou can also pass a specific MODEL argument. Training starts only when three guards clear: the coding agent is quiet, sufficient memory is free, and battery state is healthy. The moment you return, training stops immediately.
Because serving a quantized model already commits VRAM to weights and KV cache - covered in our GGUF VRAM guide and llama.cpp v1.1.0 memory notes - Deep Dream needs extra headroom on top for teacher/student distillation, often several gigabytes depending on model size, context length, and probed batch limits.
On a 12 GB desktop GPU, compact quantized models already leave slim margins once KV cache is allocated. Quick Dream works normally here, while Deep Dream is best limited to small 3B-class models with modest context windows.
A 16 GB desktop GPU adds practical breathing room for 3B to 8B quantized weights alongside probed adapter training passes.
Moving to a 24 GB desktop GPU gives Linux and Windows workstations reliable headroom to keep a daily coding model resident while running overnight Deep Dream cycles.
On 24 GB+ unified-memory Apple Silicon, MLX draws from a single shared memory pool across CPU and GPU. That avoids hard discrete VRAM walls, though macOS, your editor, and containers share the same pool, so free system RAM still sets the ceiling.
Judge gates, one-click rollbacks, and clean teardown
Before a new version replaces the model you rely on, Songe runs a promotion gate. At historical moments where you reacted - correcting an output or hitting a tool error - both the active and candidate versions generate answers, and a judge compares them. The candidate promotes only if it clearly improves, keeps previously working behavior intact, and produces healthy answers.
Check background status anytime with songe, or open the browser dashboard via songe open to review Quick Dream diffs and inspect why a Deep Dream passed or failed. You can remove a single Quick Dream preference in the dashboard, or roll back an adapter directly from the CLI:
songe undo MODELFor cleanup, songe forget deletes recorded conversations while keeping trained models. To restore your original opencode and pi configs, run songe uninstall. To wipe all local state before uninstalling the package, run:
songe uninstall --purge
brew uninstall songeSwap brew uninstall songe for uv tool uninstall songe or pipx uninstall songe if you used Python tooling. Your underlying server weights remain untouched.
FAQ
Does Deep Dream train directly on my private repository files and conversation logs?
No. During Deep Dream, Songe extracts lessons from logged interactions and writes synthetic practice scenes in your agent's tools, so it never trains directly on real conversation transcripts. You can also clear recorded conversations at any time with songe forget while retaining trained models.
Can you use Songe on a CPU-only machine or an older GPU with limited VRAM?
A CPU-only host can run the 127.0.0.1:7613 proxy and record sessions, though it does not run training. On GPUs, Songe probes capacity before the first run, checks that memory is free before starting, and stops immediately when you return to work.
Will Songe overwrite my base models or break existing coding agent configurations?
No. In LM Studio, Songe places tuned variants in a dedicated songe/ subfolder so original weights remain untouched, and songe init backs up opencode and pi configs before editing them. You can roll back an adapter with songe undo MODEL or restore original configs with songe uninstall.

