configure

configure is a command for Claude Code from xiyouMc/grok-hud. It costs 14 tokens per session (442 once invoked), scanned A, original, MIT.

A command for changing the settings of the grok-hud display, a status panel for Grok sessions. It can adjust language, layout, displayed information, warning levels, and refresh timing.

In plain words
What is it for?
Use it to choose English or Chinese labels, compact or expanded layout, path depth, context display format, tool visibility, thresholds, and watch refresh speed.
Why use it?
It avoids manually editing the configuration file and lets you preview the result.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to choose English or Chinese labels, compact or expanded layout, path depth, context display format, tool visibility, thresholds, and watch refresh speed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xiyoumc/grok-hud/configure
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/xiyouMc/grok-hud

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 configure

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiyoumc/grok-hud/configure.svg)](https://agentmods.dev/commands/xiyoumc/grok-hud/configure)
Your own site
<a href="https://agentmods.dev/commands/xiyoumc/grok-hud/configure"><img src="https://agentmods.dev/badge/commands/xiyoumc/grok-hud/configure.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00014 $0.00442
Opus 5 $0.00007 $0.00221
Sonnet 5 $0.00003 $0.00088
Haiku 4.5 $0.00001 $0.00044

Measured 8d ago against content hash 7ef83e4c81f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

configure 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 8d 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.

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.

commands/configure.md · 67 lines

What it actually says

/grok-hud:configure

Edit or create the grok-hud config file.

Config path

~/.grok/plugins/grok-hud/config.json

Create defaults if missing:

grok-hud --init-config
# or
node "$GROK_PLUGIN_ROOT/bin/grok-hud.js" --init-config

Arguments

$ARGUMENTS

If the user passes simple prefs, apply them with a small edit:

Pref JSON path Values
language language zh (default), en
layout lineLayout expanded, compact
path depth pathLevels 1, 2, 3
tools line display.showTools true / false
context format display.contextValue percent, tokens, remaining, both
warn / critical display.warningThreshold / criticalThreshold 0–100
refresh refreshMs ms (watch mode)

Steps

  1. Read existing config (or create via --init-config).
  2. Apply requested changes with a careful JSON edit (preserve unknown keys / colors).
  3. Show a preview:
grok-hud --once
  1. Point to full option list in the plugin README ($GROK_PLUGIN_ROOT/README.md or https://github.com/xiyouMc/grok-hud).

Example config snippet

{
  "language": "zh",
  "lineLayout": "expanded",
  "pathLevels": 2,
  "display": {
    "showTools": true,
    "contextValue": "both",
    "warningThreshold": 70,
    "criticalThreshold": 90
  }
}
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. 8d ago First seen · 67 lines · 14 tokens per session scan A 7ef83e4c81f1

Subscribe to this mod's changes

configure is a command published in the GitHub repository xiyouMc/grok-hud (8 stars, last pushed 1mo ago), licensed MIT. It adds 14 tokens to every session and 442 once invoked, about $0.0001 per session on Opus 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-08-31.