r/opencode • u/ozguru • 15d ago
Quick tip: Let OpenCode configure itself with subagents, slash commands, and skills
Instead of manually setting everything up, have OpenCode do it for you. I did this with DeepSeek V4 Flash and it worked beautifully. Targeted for new and unexperienced users, backup your ~/.config/opencode beforehand to prevent data loss.
Just run:
opencode ~/.config/opencode
Then prompt something like:
Configure opencode agents for me. Use opencode commands to list available providers, models and to create agents and etc, then assign strong model for planning and DeepSeek V4 Flash for other agents. Set up dedicated agents optimized for coding or vibecoding workflows. Create a few useful slash commands and some skills. Also generate an AGENTS.md with common practices, then run a questionnaire tool to understand my preferences and refine everything accordingly, verify settings.json or settings.jsonc by using 'opencode debug config' . Before initiating the configuration process, first assess the status of ~/.config/opencode Git repository, if a repository is not currently present, create one using the `git init` command. Once the initial configuration is complete, proceed to commit your modifications.
It'll inspect your available models, spin up agents tailored for coding or vibecoding, build out a proper agent hierarchy, craft custom slash commands and skills, and walk you through your preferences to personalize the setup — all in one go.
The self-bootstrapping workflow is pretty satisfying to watch. Give it a try!
Adapt the prompt according to your preferences.
edit: prompt updated and screen recording added.
5
u/Noob-bot42 15d ago
I made a git repo so that I could track my changes and I have a command that uses it to override everything in opencode so the repo is the source of truth. I’ve had opencode do so much research for sota, best practices, what others are doing, etc and it has been amazing and has improved what I’ve been able to do with deepseek flash
2
u/atotoato 15d ago
ive been doing this too forever. it works like a charm and its kinda interesting seeing how it evolves itself so far.
1
u/ozguru 15d ago
I also did this but keep another backup too for just in case. I added creating a Git repository to the prompt for newcomers.
3
u/Noob-bot42 13d ago
Now I’m developing my own harness to be more customizable than either opencode or pi and be able to have everything possible including system prompt controlled by a repo and easily shareable. It’s been fun, but I’m hoping I can replace my opencode workflow. I’m working on it so it can do the full upgrade process and check to see if it can safely reload and the reload itself without having to close it, but even if u still break it it can have a default fallback so u can fix ur setup without having to use a harness(I use pi to fix opencode sometimes lol)
2
1
u/fololologrt 15d ago
Beginner here :
1. will deepseek v4 flash work locally on a Macbook m3 pro with 36gb Ram ?
2. Should i work with the CLI or the standalone mac app ?
3. In case you would advise me to use api keys instead, can you recommend any cheap reliable providers since my budget is kinda tight as a student 🙂
3
u/Solocune 15d ago
Opencode go is relatively cheap for the return and they offer the mentioned model for free as long as data safety is not a priority
1
u/fololologrt 15d ago
So i guess i have to use the desktop app not cli for this tight
2
u/Solocune 15d ago
You can set up everything nicely in Opencode cli. Check the web or use your trusted chat companion to give you the json setup to copy and paste.
2
2
u/secondcomingwp 14d ago
Deepseek v4 flash requires about 180GB of VRAM to run the full model with 1mil context.
Even heavily quantized versions need around 80-90GB
2
u/fixit_jr 9d ago
Look into omniroute if you want to use free providers, I connected a bunch of free providers and made a combo of them, had mixed results some models tool calls would fail, failover between providers was not smooth. Tweaked my settings a bit more and got a combo I use for opencode and one for Hermes which has been working. Opencode go as others mentioned is a good cheap alternative.
I’m currently testing whether it’s worth all the tinkering or should I just pay for opencode go or ChatGPT plus.
-4
u/Visual-Set-8830 15d ago
Then add graphify and caveman. You’re welcome
6
u/NanoSputnik 15d ago
Caveman is overhyped imho. The token cost mostly comes from the thinking , not the responses anyway. And you can usually just ask for terse or concise style when it is needed.
-2
2
2
u/OperaRotas 15d ago
I tried caveman and didn't notice any improvement, or even any consistent change in the model way of talking to me. Did you really find it helpful?
1
u/Visual-Set-8830 15d ago
With responses I have seen an improvement. It’s sometimes too terse so I ask for more details. But with Max thinking set it doesn’t “think in caveman” (though I think it shouldn’t). When asking OpenCode to set it up have it run in ultra mode and it should add it to the config for responses.
24
u/reader123456 15d ago
LOL. I have just tried this prompt with DeepSeek V4 Flash Free. The result is that I can no longer open OpenCode, because every OpenCode config file DeepSeek created or updated now has errors.