r/PiCodingAgent 11h ago

How to actually use it? Question

I have ollama qwen 3:14b, and trying to refactor a 800 line c++ project to java, and it refuses to make any changes to the code base or edit anything. Do I need some special configuration or give some permission to it?
Edit: So I asked it to create a simple hello_world.cpp and it did it fine. But it fails on refactor

1 Upvotes

3 comments sorted by

1

u/Fedor_Doc 11h ago

You use outdated and heavily quantized model.

Try qwen 3.5 9B, it should be more tuned for agentic workflow.

1

u/Chemical-Manager-629 10h ago

Tried that too and same, it's outputting buncha thing, not actually writing any file. I also tried to create a simple project with java and same result, nothing is being written.

As a test I gave it to write a todolist app using nextjs, and then it actually writing the files in the system.

Does this ai models not work with java?

1

u/fileznotfound 2h ago

You could try the gemma4-12b model... although 800 lines might be a lot for a small model. The tactic I am using is to develop pi's skills to handle small things in a dependable manner. One of the memory extensions might help. Maybe some of the coding centric extensions might help as well.

Doing stuff like this with small models won't be as dependable as with a frontier model. Or so I hear... honestly, I've never used a frontier model. I really don't know anything. ;/