feat: add Kilo CLI provider#202
Open
metapeka wants to merge 1 commit intogetagentseal:mainfrom
Open
Conversation
Adds provider for Kilo CLI (kilo serve / kilo run) that reads sessions
from ~/.local/share/kilo/kilo*.db using the same SQLite schema as OpenCode.
- New provider: src/providers/kilo-cli.ts
- Registered in src/providers/index.ts with lazy loading
- Supports KILO_DATA_HOME env var for custom data directory
- Deduplication key: kilo-cli:{sessionId}:{messageId}
|
Hi, kilo-cli discovers DBs under ~/.local/share/kilo or KILO_DATA_HOME, but does not honor XDG_DATA_HOME like other sqlite providers do, so non-default XDG setups won’t be discovered unless users set KILO_DATA_HOME explicitly. Severity: informational | Category: maintainability How to fix: Check XDG_DATA_HOME too Agent prompt to fix - you can give this to your LLM of choice:
Found by Qodo code review. FYI, Qodo is free for open-source. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new provider for Kilo CLI — the command-line agent (
kilo serve,kilo run,kiloTUI). This is separate from the existingkilo-codeprovider.Kilo CLI vs KiloCode (existing provider)
CodeBurn already has a
kilo-codeprovider, but it reads from the VS Code extension only:kilo)globalStorage/kilocode.kilo-code/tasks/→ui_messages.json~/.local/share/kilo/kilo*.db(SQLite)They are completely different data sources with different formats — one does not cover the other.
Changes
src/providers/kilo-cli.ts— reads sessions from~/.local/share/kilo/kilo*.dbsrc/providers/index.ts— registered with lazy loading (needsbetter-sqlite3)Details
KILO_DATA_HOMEenv var for custom data directorycodeburn report --provider kilo-cli