Background coding agents
A background agent is an agent on a machine that stays on, in a session that survives you leaving. An EnvHaven workspace gives you that for every built-in agent; hosted services give it for their own.
Updated November 23, 2026
“Run it in the background” sounds like a feature, and it is mostly a question of where the agent runs. Three things have to be true: the machine stays on, the session survives your disconnecting, and you can check in from another device.
On an EnvHaven workspace
A workspace is an always-on Linux server of your own, and all three already hold there for every built-in agent:
- Open the workspace from your EnvHaven dashboard and choose an agent from the Launch menu. The first time, Sign in connects it to your own account.
- Give it the task. Most agents start without approval prompts, because the workspace itself is the sandbox.
- Close the tab, or the laptop. The workspace has no idle shutdown, and its terminal is one tmux session that keeps running while you are away.
- Check in from any device. A phone’s browser, an SSH app and the Haven CLI all open that same session, mid-task.
Hosted cloud agents
Claude Code on the web, Codex cloud tasks, Google’s Jules and GitHub’s Copilot coding agent each run their own vendor’s agent on the vendor’s machines. You give them a repository and a task, they work, and you review a pull request. That is a good fit for well-defined tasks against a GitHub repository.
They are less suited to work that needs a running app, a database, a long conversation you come back to, or a different agent than the one the vendor makes.
On a machine you manage yourself
Any terminal agent becomes a background agent on an always-on Linux machine of your own:
tmux new -s task
codex # or claude, opencode, kimi, droid...
# give it the task, then Ctrl+B, D to detach
The agent keeps working when you leave, and tmux attach -t task brings you back from any computer with SSH. Everything around it is yours to set up: the server, each agent’s install and sign-in, and a way to reach what it builds.
Things that make background work go well
- Turn approval prompts off on the machine where the agent runs. A background agent that stops to ask is a foreground agent waiting for you. The full-access reference has the setting for each agent.
- Give it a way to show results. A running app at a public address beats a description of one, and on a workspace that address is the preview URL.
- Run two agents from different providers. When one provider is rate limited or down, the other keeps working on the same files. The status page shows which providers are having a bad day.
- Write the plan down. Ask the agent to keep a progress file in the repository, so a fresh session can pick up where an old one stopped.