KCP manifests — cut ~33% context window usage for CLI tools (Kilo-compatible plugin) #7020
Replies: 2 comments
-
|
Hi. I'm using KiloCode CLI. It sees the plugin loaded, but the agent don't know about this kcp-plugin at all |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the report. Two things to check: 1. Is the hook output actually appearing? Run a simple command like 2. If the output appears but the agent ignores it The agent needs to know upfront that injected CLI context will be available. Add a This is the same mechanism that makes it work in Claude Code: the agent is primed to look for and use the injected context, not just see it as noise. If neither of those helps, paste what the plugin output looks like when it fires and I will debug further. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If you use Kilo with CLI tools (git, docker, npm, kubectl, etc.) you are likely burning 20–40% of your context window on
--helpcalls and noisy command output.What this does
opencode-kcp-pluginis a Kilo-compatible plugin that gives the agent structured knowledge of 289 common CLI tools before it executes them. No--helplookup. No parsing noisy output. The agent already knows what flags exist and what patterns to use.Install
That's it. The plugin is a no-op if no
knowledge.yamlis present — but the token savings from manifest-backed CLI context apply regardless.What the agent sees before running
ps auxInstead of the agent calling
ps --help(2,000+ tokens of man page output), it gets a 100-token context block with exactly what it needs.Numbers (measured across a full agentic coding session)
ps auxoutput: 30,828 tokens → 652 tokens after noise filter (98% reduction)Verified compatible with Kilo
Both hooks (
experimental.chat.system.transformandtool.execute.after) are present and signature-compatible in@kilocode/plugin. The compiled plugin has zero runtime dependency on OpenCode packages — it works on Kilo out of the box. Tested against@kilocode/pluginv1.2.25.kilo.jsonis supported alongsideopencode.json— both config filenames work.What is covered
289 manifests across: git, docker, kubectl, npm/yarn/bun/pnpm, aws/gcloud/az, terraform, python, java, cargo, gradle/mvn, psql/mysql, and 200+ more. Full list: kcp-commands.
Phase B noise filtering is enabled for the high-noise commands:
ps aux,docker ps,kubectl get,mvn,terraform,aws, and ~60 others — strips boilerplate and truncates before output reaches the context window.Links
Happy to answer questions or add manifests for tools that are missing from the library.
Beta Was this translation helpful? Give feedback.
All reactions