OpenCode plugin that registers an /askme [question] command. Use it to manually insert a Question/Ask tool call into the conversation, then answer the question yourself to add context — saving copilot quota.
Add to your opencode.json:
{
"plugin": ["oc-askme"],
"command": {
"askme": {
"description": "Ask yourself a question to add context",
"template": "$ARGUMENTS"
}
}
}In an OpenCode session, type:
/askme What database schema should I use?
This tells the AI to call the built-in question tool with your question. The question appears in the UI for you to answer. Your answer is added to the conversation context — without the AI having to generate the question itself.
When using copilot-based providers, every AI-generated token costs quota. By using /askme, you provide the question yourself, so the AI only needs to relay it via the question tool. This keeps token usage minimal while still allowing you to inject context into the conversation.
- You type
/askme [your question] - The plugin intercepts the command via the
command.execute.beforehook - It adds an instruction for the AI to call the built-in
questiontool with your exact question - The AI calls the
questiontool (minimal token usage) - You see the question in the OpenCode UI and type your answer
- Your answer is recorded in the conversation context
- The AI can use your answer in subsequent interactions
MIT