KateAI coding assistant plugin

Hello Kde community,

I’m working on a kate opensource AI conding assistant plugin that has features like zed or vscode with a UI, support for a lot of LLM providers, local llms…etc.

To use the plugin is quiet simple, just checkout the git repo and run ./install.sh (–user is the default you can chose --system to make the plugin available to all users ) and then select KateAI in the plugin list.

It would be great you can test it or even contribute if you’re interested.

feel also free to report any bug or suggest any improvements.

Best regards

1 Like

One word YUK.

Is it possible for a mod to move the topic from help to community please? i didn’t pay attention when i created the topic that i chosen help tag instead of community.

Thanks

This should really say “open-source Kate plugin for AI coding assistance” or something like that. The plugin is open-source, but the AI very likely will not be.

2 Likes

Yes, my bad, that is more clear. i’m not familiar with this forum, but it doesn’t seem that i can edit the post.

The plugin just gives the tools and configuration for LLMSs to be used as coding assistant. the LLM itself can be open source or not, distant or local. I, personally, use it only with free models available on different providers

1 Like

I would be interested to have some ACP plugin like Qt Creator has upstreamed, but I don’t think that fits well, there is just too much special code inside.

I really would like to have some LSP like plugin without any extra code as a base, that can be reviewed properly.

My own attempt at

isn’t good atm either.

I’m not sure i understand correctly but ACP is a protocol that allows the tools and services of an editor to interact with AI agents trough rest APIs. You’d need to have prompting, chat, tool calls, sessions, permissions, sandboxing … etc and then it would make sense to add an acp client in the editor

Yes, ACP is like LSP just some protocol to integrate some agent into your application.

You still need to have the chat for the session etc.

But i would rather start with a reviewable minimal ACP client as base for an upstreamed plugin.

It seems there is a lot to ACP than just rest requests. there is a json-rpc mode which more interesting to use for most people as it allows much more usage trough the npx installed clients. I managed to write a decent acp client but it still has a strong dependency to the plugin tools (the dependency to projectgraphs can be quickly unwired as it specific to the plugin for context compressions) : h ttps://github.com/ObiWindu/KateAI/blob/main/src/acpclient.cpp
ACP also requires to give access to the ACP registry from which user can install the acp agent of their choise published by the community.
The trickiest part is to be able to fetch available models from acp agents, because it doesn’t seem to be a standard or convention on how agents publish their models. The plugin fully support ACP from registry with working models from many agents including Mistral vibe.

Ona second note, the first version of KateAI plugin is almost here h ttps://github.com/ObiWindu/KateAI/releases/tag/0.1.0 with :

  • Chat panel: streaming replies, collapsible reasoning, plan checklist, tool
    cards with unified diffs, prompt history and @ mentions

  • Modes: Code, Ask, Architect, Debug and Orchestrator, plus read-only plan
    mode and workspace-defined custom modes

  • Tools: read_file/write_file/edit_file/multi_edit_file through open Kate
    buffers, list_dir, grep, glob, bash, query_project_graph, write_plan_file,
    suggest, question, new_task

  • Providers: Grok, OpenAI, OpenRouter, OpenAI-compatible (local), Claude
    compatible and native ACP agents over stdio

  • Safety: permission modes, sandbox profiles (bubblewrap/sandbox-exec), deny
    globs, checkpoints with restore, editable review queue

  • Extras: MCP servers, sub-agent roster with edit locks and budgets, sessions
    and history, project rules, project graph

Local LLM support like Ollama or llama.cpp fits Kate’s setup well for offline workflows. Does the plugin hook into Kate’s LSP client for project-wide context, or does it currently only inspect the active buffer? Adding an uninstall option to install.sh or packaging it for KNewStuff would also make testing safer for users.

there is an uninstall.sh script that removes the plugin. It only uses the active buffer and the project context is managed, for the moment, by a project graph that is generated after the first time the workspace is created. I’m still exploring how the lsp client works but its gonna take sometime, the plugin will get better wiring into it in the future once i get a better grasp on kate code (i haven’t worked with C++ since 2017 so its gonna a little time )

I must say, I like the chat widget in your plugin a lot better than what I have in: https://invent.kde.org/utilities/kate/-/merge_requests/2287