tag

tag is a command for Claude Code from tdimino/claude-code-minoan. It costs 0 tokens per session (686 once invoked), scanned A, original, MIT.

A command for adding searchable keyword labels to the current Claude Code session. Labels can be added or removed, and they supplement automatically generated session labels.

In plain words
What is it for?
Use it to label a session with project terms, topics, or your own shorthand, then search for those labels with the session-tracking commands.
Why use it?
It makes sessions easier to find later when an important search term was not used in the conversation or was missed by automatic labeling.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Good fit Use it to label a session with project terms, topics, or your own shorthand, then search for those labels with the session-tracking commands.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tdimino/claude-code-minoan/tag
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/tdimino/claude-code-minoan

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 tag

README.md
[![agentmods](https://agentmods.dev/badge/commands/tdimino/claude-code-minoan/tag.svg)](https://agentmods.dev/commands/tdimino/claude-code-minoan/tag)
Your own site
<a href="https://agentmods.dev/commands/tdimino/claude-code-minoan/tag"><img src="https://agentmods.dev/badge/commands/tdimino/claude-code-minoan/tag.svg" alt="Measured on agentmods" 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 686 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.00000 $0.00686
Opus 5 $0.00000 $0.00343
Sonnet 5 $0.00000 $0.00137
Haiku 4.5 $0.00000 $0.00069

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

Security

Grade A, and why

tag 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/tag.md · 69 lines

How it starts

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

Tag Current Session

Attach manual keyword metatags to the current Claude Code session. These tags supplement the auto-generated Qwen tags in ~/.claude/session-registry.json and are searchable via /claude-tracker-search <tag> --name (and, after the Phase 2 default-mode pre-pass, via the bare /claude-tracker-search <tag>).

Use this when the auto-tagger missed a keyword that matters for future recall — e.g., the user's mental label for the session that's never spoken verbatim in the transcript.

Arguments

$ARGUMENTS - one or more tags, space-separated. Prefix a tag with - to remove it. Use hyphenated words (codex-skill-detection) rather than quoted multi-word strings for slash-command ergonomics.

Instructions

# Split arguments into adds and removes. A leading `-` means remove.
ADDS=()
REMOVES=()
for arg in $ARGUMENTS; do
  case "$arg" in
    -*) REMOVES+=("${arg#-}") ;;
    *)  ADDS+=("$arg") ;;
  esac
done

if [ ${#ADDS[@]} -eq 0 ] && [ ${#REMOVES[@]} -eq 0 ]; then
  echo "Usage: /tag <tag> [<tag>...] or /tag -<tag> to remove"
  exit 1
fi

if [ ${#ADDS[@]} -gt 0 ]; then
  node ~/.claude/skills/claude-tracker-suite/scripts/tag-session.js add "${ADDS[@]}"
fi

if [ ${#REMOVES[@]} -gt 0 ]; then
  node ~/.claude/skills/claude-tracker-suite/scripts/tag-session.js remove "${REMOVES[@]}"
fi

Examples

  • /tag codex-skill-detection — add one tag
  • /tag codex-skill-detection eval-design — add two tags
  • /tag -off-topic-tag — remove a tag
  • /tag foo -bar baz — mixed add/remove in one call
  • node tag-session.js list — inspect current tags (CLI only, no slash command yet)

How it works

  • Live session (this one): Writes a .pending-tags breadcrumb to ~/.claude/session-tags/{session_id}.pending-tags. The next Stop event triggers session-tags-infer.py, which reads the breadcrumb BEFORE its 3-min Qwen cooldown, upserts user_tags in session-registry.json under fcntl lock, and deletes the breadcrumb. The tag is searchable immediately after that Stop event fires.
  • Closed session: Use node tag-session.js add <tag> --session <id> directly — it writes to the registry without needing a live hook.

Read the full file on GitHub · 69 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. 8d ago First seen · 69 lines · 0 tokens per session scan A 42a2a5f22a4a

Subscribe to this mod's changes

tag is a command published in the GitHub repository tdimino/claude-code-minoan (41 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 686 tokens. 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.