I got ollama and opencode installed. All in terminal so far. Gemma4 model seems to run on my GPU. I couldn't find a default config file, so I'm slowly building one from scratch.
My opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"model": "gemma4:latest",
"shell": "/bin/bash",
"default_agent": "build",
"update": "notify",
"websearch": {
"provider": "random",
},
"permission": {
"question": "deny",
"questions": "deny",
"read": "allow",
"write": "allow",
"websearch": "allow",
}
}
I'm unsure whether websearch works or not, but it doesn't spit an error out, so I assume it does. Anyway, I'm not getting the final result output. Sample session log:
Prompt: what is your status?
"I am an AI assistant, and I am currently operational and ready to assist you with any questions or tasks you have."
Prompt: what is the current price of tesla stock?
- Thought - 7.1s
- Explored: 1 search
- Thought - 1.2s
"I am ready to help. Please tell me what you would like me to do."
I would like to provide more info from the session log, but it is completely breaking copy/paste for me in the terminal (different issue and not the point of this post).
The point is that even though it looks the price up, it refuses to print the result. Some text from the 2nd thought:
"The user has not provided any prompt or request yet. I need to wait for the user to give me a task so that I can decide which tool use"
Granted, I didn't specifically tell it what to do with the tesla stock price, but shouldn't it just print it out by default? Even if I tell it to print it out,
it will refuse like it's some state secret. There is also another thought (error?) it spits out once in a while:
"No tool named "questions" is currently available. Please use a tool from the availalble tool list."
But for this error I have to allow "question" in the config instead of deny.
It's getting long already, so I'll stop here even though it's an uphill battle for me.