How to actually have agent write code? #3089
-
|
Hi, I am running deepseek r1 14B locally on 32gb ram macbook pro, and chat + deep research all seems to work ok. However I can't for the life of me get the agent to actually write code, it will always just give instructions and code snippets but won't touch files, and half the time it will give me this error |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 22 replies
-
|
I don't know if this project is meant write code like Claude or Open code, I might be wrong, but I think Odysseus is more a way to interact with local LLM's in a mode structured way for handling tasks, processing text, research and such, but I don't think it's an IDE, but again, I might be wrong |
Beta Was this translation helpful? Give feedback.
-
|
I think I have misunderstood the point of this repo as well. I wished it were like claude where I can tell it to fix an issue with my system and off it goes reading configs and such. Even a simple thing like having it code up a rust app that shows the current date and time it fails horribly at (Qwen3-Coder-30B-A3B-Instruct-AWQ) getting stuck in a loop describing the code it wrote but failing to install the tools required to compile it (because it runs in a docker container?). I'm really searching for a claude cli replacement where I can run the models on my gpu instead but alas, this one wasn't it either. Cool stuff nonetheless. |
Beta Was this translation helpful? Give feedback.
-
|
Good question, and you're close, it just needs two things turned on, plus some context on where this is headed. 1. Use Agent mode, not plain chat. In plain chat the model only talks, it'll describe code and paste snippets but never touch files. The file-editing tools ( 2. Select a workspace. Use the Select workspace picker (the "+" / overflow menu in the input bar) and point it at your project folder. That becomes the agent's working directory: file/code tools are confined to it and Where this is going: a capable, local-first coding agent is very much a goal for the project, not an afterthought. It's early though, and two things gate it today: (a) reliability leans heavily on the model, smaller local ones (deepseek-r1 14B, Qwen3-Coder-30B) often loop or "describe what they wrote" without emitting a real tool call, exactly what you're seeing, and a stronger model helps a lot; and (b) there are known bugs in the tools themselves, especially on Windows (some assume a Unix environment), which we're actively fixing. So the agent already reads configs and edits files, and that path is being pushed hard, just expect rough edges for now and that model + platform matter. On One more thing: all of the above (Agent mode, the workspace picker, the recent tool work) currently lives on the latest |
Beta Was this translation helpful? Give feedback.
-
|
Quick follow-up on the The cause was the reachability probe: Odysseus pinged the bare base URL to decide if an endpoint was online, but some OpenAI-compatible servers (llama-swap and similar, especially outside Docker) return 404 on the base Pull the latest |
Beta Was this translation helpful? Give feedback.
Good question, and you're close, it just needs two things turned on, plus some context on where this is headed.
1. Use Agent mode, not plain chat. In plain chat the model only talks, it'll describe code and paste snippets but never touch files. The file-editing tools (
read_file,write_file,edit_file,bash, etc.) only run when Agent mode is enabled (the agent toggle in the chat input). That's almost certainly why you're getting snippets instead of edits.2. Select a workspace. Use the Select workspace picker (the "+" / overflow menu in the input bar) and point it at your project folder. That becomes the agent's working directory: file/code tools are confined to it and
bash/pythonrun ther…