Back to AI guides

Songe: How Local Coding Models Learn From Your Corrections

Stanley Ulili
Updated on November 30, 2026

A local coding model can follow a correction in one conversation and repeat the same mistake in the next. The model's weights have not changed, and the next session may not contain the instruction that fixed the previous one. Repeating a preference such as using pnpm instead of npm only helps while that preference remains available to the agent.

Songe connects those conversations to a learning process. It records interactions through a local proxy, looks for useful feedback, and uses idle compute to prepare changes for future sessions. Its central distinction is between remembering a preference in instructions and training a model adapter to apply that preference.

That distinction also explains the limits. A proxy can record a correction without proving that a model can learn from it. Songe needs useful feedback, compatible serving infrastructure, training hardware, and a way to reject regressions. The interesting part is the feedback loop around training, rather than the promise that every overnight run makes an agent smarter.

Why a correction does not automatically become learning

An agent, a model server, and a model are separate parts of a coding setup. The agent manages tools and conversations. The server accepts inference requests. The model supplies predictions from its current parameters and the context included in each request.

A correction changes that context immediately. It does not normally update the parameters. If the agent starts a fresh conversation without the correction, the model has no persistent evidence that this repository prefers a different package manager.

Project instruction files address part of this problem. They give future sessions explicit rules. Retrieval systems address another part by finding relevant past information. Training takes a different route: it changes how the model responds when the original correction is no longer present verbatim.

These mechanisms can complement one another. A project policy still belongs in a readable file that humans can review. An adapter may help apply recurring preferences, but it should not become the only place where a critical rule exists.

A proxy connects the agent to the learning system

Songe sits between the coding agent and a locally served model. Requests go through its OpenAI-compatible interface before reaching the server that performs inference. This gives Songe a consistent place to observe the interaction without replacing the agent's terminal, editor, or tool workflow.

Local architecture placing Songe between an agent and the model server

The direction of the arrows matters. Songe is not itself a replacement language model. It coordinates serving and learning around a model that already runs locally. The agent remains responsible for sending requests and executing tools.

Compatibility also has several layers. An endpoint accepting a familiar API can transport requests successfully while a particular model server lacks a convenient way to load the trained adapter. A setup can therefore work for recording before it works for automatic promotion of new weights.

The project lists several supported servers, including LM Studio, vLLM, Ollama, llama.cpp, and mlx-lm. Its end-to-end tested combinations are narrower than that list. That is a useful distinction when evaluating an early project: interface support and a fully exercised learning workflow are different claims.

Conversation history supplies evidence

The proxy records exchanges in a local database. What matters for learning is the relationship between an action and the feedback that follows it: a failed tool call, a repeated instruction, an explicit correction, or a successful retry.

Agent and model server connected through Songe with a local SQLite conversation store

A model's original answer alone does not explain what should change. If it chooses npm and nothing in the record contradicts that choice, replaying the answer can reinforce the same behavior. The later correction supplies the additional information.

This creates an important data-quality problem. A tool error might mean that the model chose the wrong command, that a dependency was unavailable, or that the environment failed temporarily. Treating every error as a durable instruction would teach the wrong lesson.

Similarly, a preference stated in one repository may not apply elsewhere. A good evaluation checks whether the learned behavior remains specific enough. Remembering that one project uses pnpm is useful; refusing to use npm in every future project would be overgeneralization.

Hindsight turns feedback into a lesson

Songe calls the additional information available after an interaction hindsight. The system looks back across the exchange to identify what the agent should have understood at the decision point.

Hindsight example linking an npm command to a tool error and subsequent correction

The same idea appears in ordinary debugging. Once a test fails, the cause may be obvious. Before the failure, the program did not yet have that evidence. Training tries to transfer some of the later knowledge into a response that must be generated earlier.

That is more demanding than copying a corrected answer. The desired behavior is recognizing a relevant situation in a new task. A model that repeats one memorized command can still fail when asked to add a different dependency, run a different script, or work in another directory.

The useful unit of learning is therefore the decision rule: inspect the repository's package-manager evidence and preserve its conventions. The corrected command is one example of that rule, not the whole rule itself.

Quick Dreams and Deep Dreams change different things

Songe offers two learning paths. A Quick Dream collects preferences into instructions used by future sessions. A Deep Dream prepares practice and fine-tunes a LoRA adapter. The first changes what the model is told; the second changes a small trainable component used with the model.

Quick Dream and Deep Dream shown as distinct learning paths

This difference is useful when diagnosing a result. If a preference starts appearing after a Quick Dream, that does not show that the model's weights changed. It shows that persistent instructions affected future inference.

An adapter has a different maintenance cost. Its behavior depends on the base model, the training setup, and how the serving stack loads it. Replacing the base model should not be treated as equivalent to swapping an interchangeable configuration file.

Mechanism What changes Main evaluation question
Current conversation Context for this session Does the agent follow the correction now?
Persistent instructions Context for future sessions Is the rule scoped and applied correctly?
LoRA adapter A trained component used with the base model Does the behavior generalize without damaging other skills?

The mechanisms solve related problems at different levels. The simplest persistent instruction may be sufficient for an explicit policy, while an adapter is more interesting for repeated patterns that are difficult to express as a short rule.

Practice scenes create new decisions

The Deep Dream process builds practice scenes from extracted lessons. Instead of directly training on the entire original conversation, it creates situations in which the model has to make the relevant choice again.

Practice scenes translating a package-manager preference into several coding tasks

Variation matters here. Installing dependencies, adding a test runner, and running an existing test script can all exercise the same package-manager preference without using the same sentence. Those variations help distinguish learning the preference from copying the original answer.

Synthetic practice also has limitations. The generated scenes can be easier, cleaner, or more explicit than real development work. If evaluation uses nearly identical synthetic scenes, improvement can look larger than it is on ordinary tasks.

The original conversations still contain potentially sensitive development information. Generating new scenes does not automatically remove every private identifier or secret from the process. Local storage and any optional cloud configuration need to be considered separately from the choice of training examples.

One model plays teacher and student

Songe's teacher has access to the lesson and its hindsight. The student sees the practice scene without that extra explanation and trains through an adapter. This arrangement tests whether information that helps the model after the fact can improve its answer before feedback arrives.

Teacher with hindsight and student with a LoRA adapter processing the same practice scene

The approach does not require a larger external teacher by definition. However, using the same base model twice does not guarantee that the teacher supplies a strong learning signal. A small model may still fail to understand the correction even when it is shown explicitly.

That is why teacher gain is a useful diagnostic. If hindsight barely changes the teacher's assessment of the desired response, the training process has little additional information to transfer. More compute cannot reliably compensate for an uninformative target.

There is another boundary: learning a conversational preference is different from acquiring a missing algorithmic capability. A model that can use pnpm but forgets a project's preference is in a different position from one that cannot reason through the requested code change at all.

Candidate checks precede promotion

A successful training job is not enough to justify replacing the current model version. Songe compares candidate behavior with the version already in use and checks for regressions and unhealthy tool responses before promotion.

Candidate validation comparing old and new model versions before a swap

The project's check documentation frames this as evaluation on the user's own interaction moments, not a universal capability benchmark. That boundary is important. Improvement on recent corrections is meaningful, but it does not establish that every language, tool, and coding task improved.

A model-based judge can also share blind spots with the model it evaluates. Application tests provide a different kind of evidence: whether the generated code actually satisfies a requirement. Neither replaces the other completely.

For coding work, useful external checks include valid tool arguments, successful builds, regression tests, and adherence to repository conventions. A candidate should be compared on unchanged tasks as well as the newly learned behavior. Otherwise, a narrow gain can hide a broader regression.

Rollback makes experimentation more manageable. The ability to return to an earlier version is valuable because problems may appear after promotion in situations that were absent from the held-out examples.

Idle compute is a scheduling constraint

Training and interactive inference compete for memory and compute. Songe schedules Dreams when the agent is quiet and attempts to yield when activity resumes. This turns an always-on workstation into a potential training resource without assuming the user wants degraded responsiveness during work.

Idle-only training waiting while the agent is active

The user experience depends on more than whether the training process runs in the background. Loading weights, keeping a model server alive, and checkpointing a training run all consume resources. A machine near its memory limit may have little useful idle capacity.

The project's hardware notes distinguish supported backends and measured configurations. Apple Silicon and GPU-based training paths have different requirements. A computer that can serve a quantized model comfortably is not automatically able to train its adapter comfortably.

Without suitable training hardware, the proxy can still serve and record. That is a working component of the system, but it should not be confused with the full learning loop.

Evaluating whether learning is worthwhile

The best starting question is specific: which repeated mistake should disappear? Package-manager choice, command formatting, or a recurring tool-argument error gives a clearer target than asking whether the model feels smarter.

Design notes highlighting teacher gain and the limits of hindsight for small models

Useful measurements include how often the correction was needed before and after training, whether the behavior transfers to new wording, and whether unrelated tasks became worse. The comparison should use the same base model and ordinary workload conditions.

Training time belongs in that evaluation too. If a short instruction file solves the problem with no training, an hour-long adapter run needs another benefit to justify its complexity. Conversely, recurring patterns spread across many sessions may be hard to capture in a clean list of rules.

Songe remains an early system. Its architecture provides a way to gather experience, train, evaluate, promote, and undo. The strength of the resulting model remains an empirical question for the user's hardware, feedback, and tasks.

Final thoughts

Songe makes persistent adaptation a visible engineering loop: record feedback, extract a lesson, create practice, train an adapter, and keep the change only when the checks support it. That is a more concrete proposition than assuming a coding agent learns simply because a user corrected it.

Its promise is strongest when the model already has the underlying capability and repeatedly misses a local convention. Clear project instructions, meaningful evaluation, and rollback remain important. The goal is fewer repeated mistakes in real work, not a training dashboard that reports activity without a measurable improvement.

Got an article suggestion? Let us know
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.