Skip to content
Back to skills

Kg Cli

ASecurity

Find the running kagan app, read status, list projects and programs, and choose the right kg command. Use before acting in a thread, when kg is not found, or when a command needs the project, environment, or data folder.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsgit

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add kagan-sh/kagan --skill kg-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kg Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kg Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kagan-sh-kg-cli/badge)](https://www.skillsdirectory.com/skills/kagan-sh-kg-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: kg-cli
description: Find the running kagan app, read status, list projects and programs, and choose the right kg command. Use before acting in a thread, when kg is not found, or when a command needs the project, environment, or data folder.
---

Read `kg guide` for the command and preference map, and `kg guide json`. Read `kg status --json` for thread context. Use `kg guide threads`, `kg guide projects`, `kg guide environments` and `kg guide ui` before changing work. Use --json and treat a nonzero exit as a failure.

The binary that talks to the open app is `cli` from `kg status --json`. Outside a thread, `kg` may not be on PATH. On macOS it is `/Applications/kagan.app/Contents/MacOS/kg`. An `kg mcp` process is not the app. The app is the open window, or the `--headless` process whose parent is launchd.

Leave `KG_DATA_DIR` unset, so `kg` reaches the open app. In a thread, `KG_SOCKET` is already that app's socket. Outside a thread, leave `KG_SOCKET` unset. If nothing answers, the command starts a second app. If a new `--headless` process appears, stop it. The socket paths and the macOS binary are in `kg guide json`.

`kg status --json` returns `{"status":{"threadId","projectId","environmentId","cli","dataDir","warnings"}}`. `kg project list --json` returns `{"projects":[{"id","kind","name","path","gitRemoteUrl"}]}`. `kg program list --json` returns `{"programs":{"programs":[{"command","label","source","path","version"}],"default"}}`; pass a `command` to `kg thread run --program`.

Plugin install and powers approval are kg-plugin-authoring. Driving the open window is kg-ui. Creating and operating a thread is kg-threads. To change the look, keys, preferences, agent rules, or skill folders, read `kg guide customize`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.