invite

A command that prints one shell command a teammate can use to join the repository's private team. A QR code can also be printed when the required QR tool is installed.

In plain words
What is it for?
Use it to invite a teammate by copying the printed join command, or add a QR code for scanning.
Why use it?
Sharing the team setup manually can be awkward and error-prone. The generated command carries the repository's team details so presence enrollment can happen automatically.

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/randomittin/heimdall/invite
Clone the repo
git clone --depth 1 https://github.com/randomittin/heimdall
Per session 159 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00159 $0.01032
Opus 5 $0.00079 $0.00516
Sonnet 5 $0.00032 $0.00206
Haiku 4.5 $0.00016 $0.00103

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

Security

Grade A, and why

invite scanned grade A 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.

Makes network callslowCapability

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

description: Print a ONE-COMMAND team join to recruit a teammate onto your Heimdall team. Use when a dev wants to add someone to their team's presence wall — the statusline "invite your team" tease points here. Resolves
commands/invite.md · 76 lines

How it starts

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

/hmd:invite — Recruit a Teammate with a One-Command Join

Use when a dev wants to add a teammate to their team — the growth loop behind the statusline wall tease ("── watch ── invite your team · hmd invite"). It prints a single curl … | … bash line carrying THIS team's control-plane URL + team secret; the teammate pastes that one command and presence auto-enrolls them on their first session (the wall recruits the team). Enrollment itself is open-bounded (tokenless) — nothing for a user to pass or see.

Process

  1. Run the CLI — it resolves everything and prints the shareable join:

    "${CLAUDE_PLUGIN_ROOT}/bin/heimdall-invite"
    

    Add --qr to also render a scannable QR of the join (only if qrencode is installed; it degrades silently when absent):

    "${CLAUDE_PLUGIN_ROOT}/bin/heimdall-invite" --qr
    

    The CLI reads this repo's OWN <repo>/.heimdall/team.json (the same file bin/heimdall-presence and bin/heimdall-team read) for the team secret, and the dev's global ~/.heimdall/cp-endpoint.json (else the baked public default) for the control-plane url, then mirrors the canonical README installer one-liner for the repo/ref.

  2. Relay the join verbatim. Pass the printed one-liner straight to the dev — do NOT paraphrase, wrap, or alter it. The teammate runs it as-is.

  3. Honor the secret caveat. The CLI prints a ⚠ contains your team secret — share only with teammates caveat above the command. Keep that warning attached when you relay it.

  4. On the "not configured" message, the dev has no team minted for this repo yet. The CLI prints how to mint one (heimdall-team new, writes <repo>/.heimdall/team.json, 0600) and exits 0 — relay that guidance; there is nothing to invite to yet.

Constraints

  • The team secret is a bearer capability. It is this team's own secret, deliberately shared with a teammate — the CLI prints it to the terminal ONLY and NEVER writes it to a tracked/committed file, a log, or anything in the repo. Do not echo it into any other command, copy it into a tracked file, or paste it anywhere but to the intended teammate.
  • Tokenless enrollment. The join carries a team secret, never a bootstrap enroll credential. Do not add any enroll credential to the one-liner — re-gating enrollment is an operator-only concern (see OPERATORS.md), never a user surface.
  • Don't fabricate a join. If no team is configured, relay the CLI's setup guidance — never hand-craft a one-liner with a guessed URL or secret.
  • Files nothing. It reads local config and makes one lightweight, read-only origin check (git ls-remote + a raw-URL HTTP probe) to guarantee the pinned ref actually resolves — if it does NOT, the CLI REFUSES to print a broken join, prints a loud error, and exits non-zero (the owner must push/tag/publish first).

Read the full file on GitHub · 76 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. 2d ago First seen · 76 lines · 159 tokens per session scan A ef45cd189067

Subscribe to this mod's changes

invite is a command published in the GitHub repository randomittin/heimdall (5 stars, last pushed 11d ago), licensed MIT. It adds 159 tokens to every session and 1,032 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.