update-kit

update-kit is a command for Claude Code from cloudnative-co/claude-code-starter-kit. It costs 0 tokens per session (6,358 once invoked), scanned E, original, MIT.

A command for manually updating the Claude Code Starter Kit, a collection of configuration and project files for Claude Code, to its latest version. It checks which local Git checkout belongs to the installed kit before updating it.

In plain words
What is it for?
Use it when you want to update an installed Claude Code Starter Kit from its configured Git repository.
Why use it?
It reduces the risk of updating the wrong checkout or silently using an unintended copy of the kit. Invalid or missing configuration is handled according to the command's documented rules.

Command for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it when you want to update an installed Claude Code Starter Kit from its configured Git repository.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/cloudnative-co/claude-code-starter-kit/update-kit
Install

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.

Clone the repo
git clone --depth 1 https://github.com/cloudnative-co/claude-code-starter-kit

Made for: Claude Code.

Wrote 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.

agentmods badge for update-kit

README.md
[![agentmods](https://agentmods.dev/badge/commands/cloudnative-co/claude-code-starter-kit/update-kit/github.svg)](https://agentmods.dev/commands/cloudnative-co/claude-code-starter-kit/update-kit)
Your own site
<a href="https://agentmods.dev/commands/cloudnative-co/claude-code-starter-kit/update-kit"><img src="https://agentmods.dev/badge/commands/cloudnative-co/claude-code-starter-kit/update-kit/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.

agentmods 80×15 button for update-kit

Your own site · 80×15
<a href="https://agentmods.dev/commands/cloudnative-co/claude-code-starter-kit/update-kit"><img src="https://agentmods.dev/badge/commands/cloudnative-co/claude-code-starter-kit/update-kit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 4 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.06358
Opus 5.5 $0.00000 $0.02543
Sonnet 5.5 $0.00000 $0.01272
Haiku 4.5 $0.00000 $0.00636

Measured 9d ago against content hash 53533006d80e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

update-kit scanned grade E with 4 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 9d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod 600 "$pending_snapshot" || exit 1

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

`curl -fsSL https://raw.githubusercontent.com/cloudnative-co/claude-code-starter-kit/main/install.sh | bash`.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- To restore: `BACKUP=$(cat ~/.claude/.starter-kit-last-backup) && mv ~/.claude ~/.claude.broken && cp -a "$BACKUP" ~/.claude`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -fsSL https://raw.githubusercontent.com/cloudnative-co/claude-code-starter-kit/main/install.sh | bash`.
commands/update-kit.md · 449 lines

How it starts

The opening of the file, as written. The whole thing — 449 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/update-kit - Manually Update Starter Kit

Manually update the Claude Code Starter Kit to the latest version.

Instructions

Run the following block as one Bash invocation. A current non-MDM manifest binds the checkout to the exact config used at install time; otherwise the strict KIT_REPO="..." entry in ~/.claude-starter-kit.conf is used, without sourcing or evaluating either file. It validates that the absolute path is the root of a Git worktree containing this kit, and then updates it. A legacy config without KIT_REPO (or no config) falls back to ~/.claude-starter-kit. An invalid explicit binding or KIT_REPO is an error — do not silently fall back to a different checkout.

set -euo pipefail

default_config_file="$HOME/.claude-starter-kit.conf"
config_file="$default_config_file"
default_kit_repo="$HOME/.claude-starter-kit"
kit_repo="$default_kit_repo"
manifest_file="$HOME/.claude/.starter-kit-manifest.json"
manifest_bound=false

if [ -e "$manifest_file" ] || [ -L "$manifest_file" ]; then
  if [ -L "$manifest_file" ] || [ ! -f "$manifest_file" ]; then
    printf '%s\n' "Invalid starter-kit manifest: $manifest_file" >&2
    exit 1
  fi
  manifest_binding="$(jq -cse '
    if length == 1 and (.[0] | type == "object") then
      .[0]
      | if (has("kit_repo") or has("config_file")) then
          if (has("kit_repo") and has("config_file")
            and (.mdm_managed == false)
            and ((.kit_repo | type) == "string")
            and ((.config_file | type) == "string")
            and (.kit_repo | startswith("/"))
            and (.config_file | startswith("/"))
            and ((.kit_repo | test("[\\x00-\\x1f\\x7f]")) | not)
            and ((.config_file | test("[\\x00-\\x1f\\x7f]")) | not))
          then [.kit_repo, .config_file]
          else error("invalid runtime binding")
          end
        else []
        end
    else error("invalid manifest")
    end
  ' "$manifest_file" 2>/dev/null)" || {
    printf '%s\n' "Invalid starter-kit manifest binding" >&2
    exit 1
  }
  if [ "$manifest_binding" != "[]" ]; then
    kit_repo="$(printf '%s' "$manifest_binding" | jq -r '.[0]')" || exit 1
    config_file="$(printf '%s' "$manifest_binding" | jq -r '.[1]')" || exit 1
    manifest_bound=true
  fi
fi

if [ -e "$config_file" ] || [ -L "$config_file" ]; then
  if [ -L "$config_file" ] || [ ! -f "$config_file" ] \
    || [ ! -r "$config_file" ]; then
    printf '%s\n' "Invalid starter-kit config: $config_file" >&2
    exit 1
  fi
  kit_repo_count="$(awk '
    /^[[:space:]]*KIT_REPO[[:space:]]*=/ { count++ }
    END { print count + 0 }
  ' "$config_file")" || {
    printf '%s\n' "Could not read starter-kit config" >&2
    exit 1
  }
  if [ "$kit_repo_count" -gt 1 ]; then
    printf '%s\n' "Multiple KIT_REPO entries in starter-kit config" >&2
    exit 1
  fi
  if [ "$kit_repo_count" -eq 1 ]; then
    kit_repo_line="$(awk '
      /^[[:space:]]*KIT_REPO[[:space:]]*=/ { print }
    ' "$config_file")" || exit 1
    if [ "${kit_repo_line#KIT_REPO=\"}" = "$kit_repo_line" ] \
      || [ "${kit_repo_line%\"}" = "$kit_repo_line" ]; then
      printf '%s\n' "Invalid KIT_REPO entry in starter-kit config" >&2
      exit 1
    fi
    config_kit_repo="${kit_repo_line#KIT_REPO=\"}"
    config_kit_repo="${config_kit_repo%\"}"
    case "$config_kit_repo" in
      /*) ;;
      *)
        printf '%s\n' "Invalid KIT_REPO entry in starter-kit config" >&2
        exit 1
        ;;
    esac
    case "$config_kit_repo" in
      *'"'*)
        printf '%s\n' "Invalid KIT_REPO entry in starter-kit config" >&2
        exit 1
        ;;
    esac
    if printf '%s' "$config_kit_repo" | LC_ALL=C grep -q '[[:cntrl:]]'; then
      printf '%s\n' "Invalid KIT_REPO entry in starter-kit config" >&2
      exit 1
    fi
    if [ "$manifest_bound" = true ] && [ "$config_kit_repo" != "$kit_repo" ]; then
      printf '%s\n' "Manifest binding does not match starter-kit config" >&2
      exit 1
    fi
    kit_repo="$config_kit_repo"
  elif [ "$manifest_bound" = true ]; then
    printf '%s\n' "Manifest-bound config has no KIT_REPO entry" >&2
    exit 1
  fi
elif [ "$manifest_bound" = true ]; then
  printf '%s\n' "Manifest-bound config not found: $config_file" >&2
  exit 1
fi

kit_repo_physical="$(cd "$kit_repo" 2>/dev/null && pwd -P)" || {
  printf '%s\n' "Starter-kit checkout not found: $kit_repo" >&2
  exit 1
}
repo_top="$(git -C "$kit_repo_physical" rev-parse --show-toplevel 2>/dev/null)" || {
  printf '%s\n' "Not a Git checkout: $kit_repo_physical" >&2
  exit 1
}
repo_top_physical="$(cd "$repo_top" 2>/dev/null && pwd -P)" || exit 1
if [ "$kit_repo_physical" != "$repo_top_physical" ] \
  || [ ! -e "$kit_repo_physical/.git" ] \
  || [ ! -f "$kit_repo_physical/setup.sh" ] \
  || [ ! -f "$kit_repo_physical/lib/features.sh" ] \
  || [ ! -f "$kit_repo_physical/config/plugins.json" ]; then
  printf '%s\n' "KIT_REPO is not a starter-kit repository root" >&2
  exit 1
fi

printf 'Resolved kit repo: %s\n' "$kit_repo_physical"
printf 'Resolved config file: %s\n' "$config_file"
repo_status="$(git -C "$kit_repo_physical" status --porcelain)" || {
  printf '%s\n' "Could not inspect starter-kit checkout" >&2
  exit 1
}
if [ -n "$repo_status" ]; then
  printf '%s\n' "Local changes found; review them before updating" >&2
  exit 1
fi

previous_version="$(git -C "$kit_repo_physical" describe --tags --abbrev=0 \
  2>/dev/null || printf 'unknown')"
git -C "$kit_repo_physical" fetch --tags
git -C "$kit_repo_physical" pull --ff-only
setup_args=(--update)
if [ "$manifest_bound" = true ]; then
  setup_args+=("--config=$config_file")
fi
(cd "$kit_repo_physical" && bash setup.sh "${setup_args[@]}")
new_version="$(git -C "$kit_repo_physical" describe --tags --abbrev=0 \
  2>/dev/null || printf 'unknown')"
printf 'Starter kit version: %s -> %s\n' "$previous_version" "$new_version"

Read the full file on GitHub · 449 lines

Changes

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.

  1. 9d ago Changed · +25 lines 53533006d80e
  2. 1mo ago First seen · 424 lines · 0 tokens per session scan E 60603a532cf7

Subscribe to this mod's changes

update-kit is a command published in the GitHub repository cloudnative-co/claude-code-starter-kit (153 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 6,358 tokens. A static security scan graded it E with 4 findings (asks for root, downloads and executes remote code, reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.