r/opencode • u/palmer_eldritch88 • 24d ago
Is the opencode server feature underused?
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?
1
u/OccasionGood9110 23d ago
Yes, running Opencode as background service. Claude Code orchestrates Opencode executors as required. I can have local or remote clients access it - the Opencode web UI works well and makes Claude Code remote control feel like such a kludge.
It does make me miss the same capability in Claude Code.
0
u/fintip 24d ago
Largely the same idea. Built my first desktop in 20 years just for this.
But have spent the last month instead focused on building a benchmark suite and running benchmarks to figure out what is the strongest and fastest stuff I can run.
Something I'm starting to value more that I originally didn't is how concurrency is actually valuable for me even as a single user. I regularly have run 2-4 Claude windows at a time, sub agents running in parallel is something Claude regularly uses, etc.; you can get more tok/s in theory going down that path.
But not in strata.
It makes vllm make more sense to explore again, potentially.
So many things to test.
But I agree, the dream of having the agent do code reviews and pull requests overnight was exactly the vision when I first conceived of this project.
Love the idea of a sentry alert triggering an LLM agent response.