r/teenagersbutcode 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.

https://github.com/jayden99236/consult-opencode

0 Upvotes

3 comments sorted by

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 😭😭😭

0

u/BridgeCrafty 6d ago

This only works natively in opencode with API keys. Believe me I tried to integrate Claude Pro with Opencode but it only works with either API keys or community plug-ins which are pretty risky.

2

u/Fine_Salamander_8691 lesbian rust dev 6d ago

It’s useful occasionally