Session context injection
Also called: message injection, mid-run context, steering a live session
What is session context injection?
Session context injection is putting material into a coding session that is already running. A correction, a constraint the agent did not have, or a retrieved memory arrives mid-run, so the agent adjusts without the session being killed and started again from the beginning.
What gets injected, and when.
Three occasions, and they have different urgency.
A correction, while it still helps
You can see the agent heading somewhere wrong. Telling it now costs a sentence. Telling it after the run costs the run, and everything it built on the wrong assumption.
A constraint it never had
A teammate has uncommitted work in that file, or the staging database is mid-migration. That is not in the repository and the agent cannot infer it, so somebody has to say so.
Retrieved memory, at the moment it applies
A relevant prior conclusion is most useful when the agent reaches the situation it applies to, which is often not at the start of the session.
Why restarting is a bad substitute.
The alternative to injecting is discarding, and discarding is expensive.
A restart loses the run
Everything already established goes with it, including the parts that were right.
Timing is the value
The same sentence is worth a lot mid-run and nothing at all once the work has been built on the wrong premise.
Shared machines need it
On a device several people use, the constraint that matters most is often one only a teammate knows.
Commonly confused with.
Three related mechanisms.
Session context injection questions
What is session context injection?
Sending material into a coding session that is already running, so the agent gets a correction, a missing constraint, or a relevant prior conclusion without the run being restarted.
How is it different from interrupting?
Interrupting stops the agent. Injection redirects it while it continues working. You reach for interrupt when it needs to stop and injection when it needs to adjust.
Why not just restart with a better prompt?
Because a restart discards everything already established, including the parts that were correct. A sentence delivered mid-run is far cheaper than the run.
Can I do it from a phone?
With Virex Remote, yes. Injecting a message into a live session is one of the controls available from any browser or device.
Does it work on a shared machine?
That is one of the better cases for it, since the constraint that matters most is often something only a teammate knows and nobody wrote down.
Correct the run instead of restarting it.
Virex Remote lets you send a message into a session already in progress.