Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kagan-sh/kagan --skill kg-uigit clone --depth 1 https://github.com/kagan-sh/kaganWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kagan-sh/kagan/kg-ui)<a href="https://agentmods.dev/skills/kagan-sh/kagan/kg-ui"><img src="https://agentmods.dev/badge/skills/kagan-sh/kagan/kg-ui/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kagan-sh/kagan/kg-ui"><img src="https://agentmods.dev/badge/skills/kagan-sh/kagan/kg-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.00320 |
| Opus 5.5 | $0.00024 | $0.00128 |
| Sonnet 5.5 | $0.00012 | $0.00064 |
| Haiku 4.5 | $0.00006 | $0.00032 |
Grade A, and why
kg-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Read kg guide ui. Use kg ui snapshot to find element ids, then click, type, key, scroll, and drag (--hold, then drop or key escape). Use kg ui screenshot for PNG files. Do not use cliclick, osascript, or synthetic clicks. Combine with other Ops (thread, theme, diff, …).
Drive the instance kg status --json just confirmed. Snapshot that window. A second app is the wrong tree.
Never answer an approval; never approve powers; a chat plugin draws, the host types and answers. kg plugin install waits for the person, and kg ui returns person-only approvals cannot be answered with kg ui.
For plugin QA, do not drive the person's window. Run kg plugin preview start <path> and put the KG_DATA_DIR and KG_SOCKET it prints in front of each kg ui command [decision 274].
A chat thread names its controls chat-transcript, chat-prompt, chat-send, chat-cancel, and each plugin prompt button prompt/<plugin>/<command>; kg ui click that id to press it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +2 lines 831fdd989593
- 17d ago Changed · +2 lines 1c957519ab7d
- 20d ago First seen · 11 lines · 59 tokens per session scan A 6b53d010042e
kg-ui is a skill published in the GitHub repository kagan-sh/kagan (5 stars, last pushed today), licensed Apache-2.0. It adds 59 tokens to every session and 320 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.
kg-ui compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kg-uikagan-sh/kagan | Skill | 5 | today | Apache-2.0 | A | 59 | Claude Code, Codex |
| validation-reviewDeevsDeevs/agent-system | Skill | 42 | yesterday | Apache-2.0 | A | 32 | Claude Code, Codex |
| architecture-auditorg2AI/ORG2 | Skill | 2.5k | 28d ago | AGPL-3.0 | A | 70 | Claude Code, Codex |
| e2e-testingorg2AI/ORG2 | Skill | 2.5k | 28d ago | AGPL-3.0 | A | 0 | Claude Code, Codex |
| dual-instance-verificationorg2AI/ORG2 | Skill | 2.5k | 28d ago | AGPL-3.0 | A | 0 | Claude Code, Codex |
| ui-controlyarlson/yarstack | Skill | 3 | 25d ago | MIT | A | 49 | Claude Code |
| evyasys-qaEvyasys-Software-Solutions/EvyaGovernance | Skill | 7 | 1mo ago | MIT | A | 0 | Claude Code |