r/opencode • u/Frequent-Crow7621 • 4h ago
How are you using OpenCode in your daily workflow?
I'm a software developer, but I've mostly slept through the AI hype because I didn't think it was mature enough. Now I'm back in the race.
I'd like to use OpenCode for example managing and monitoring my own server. I'm still figuring out how to get the most out of it.
A few questions:
- What are you using OpenCode for?
- Do you use cronjobs to collect information and feed it to an LLM, or have you set up specialized agents?
- How much autonomy do you give your agents? Can they run commands with
sudo?
Interested in hearing about your real-world workflows and experiences!
7
Upvotes
2
u/TheWebalorian 3h ago
Building a few Nextjs apps. Wanna try Opendesign with it for the lulz and see what it does.
2
u/PyroGamer666 2h ago
For monitoring a server, the safest way to use an LLM to monitor is to give an Opencode instance on the server the ability to submit issues to a repo when the server encounters errors. If you'd like, you could then set up a Github action that uses Opencode to reproduce the issue and submit a PR fixing it. I wouldn't feel safe letting an LLM manage the server directly, but giving it read-only access and the ability to forward issues to an isolated agent with more autonomy sounds safe to me.
2
u/nacnud_uk 2h ago
Yes. It use it every single day. It is great for anything I want to throw at it. I like being able to switch models mid conversation. But the real win is OpenCode->LM Link->RemoteAIBox. That is working well for me. Just crank it up and let it go. QWEN 3.8 Q4. And it mostly just works. I'd like to try 4.0 but I don't have the resources.
1
u/vhodges 3h ago
I am using it (and Claude Code) for software development (using spec driven development). I am building a tool for 'docs and tickets in the git repo' (think Confluence and Jira alternative) called Manyhands (open source, desktop app). I've also built a System Agnostic Character Sheet app called Menagerie (for TTRPGs) last spring.
OpenCode for ChatGPT (and some of OpenCode's models occasionally) and of course Anthropic wants you to use their own harness (or pay API rates - don't do this, it's too expensive).
Aside from code, I've done some webpages, design and research tasks and I've used it to clean up my NixOS flake to use on both my laptop and new desktop. For the new desktop it helped get PXE boot going and a net install of NixOS with matching sets of software for both machines.
It does NOT have access to sudo, nor do I have it monitoring any live systems. At work, we've got an MCP into NewRelic but more for after-the-fact incident investigations.
1
u/PXLCrusader 3h ago edited 3h ago
Regarding autonomy: absolutely would never allow an AI to have root access to my systems. I sandbox them at all times primarily by having opencode run under a restricted user account; my own account is within its group. Even like that, I don't allow it to use anything like "rm" or "unlink;" instead, I have them store test-code and other things in a directory that gets cleared automatically (not via a cron job, but rather via the project's build system). My project is also a local-only git repo so I can bisect and, if ever necessary, undo any changes that turn out to be wrong or bad. I back it up now and then to another user's home directory, just in case.
Primarily using opencode and AI for development on an old game engine I've off-and-on been developing through the years since 2012 or so.
1
u/seventyfivepupmstr 2h ago
Managing a server sounds like a terrible idea. If it makes a mistake then you face major disaster...
1
u/cenderis 51m ago
I use it for coding tasks (sometimes with local models and sometimes with a company-provided github copilot sub).
Version 2 has a nice built-in /review command that's a great first-pass for reviewing PRs (both ones I want to send and those I want to review). It's not enough on its own, obviously, but in code I'm not that familiar with it can do a decent job at pointing out things I should look at.
It can also help my learn bits of code I don't know about, and produce plans for changes in them (or just a quick first pass at documentation for them). Or just perform boring tasks for me (I've produced a few shell functions I like to use and they're mostly a bit zsh-specific, but it's handy to have bash versions and that's just a request away).
I don't really have much configuration of opencode. Mostly it's as delivered. I did add a review.md that does the same as the built-in one but at the end offers to write the review to a file. (And that was produced by OpenCode. I assumed there was a review.md somewhere but couldn't find it, so I asked what was providing the command (I gave it an exported session to look at). It worked out it was built in and converted the text in the session to a review.md and added suitable text to offer to save it.)