gum-init

A command that sets up GUM for a new user or project. GUM is a tool that connects coding assistants such as Claude Code, Claude Desktop, or Cursor to its configuration and guidance files.

In plain words
What is it for?
Use it to initialize GUM for a supported host, choose a project-local or global setup, refresh its guidance file, or select a profile.
Why use it?
It creates or updates the required setup while showing security-sensitive changes instead of silently modifying them.

Command

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.

agentmods
npx agentmods add commands/ehmo/gum/gum-init
Clone the repo
git clone --depth 1 https://github.com/ehmo/gum
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 349 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00000 $0.00349
Opus 5 $0.00000 $0.00175
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 2d ago against content hash a40abdc921e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

gum-init scanned grade B with 1 finding 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

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

| `--global` | `bool` | false | Patch ~/.claude/settings.json and write ~/GUM.md (instead of project-local; claude-code target only) |
docs/commands/gum-init.md · 33 lines

What it actually says

gum init

Generated from gum schema --json. Do not edit this page by hand; run make docs-commands.

gum init bootstraps GUM for a new user or project. Default behavior is diff-and-prompt: gum init never silently patches a security-sensitive file. Use --target to pick the host (claude-code | claude-desktop | cursor). Use --refresh to regenerate GUM.md only after a gum upgrade.

Usage

gum init [flags]

Parent

Flags

Flag Type Default Help
--global bool false Patch ~/.claude/settings.json and write ~/GUM.md (instead of project-local; claude-code target only)
--refresh bool false Rewrite GUM.md only; do not touch the host config or credentials
--target string claude-code MCP host to patch: claude-code | claude-desktop | cursor
--yes bool false Skip interactive confirmation and apply the patch
--log-format string json Log format: json|text
--log-level string info Log level: debug|info|warn|error (overrides GUM_LOG_LEVEL)
--profile string default Profile name to read/write config under

See also

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. 2d ago First seen · 33 lines · 0 tokens per session scan B a40abdc921e0

Subscribe to this mod's changes

gum-init is a command published in the GitHub repository ehmo/gum (32 stars, last pushed 25d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 349 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.