You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for me, it only outputs a json response without creating an AGENTS.md:
I'll analyze the codebase to create an AGENTS.md file with build/lint/test
commands and code style guidelines. First, let me check for existing
AGENTS.md or relevant configuration files.
This model: hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:UD-Q4_K_XL -- I think I was able to generate an AGENTS.md by increasing the context, ie: OLLAMA_CONTEXT_LENGTH=12288 ollama serve
that comment in #1068 is what inspired me to give it a try. However, it doesn't work with the deepseek-r1 models because the parameter is hardcoded into the model template. So, for those, you gotta:
ollama run deepseek-r1:8b
/set parameter num_ctx 12288
/save deepseek-r1:8b-12k
and then use that model in your config: deepseek-r1:8b-12k
Possibly, I don't know for certain I just know 99% of the time I see these issues it is someone using ollama, those using LMStudio generally have better success
have you had success with running locally (not necessarily ollama, you could do llama-server or llama-cpp-python[server]) with ~32GB RAM on a ~17GB sized model and a limited context window (8192)?
I am having a similar problem.
I used cd into a project and then just run opencode. Now I get this error: Error: Failed to change directory to /Users/nick/Documents/ucms/opencode
Apparently it requires now to provide a path to a project, and if you don't provide it it will use ./opencode as a path (pretty random). So running opencode . fixes the issue.
(In this case /etc/profiles/per-user/nick/bin/opencode is /nix/store/4sppwfm02d88gfih4113zblr4jic4jp7-opencode-0.6.3/bin/opencode )
Only 0.3.112 worked right, but I think all 0.4.* and 0.5.* versions worked.
Activity
github-actions commentedon Aug 27, 2025
This issue might be a duplicate of existing issues. Please check:
/initis a TUI command, not a shell command/initnot working as expected/initusage in TUI contextCLAUDE.mdexists,/initshould modify it, not createAGENTS.md#1906: [ifCLAUDE.mdexists,/initshould modify it, not createAGENTS.md] - Demonstrates proper/initusageThe
/initcommand should be used inside the opencode TUI, not as a shell command. Try:opencodeto enter the TUI/initin the chat interface (not in your shell)The error
opencode initoccurs because opencode is looking for a directory named 'init', which doesn't exist.Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Aug 27, 2025
maybe you misunderstand how opencode works, but
opencodeshould launch the tui, then you type/initand hit enter. This is a slash commandjohnjelinek commentedon Sep 2, 2025
for me, it only outputs a json response without creating an AGENTS.md:
<
continuebut that's not my current working directory ☝️
rekram1-node commentedon Sep 2, 2025
@johnjelinek what model are you using? Can you maybe send a /share link?
johnjelinek commentedon Sep 3, 2025
This model:
hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:UD-Q4_K_XL-- I think I was able to generate anAGENTS.mdby increasing the context, ie:OLLAMA_CONTEXT_LENGTH=12288 ollama serverekram1-node commentedon Sep 3, 2025
Ahh can you replicate the issue after setting that? I think that was the recommended ollama fix as of this issue: #1068
rekram1-node commentedon Sep 3, 2025
I think this may just be ollama thing
johnjelinek commentedon Sep 3, 2025
that comment in #1068 is what inspired me to give it a try. However, it doesn't work with the deepseek-r1 models because the parameter is hardcoded into the model template. So, for those, you gotta:
and then use that model in your config:
deepseek-r1:8b-12kjohnjelinek commentedon Sep 3, 2025
that being said, I'm not sure why that would make this unique to ollama. Wouldn't llama-server have the same issue?
rekram1-node commentedon Sep 3, 2025
Possibly, I don't know for certain I just know 99% of the time I see these issues it is someone using ollama, those using LMStudio generally have better success
johnjelinek commentedon Sep 3, 2025
have you had success with running locally (not necessarily
ollama, you could dollama-serverorllama-cpp-python[server]) with ~32GB RAM on a ~17GB sized model and a limited context window (8192)?rekram1-node commentedon Sep 3, 2025
haven't tried tbh
nickkadutskyi commentedon Sep 5, 2025
I am having a similar problem.
I used
cdinto a project and then just runopencode. Now I get this error:Error: Failed to change directory to /Users/nick/Documents/ucms/opencodeApparently it requires now to provide a path to a project, and if you don't provide it it will use
./opencodeas a path (pretty random). So runningopencode .fixes the issue.rekram1-node commentedon Sep 5, 2025
@nickkadutskyi that's definitely unexpected... how did you install opencode?
nickkadutskyi commentedon Sep 5, 2025
@rekram1-node via nixpkgs, but I don't think it matters since it worked well before.
nickkadutskyi commentedon Sep 5, 2025
Here is some output:
(In this case /etc/profiles/per-user/nick/bin/opencode is /nix/store/4sppwfm02d88gfih4113zblr4jic4jp7-opencode-0.6.3/bin/opencode )
Only
0.3.112worked right, but I think all0.4.*and0.5.*versions worked.rekram1-node commentedon Sep 5, 2025
@nickkadutskyi that makes sense, I only see people having issue when they install from nix
nickkadutskyi commentedon Sep 5, 2025
@rekram1-node actually just checked it if install via via npm and it works properly, both 0.6.3 and 0.6.4
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!