manage-tags

manage-tags is a command for coding agents from mixpanel/ai-plugins. It costs 0 tokens per session (661 once invoked), scanned A, original, Apache-2.0.

A command for renaming or deleting tags attached to Mixpanel events. Tags are labels used to group and organise tracked events.

In plain words
What is it for?
Use it to review existing tags, rename them across events, or delete them from a Mixpanel project.
Why use it?
It keeps event labels consistent when terminology changes or tags are no longer needed.

Command

Part of the mixpanel plugin — 12 skills, 23 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/mixpanel/ai-plugins/manage-tags
Clone the repo
git clone --depth 1 https://github.com/mixpanel/ai-plugins

Or install mixpanel, the plugin that ships this one along with the rest of its 12 skills, 23 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 manage-tags

README.md
[![agentmods](https://agentmods.dev/badge/commands/mixpanel/ai-plugins/manage-tags.svg)](https://agentmods.dev/commands/mixpanel/ai-plugins/manage-tags)
Your own site
<a href="https://agentmods.dev/commands/mixpanel/ai-plugins/manage-tags"><img src="https://agentmods.dev/badge/commands/mixpanel/ai-plugins/manage-tags.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 661 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.00000 $0.00661
Opus 5 $0.00000 $0.00331
Sonnet 5 $0.00000 $0.00132
Haiku 4.5 $0.00000 $0.00066

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

Security

Grade A, and why

manage-tags 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 5d 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/mixpanel/skills/manage-lexicon/commands/manage-tags.md · 93 lines

How it starts

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

Command — Manage Tags

Session reads: event_list, event_details_cache Session writes: event_details_cache, existing_tags

Rename or delete existing Lexicon tags. Execute silently.


Phase 1 — Fetch Existing Tags

Build existing_tags and show the user the current tag list with event counts.

Ensure the required Session reads are loaded; load any that aren't.

Build existing_tags: unique tag names from event_details_cache, each with event count.

If zero tags → output ℹ️ No tags found in this project. → return to Execution loop.

Display:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  TAGS — [Project Name]  ([N] tags)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  #  │ Tag Name          │ Events
  ───┼───────────────────┼────────
  1  │ Commerce          │ 12
  2  │ Navigation        │ 8
  ...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

(a) Rename a tag  (b) Delete a tag  (c) Done

Phase 2 — Rename

Rename a tag, with a merge fallback when the new name already exists.

User picks tag by number or name, provides new name.

Confirm: Rename "[old]" → "[new]" across [N] events?

Atomic rename (preferred): rename the tag at the project level. The change propagates to every event automatically.

Merge fallback: if a tag with the new name already exists, the atomic rename will error. In that case: for each event with the old tag, replace [old] with [new] in its tag array (preserving every other tag the event had). Then delete the now-unused old tag from the project.

Update event_details_cache and existing_tags to reflect the renamed/merged tag.


Phase 3 — Delete

Delete a tag from the project.

User picks tag by number, name, or range ("1-3").

Confirm: Delete tag "[name]"? This removes it from [N] events.

Delete the tag at the project level. The change propagates to every event automatically.

Update event_details_cache — remove the deleted tag from every event's tags array. Update existing_tags.

Read the full file on GitHub · 93 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. 5d ago First seen · 93 lines · 0 tokens per session scan A 713ec3fa6a0a

Subscribe to this mod's changes

manage-tags is a command published in the GitHub repository mixpanel/ai-plugins (15 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 661 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.