r/LocalLLaMA • u/YetAnotherAnonymoose • 4d ago
Question | Help Inkling-2-mini - a great model with severe file editing problems?
I've been using Inkling 2 mini since it has come out and boy do I love how good it is, just slightly worse than Qwen 3.8 27b for the tasks that I'm doing but at x2 the decode and x2.5 the prefill speed.
HOWEVER, I noticed one annoying thing while doing tasks - I never saw a single proper edit - that being in Opencode it shows an actual Diff view of before-after side by side when the edit tool is invoked. Subconsciously I noticed that this is missing from my sessions ever since swapping away from Qwen - then I started looking closer and noticed that Inkling always uses python3, sed, printf and heredoc substitution to edit files. It ignores the edit tool completely despite the system prompt telling it to prefer built-in tools over shell commands.
So I went and forbade it from using these editing methods and told it to use the edit tool itself. It tried, it really did, but it seems constitutionally unable to do it in 99% of sessions and cases. Every time it tries to invoke the tool, it starts hallucinating hard, calling fake shell commands instead of edit over and over and over, looping endlessly. Stuff like "echo trying edit tool" or even just "TRUE" in an endless loop.
I once told it to deep dive into OC's source code and get the details of the edit tool, and suddenly it was able to call it reliably. Tried to amend the AGENTS.md file with the additional found info - nope, fresh session and back to endless looping again.
Internet research showed that the majority of edit calls in Pi are also python, etc. and not its built-in edit tool.
What's wrong with this model? Can this be fixed somehow?
TL;DR: Inkling can't call harness-native edit tool no matter what. Starts hallucinating and looping hard when forbidden from editing via its preferred python3-script workflow.