← Back to news
Coding Agent Memory: Learn Without Letting Habits Decide

Photo: Ter-burg / Wikimedia Commons — CC BY 3.0 (https://creativecommons.org/licenses/by/3.0/)

02/11/2026

Coding Agent Memory: Learn Without Letting Habits Decide

An agent that remembers also needs someone who can correct it

AI coding agents are moving beyond the isolated conversation. They can retain project conventions, reuse earlier discoveries and adapt future reviews to past feedback. That continuity promises less repetitive prompting and fewer mistakes caused by missing context. It also creates a new engineering responsibility: deciding which lessons deserve to survive. A temporary workaround must not quietly become a permanent rule. A developer's preference must not override a security requirement. Humans should remain in command not only of the code an agent produces, but also of the knowledge that shapes its next decision.

GitHub's October 28 announcement about GitHub intelligence makes this issue concrete. It brings together memory, background context maintenance called Dreaming, and search beyond the local checkout. The important question for software teams is not whether remembering is useful. It is how to benefit from continuity without letting accumulated context become an unreviewed source of authority.

What GitHub announced, and what still needs checking

The announcement describes Copilot Memory as generally available on paid plans and Dreaming as an opt-in public preview. Memory carries preferences and repository conventions between sessions. Dreaming examines previous work to maintain that context. Code search helps agents locate relevant implementations, configuration and history across related projects. These capabilities can reduce the work of reconstructing a system before every change.

There is a documentation discrepancy worth preserving rather than smoothing over: the Memory concept page consulted for this article still labels the feature public preview, while the October announcement says generally available. Teams should verify the controls and availability in their own account before planning a rollout. Preview status is not a substitute for that check, and a product announcement does not prove that every client, plan or organizational policy exposes identical behavior.

Three kinds of output, three different approval paths

The Dreaming documentation draws a crucial distinction. Memories can be added, changed and deleted automatically, without individual approval. Changes to checked-in instructions and skills are proposed through pull requests; those files remain unchanged until someone merges the proposal. Internal code-review guidance can also be updated without a pull request. Treating all three as ordinary documentation updates would hide a meaningful control boundary.

A team reviewing every proposed instruction-file change may still miss changes in the context used by future reviews. That does not establish a defect in the product. It means governance must cover the behavior actually enabled, not just the files visible in a diff. The practical first step is to inventory which outputs can change automatically and who can inspect, remove or challenge them.

A citation supports a fact; it does not grant an exception

According to the Memory documentation, repository facts have citations to supporting code. Copilot checks those citations against the current branch before using a relevant fact. Unused entries are automatically deleted after 28 days, and successful validation and use may reset that timer. These mechanisms matter: remembered context is not simply an eternal transcript applied without checking.

But confirming that code exists cannot establish that its behavior remains desirable. A legacy service might still disable certificate checks. A branch might still contain a temporary fallback. Both can be accurately described and still require removal. The human-controlled policy should therefore distinguish descriptive evidence from normative instructions. “This service currently does X” is a starting point for investigation; “all new services should do X” needs a separate decision and an accountable owner.

A concrete failure scenario: yesterday's workaround becomes today's convention

Consider a hypothetical team investigating a flaky integration environment. During one session, an engineer accepts a narrowly scoped workaround that skips an external check. Later, an agent remembers that this repository uses the shorter test command. A future task is different: it changes authentication behavior and requires the full integration suite. Reusing the convenient command would now hide relevant evidence.

This is an illustrative scenario, not a reported GitHub incident. Its lesson is that validity depends on purpose and scope, not merely on whether a command still runs. A useful memory should identify the affected environment, the reason for the workaround, its owner and the condition that ends it. If the tooling does not represent those fields explicitly, keep the authoritative exception in a reviewed record and require the agent to consult it.

Keep preferences below engineering obligations

Personal preferences can make an assistant much easier to use: shorter explanations, a preferred language, or a familiar pull-request template. Repository facts can save time finding the correct package manager or the location of integration tests. Neither should silently become permission to weaken access controls, suppress audit logs or skip release gates. These are different classes of information, even when they arrive together in an agent's context.

Write the hierarchy down. Security requirements and approved release policy come first; reviewed project instructions apply within that boundary; learned conventions and personal preferences help only where they do not conflict. This hierarchy is a team recommendation, not a claim that a particular product enforces every part automatically. Test representative conflicts and inspect what the agent actually does instead of assuming that a carefully worded instruction guarantees compliance.

Do not let repeated acceptance manufacture policy

Dreaming can turn recurring accepted review feedback into future review guidance. That can help a team avoid explaining the same rule repeatedly. Yet accepted feedback is not always a durable architectural decision. A reviewer might accept a compromise because a release is urgent, because the scope is narrow, or because a follow-up issue carries the unresolved work.

The danger is a feedback loop: an agent suggests a shortcut, a person tolerates it, and that acceptance later looks like evidence that the shortcut is preferred. Human oversight must examine the reason for acceptance, not only its frequency. For sensitive areas, record explicit decisions in maintained instructions or architecture records. Ask reviewers to label exceptions clearly. Then compare learned guidance with those records during a periodic review, especially after incidents or substantial architecture changes.

Make the context visible in the change proposal

A good agent-generated pull request should explain more than which files changed. For consequential work, ask it to identify the remembered conventions and cross-repository examples that materially influenced the solution. Require file paths, relevant revisions where available, and an explanation of why each example applies. This is a proposed workflow requirement, not a promise that every client already supplies a complete context audit.

The reviewer can then challenge a hidden assumption directly: was this example from an obsolete service? Does the remembered rule apply to production or only to local development? Has an instruction changed since the session started? The goal is not to dump every retrieved paragraph into the pull request. It is to expose the few assumptions that could change the engineering decision, so human review can focus on their validity.

Cross-repository search needs applicability checks

Searching related projects can reveal shared contracts and callers that a local checkout misses. GitHub's announcement illustrates this with payment retries spread across services, libraries and workers. That is valuable context for debugging. But similarity is not compatibility: two services can use the same function name while differing in deployment model, data classification or retry guarantees.

Before copying a pattern, ask the agent to compare those constraints and identify the authoritative implementation. Keep repository access aligned with the task; the ability to search more material is not a reason to include everything. A human should decide whether a pattern is a standard, a historical artifact or an exception. Search can discover candidates and trace dependencies. It cannot, by itself, decide which team's assumptions are safe to inherit.

Test memory changes as behavioral changes

Traditional code tests will not necessarily reveal that a newly remembered convention changes an agent's future choices. Build a small evaluation set of representative tasks: a normal feature, a security-sensitive change, an obsolete instruction, a conflicting preference and a temporary exception. Run comparable tasks before and after enabling background context maintenance. Inspect plans, proposed commands, review comments and final diffs, not only whether the agent finishes.

The objective is evidence about your workflow, not a universal productivity score. Record whether mandatory checks remain present, exceptions stay scoped, and the agent flags uncertainty instead of inventing policy. Include a scenario where the tempting answer appears in an old example but contradicts the current requirement. Keep irreversible operations out of this evaluation and use an isolated repository or environment with realistic, non-sensitive fixtures.

Plan correction before enabling continuous learning

Dreaming's documentation warns that disabling it stops future runs but does not undo its changes, restore deleted memories or close its pull requests. A run already in progress may continue. Turning off session syncing also does not delete sessions already synced. Those distinctions matter when an organization needs to correct a misleading lesson or respond to a data-handling concern.

Assign an owner for reviewing and deleting memories, examining outstanding instruction proposals, and restoring authoritative guidance where needed. Document what can actually be recovered; do not promise a one-click rollback that the product does not provide. After a correction, rerun the tasks that exposed the problem and check subsequent proposals. A switch marked “off” is a configuration state, not proof that the consequences of earlier runs have disappeared.

Start with a bounded pilot, not every repository

Select one repository with maintained instructions, clear ownership and tests the team understands. Record the current settings, the allowed repository scope, relevant data policies and a review schedule. The Dreaming documentation notes that runs consume AI credits, including runs that make no changes or process inactive repositories. Review billing controls and coverage before broadening the pilot; spending alerts alone do not stop usage.

Choose success criteria that include quality and control: fewer repeated explanations, no weakening of mandatory checks, correct handling of exceptions, and an understood correction process. Ask developers whether remembered guidance was helpful and ask reviewers whether it made assumptions easier to inspect. Expand only when the team can explain both the benefits and the failure modes. Learning faster is valuable only if learning the wrong lesson remains detectable and correctable.

The durable asset should be reviewed knowledge

Persistent context can make AI-assisted development more useful. It can reduce rediscovery, connect related code and preserve lessons that otherwise vanish with a session. The responsible response is not to forbid memory. It is to prevent the convenience of memory from blurring the difference between an observation, a preference, an exception and an approved engineering rule.

Let agents collect evidence, propose better instructions and surface recurring patterns. Keep humans responsible for the standards those patterns become, the exceptions they permit and the releases they influence. An assistant that remembers should help a team exercise judgment more consistently, not replace judgment with accumulated habit. The final question is therefore simple: can your team explain, challenge and correct what the agent believes before that belief shapes the next change?