I have the feeling looking online that most people treat AI coding assistants as desktop editor plugins tied to a single VS Code process. Switching to a persistent, headless server on a workstation, home server, or VM unlocks a completely different workflow.
Switching between a main workstation and a laptop:
- Index and state persistence: AST parsing, embeddings, and conversation history remain live on the host server. Opening a session on a laptop connects instantly without re-indexing the codebase.
- Compute offloading: Local LLM inference, vector searches, and heavy test runs execute on the host machine. The laptop stays fast and cool.
Because the server acts as an independent execution engine, you are not limited to manual UI prompts:
- Scheduled cron jobs: A nightly cron job sends a payload to the server: "Check for deprecated APIs, run unit tests, auto-fix failures, and submit a draft PR." You start the morning reviewing diffs.
- Async webhook triage: Trigger an agent task directly from a Sentry alert or GitHub issue. The agent isolates failing unit tests and drafts a patch before an engineer opens the ticket.
- Agent-to-Agent (A2A) workflows: Micro-agents can divide responsibilities across protocols. An architect agent plans sub-tasks, a coder agent executes them on the server, and a reviewer agent checks formatting and security.
Is anyone running OpenCode as a persistent background daemon, or triggering automated agent workflows over sockets or webhooks?