One agent, many providers
An agent keeps its workspace, its thread and its identity when you move it between Codex, Claude and Grok. Switching model should not cost you the context.
Most tools tie the assistant to the model. If you change the model, you start again: new chat, new working directory, and none of the history that made the last answer good. The model is a setting, so it should behave like one.
What an agent keeps
In Pylorn, an agent owns three things that outlive any provider it runs on: a workspace on disk, a thread of everything it has done and an identity of its own. Point the same agent at Codex instead of Claude Code and it is still the same agent, in the same folder, with the same history behind it.
Restarting the application doesn't reset it either. An agent that was halfway through something is still halfway through it tomorrow.
Why it is built this way
The alternative is tempting, and we decided against it. If we wiped an agent on a provider switch, the state would be easy to reason about, because there would be almost none. It would also make the feature useless: the only reason to move an agent between providers is to keep what it already knows and change how it thinks.
So the provider session stays separate from the thread. The session is private resume state that belongs to one command-line tool. The thread is yours, and the thread is what survives.
What this is good for
Run the cheap model until the work gets hard, then move that exact agent up to a stronger one without explaining the task again. Move it back down when the hard part is done. Try the same job on two providers and compare the results, not the setup effort.