id

A command that reports which masque, if any, is currently active in the coding-agent session.

In plain words
What is it for?
Use it to see the active masque, its source and start time, or the previously used masque when none is active.
Why use it?
It removes uncertainty about the agent’s current instructions and shows whether it is operating normally.

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/chrisdbaldwin/masques/id
Clone the repo
git clone --depth 1 https://github.com/ChrisDBaldwin/Masques
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00008 $0.00685
Opus 5 $0.00004 $0.00342
Sonnet 5 $0.00002 $0.00137
Haiku 4.5 $0.00001 $0.00068

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

Security

Grade A, and why

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

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/id.md · 72 lines

How it starts

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

Masque ID Command

Display the current masque identity status.

Instructions

Step 1: Read Session File

Read .claude/masque.session.yaml to check current state.

If file doesn't exist, report: "No masque state found. Use /don <name> to adopt a masque."

Step 2: Check State

Parse the session file as YAML with structure:

  • active.name - Display name of active masque (null if none active)
  • active.source - Where masque was found: private or shared
  • active.donned_at - When current masque was donned
  • previous.name - Name of last worn masque
  • previous.source - Source of last worn masque
  • previous.doffed_at - When last masque was doffed

If active.name is null (no active masque):

  • Report: "No masque active. You are operating as baseline Claude."
  • If previous.name is set:
    • Show: "Last worn: [previous.name] (doffed [previous.doffed_at])"
  • Suggest: "Use /list to see available masques, /don <name> to adopt one."
  • Stop here.

If active.name has a value (masque is active):

  • Construct path based on source (lowercase the name for the filename, replace spaces with hyphens):
    • If source is private: ${MASQUES_HOME:-~/.masques}/<lowercase-name>.masque.yaml
    • If source is shared: ${CLAUDE_PLUGIN_ROOT}/personas/<lowercase-name>.masque.yaml
    • Example: name "Codesmith" + source "shared" → personas/codesmith.masque.yaml
    • Example: name "Shy Guy" + source "private" → ~/.masques/shy-guy.masque.yaml
  • Read the masque YAML from the constructed path
  • If the file does not exist at the constructed path, report a warning: "Session references [name] but the masque file was not found at [path]. It may have been moved or deleted. Use /don <name> to re-don or /doff to clear."

Step 3: Display Active Masque

Extract details from the masque YAML and display:

Active Masque: [name] v[version] [private]
Donned: [donned_at]

Domain: [attributes.domain]
Tagline: [attributes.tagline]
Philosophy: [attributes.philosophy]

Read the full file on GitHub · 72 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 · 72 lines · 8 tokens per session scan A cf8abe089fbc

Subscribe to this mod's changes

id is a command published in the GitHub repository ChrisDBaldwin/Masques (14 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 8 tokens to every session and 685 once invoked, about $0.0000 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-30.