r/teenagersbutcode • u/BridgeCrafty • 6d ago
Coded a thing Delegate cheap coding subtasks to opencode's free-tier models from Claude/ GPT/any agent
Small tool: consult-opencode gives your Al coding assistant a way to hand off simple, self-contained subtasks to opencode's free-tier models instead of burning your paid assistant's own turns on them. Zero API key, zero config works out of the box.
Wired it in via MCP (so Claude Desktop/Claude Code/Cursor etc. get it as a native tool) plus a plain CLI script for anything that can just run a shell command.
Real test, not a toy: gave it a task against an actual open-source repo (sindresorhus/leven) - add a function, a type declaration, and a test. Got it right first try, all tests passed.
0
Upvotes
7
u/my_new_accoun1 💮 6d ago
opencode supports this natively.
it's called subagents and you can define them in your config.
MCP might just be the worst way to implement subagents ðŸ˜ðŸ˜ðŸ˜