tag

tag is a command for coding agents from coltonbearden/carrel. It costs 19 tokens per session (423 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

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

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/coltonbearden/carrel/tag
Clone the repo
git clone --depth 1 https://github.com/coltonbearden/carrel

Or install carrel-organize, the plugin that ships this one along with the rest of its 4 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.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.svg" alt="Measured on agentmods" 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 423 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.00019 $0.00423
Opus 5 $0.00010 $0.00211
Sonnet 5 $0.00004 $0.00085
Haiku 4.5 $0.00002 $0.00042

Measured today against content hash 38bfd78387e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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 · 25 lines

What it actually says

Handle this tagging request: $ARGUMENTS

Run the carrel CLI via Bash. Map the user's request onto these real subcommands of carrel tag (verify with carrel tag --help if unsure — never invent flags). Tags live in the desk db (.carrel/carrel.db under the global --root, default cwd):

carrel [--root DIR] tag add PATH TAGS...    # tag a file (registers it in the desk db if needed)
carrel [--root DIR] tag rm PATH TAGS...     # remove tags (unknown tags/files are a quiet no-op)
carrel [--root DIR] tag ls [PATH]           # tags of PATH, or every tag with its file count
carrel [--root DIR] tag find TAGS...        # files carrying ALL of the given tags
  • Choose the subcommand from intent: "tag X as invoice" → add, "what's tagged urgent" → find, "untag" → rm, "what tags exist" → ls.
  • find returns paths relative to the desk root; ANDs multiple tags.
  • If the user's desk is elsewhere, put --root DIR before tag.

Report what changed (or list the results) conversationally. Tags combine well with /carrel-inspect:search --tag for filtered full-text search — 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. today Changed 38bfd78387e2
  2. 4d 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 (1 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 423 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.