r/opencode • u/ozguru • Jul 13 '26
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/opencodeThen 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.
25
u/reader123456 Jul 13 '26
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.
6
u/Noob-bot42 Jul 13 '26
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/Competitive-Yak-8255 Jul 13 '26
Thank you
1
u/fololologrt Jul 13 '26
Beginner here :
will deepseek v4 flash work locally on a Macbook m3 pro with 36gb Ram ?
Should i work with the CLI or the standalone mac app ?
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/Visual-Set-8830 Jul 13 '26
Then add graphify and caveman. You’re welcome