Coding assistants for KDE
Christoph Cullmann
christoph at cullmann.io
Sun May 25 16:47:17 BST 2025
Hi,
On Monday, May 19th, 2025 at 02:37, Justin Zobel <justin at 1707.io> wrote:
> On 19/05/2025 06:05, Ingo Klöcker wrote:
>
> > On Sonntag, 18. Mai 2025 21:32:20 Mitteleuropäische Sommerzeit Ingo Klöcker
> > wrote:
> >
> > > Yes, there is the theoretical threat that an AI learned code that's under a
> > > less liberal license like the GPL or even under one of the "new" not-OSI-
> > > approved licenses used by certain companies to prevent Amazon from selling
> > > services based on their code (or even proprietary code; for all we know, Co-
> > > Pilot was trained with the entire source code written by Microsoft), but
> > > that's only a problem if the AI cites this code literally so that we could
> > > be sued for plagiarizing. How realistic is this threat?
> >
> > To turn this discussion into something positive: Maybe we should train our own
> > coding assistant AI(s) for Kate/KDevelop with code relevant for C++ and QML
> > which respects the licenses. We'd have an AI model for writing LGPL code that
> > was trained with KF and Qt source code (and other KDE code that's LGPL-
> > compatible) and we'd have a second AI model for writing GPL code that was
> > trained additionally with all of our GPL code.
> >
> > Kate would automatically use the correct model based on the SPDX license of
> > the current file.
> >
> > Regards,
> > Ingo
>
> A nice thought, but we would need to invest quite a bit of money into this to get it to work correctly, from my understanding.
given I played already a bit longer with local running AI stuff via ollama, I tried to use the REST API
https://github.com/ollama/ollama/blob/main/docs/api.md
for a small Kate plugin skeleton:
https://invent.kde.org/utilities/kate/-/merge_requests/1785
that ATM just allows to send the current line as prompt and inserts the result below.
The local port and model are hardcoded, as that is just a draft.
If interest in getting such a thing up and running is there, help is welcome.
Code completion is feasible with such a local setup, too. Just a matter of implementing the right prompting and filling
a completion model with the results.
With ollama no data will leave your machine.
Naturally a question is which models should be promoted as default for licensing/...
That plugin would not just work in Kate but in other KTextEditor plugin compatible applications like KDevelop or RKWard.
Greetings
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-devel/attachments/20250525/bb1483a1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 343 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-devel/attachments/20250525/bb1483a1/attachment.sig>
More information about the kde-devel
mailing list