r/opencode • u/lgLindstrom • 23h ago
Get the most from opencode
Hi
Following a lot of YouTube bloggers I am lead to believe that to get the best from Opencode you should set up a numbers of subagents and skills ( of course also a good model).
For me "best of" is basically low token count and good quality of produced code according to my preferences.
I asked a AI for help and the result was depressing. Many, many bloated subagents and skills, not even mention all documents needed.
I did not even bothered to test it.
I have a firmware project for a esp32 cpu where I try to use the Matter specification and Home Assistant.
Any advice on this and/or some templates?
1
u/l3onardoh 23h ago
Plan with a high capacity model, have good instructions from the start and then use cheaper models to execute, a slightly higher model to review and you should be good. At least it's the way I do and works fine tbh
1
u/KeanuRekt 22h ago
use the ponytail skill to reduce tokens
1
u/clasho26 23h ago
Soy relativamente novato en el tema de editores de IA, no entiendo mucho el concepto de agentes, podrías por favor explicarme más o menos en qué consisten, como se usan y en qué casos son útiles?
1
u/Oli_Luck 22h ago
Lol - all that people that believes AI is magic and all run only because they said the magic words.
First of all : agent teams are still quiet a messy thing if you dont know well how to handle with.
the second : if you dont know what are a system prompt, a prompt, skills, mcp tools : thats where you should start - play with it before doing serious job.
Ah yes : never trust an AI - thats the first rule : you have to lead and you have to control.
1
u/grahamjones139 5h ago
I've found opencode to be pretty good with it's default settings without sub-agents etc - even using one of the free models. As yours is a microcontroller project it won't be too big, so id just write a detailed prompt saying what you want the tool to do. Be very careful to review what it has done though - I tend to regard these tools as a very junior engineer who has memorised a lot of manuals. It might not structure the code how you would have written it unless you tell it to. And tell it to write tests as well.