tag

tag is a command for Claude Code from coltonbearden/carrel. It costs 19 tokens per session (733 once invoked), scanned A, original, MIT.

A command for adding, removing, listing, and searching tags on local files stored in the Carrel desk database. Tags are labels attached to files so they can be grouped or found later.

In plain words
What is it for?
Use it to label files, remove labels, see available tags, or find files carrying all requested tags. It can also combine with Carrel full-text search filtered by tags.
Why use it?
It avoids remembering the Carrel command syntax and applies the user's tagging request to the supported subcommand.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the carrel-organize plugin — 7 commands shipped together

Good fit Use it to label files, remove labels, see available tags, or find files carrying all requested tags. It can also combine with Carrel full-text search filtered by tags.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coltonbearden/carrel/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/coltonbearden/carrel

Made for: Claude Code.

Or install carrel-organize, the plugin that ships this one along with the rest of its 7 commands.

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/coltonbearden/carrel/tag/github.svg)](https://agentmods.dev/commands/coltonbearden/carrel/tag)
Your own site
<a href="https://agentmods.dev/commands/coltonbearden/carrel/tag"><img src="https://agentmods.dev/badge/commands/coltonbearden/carrel/tag/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tag

Your own site · 80×15
<a href="https://agentmods.dev/commands/coltonbearden/carrel/tag"><img src="https://agentmods.dev/badge/commands/coltonbearden/carrel/tag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 733 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.00019 $0.00733
Opus 5.5 $0.00008 $0.00293
Sonnet 5.5 $0.00004 $0.00147
Haiku 4.5 $0.00002 $0.00073

Measured 1mo ago against content hash 708df3b2f12b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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.

plugins/carrel-organize/commands/tag.md · 78 lines

What it actually says

Handle this tagging request: $ARGUMENTS

Run the carrel CLI via Bash. carrel tag is a group; map the user's request onto the real subcommands and flags in the --help blocks below (regenerated from the CLI by scripts/sync_plugins.py; if the installed carrel tag --help differs, trust the installed version — never invent flags). Tags live in the desk db (.carrel/carrel.db under the global --root, default cwd):

Usage: carrel tag [OPTIONS] COMMAND [ARGS]...

  Tag files in the desk db (.carrel/carrel.db under --root).

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.

Commands:
  add   Add TAG...
  find  List files carrying ALL of TAG...
  ls    List tags of PATH, or (without PATH) every tag with its file count.
  rm    Remove TAG...
Usage: carrel tag add [OPTIONS] PATH TAGS...

  Add TAG... to PATH (registers the file in the desk db if needed).

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.
Usage: carrel tag find [OPTIONS] TAGS...

  List files carrying ALL of TAG... (paths relative to the desk root).

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.
Usage: carrel tag ls [OPTIONS] [PATH]

  List tags of PATH, or (without PATH) every tag with its file count.

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.
Usage: carrel tag rm [OPTIONS] PATH TAGS...

  Remove TAG... from PATH (unknown tags/files are a quiet no-op).

Options:
  --json  Machine-readable JSON output.
  --help  Show this message and exit.
  • Choose the subcommand from intent: "tag X as invoice" → add, "what's tagged urgent" → find, "untag" → rm, "what tags exist" → ls.
  • add registers the file in the desk db if needed; rm on unknown tags/files is a quiet no-op.
  • find returns paths relative to the desk root; ANDs multiple tags.
  • If the user's desk is elsewhere, put --root DIR before tag (carrel --root DIR tag add ...).

Report what changed (or list the results) conversationally. Tags combine well with /carrel-inspect:search --tag for filtered full-text search, and /carrel-agent:catalog exports/imports them — mention that when relevant.

Requires the carrel CLI on PATH. If carrel is not found, tell the user to install it with uv tool install carrel (see the repo's INSTALL notes), or run it as uv run carrel ... from the carrel repo root.

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. 1mo ago Changed · +53 lines 708df3b2f12b
  2. 1mo ago Changed 38bfd78387e2
  3. 1mo ago First seen · 25 lines · 19 tokens per session scan A 7cc1e44842ac

Subscribe to this mod's changes

tag is a command published in the GitHub repository coltonbearden/carrel (2 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 733 once invoked, about $0.0001 per session on Opus 5.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.