tab-setup

tab-setup is a skill for Claude Code from dgilford/ai-science-toolkit. It costs 38 tokens per session (404 once invoked), scanned A, original, MIT.

A command for giving each Claude Code session tab a distinctive name and color based on the current working folder. It can also update the related skill or apply changes to all active sessions.

In plain words
What is it for?
Naming and recoloring the current tab, updating the tab-setup skill, or synchronizing names and colors across active sessions.
Why use it?
It makes multiple coding sessions easier to tell apart and helps keep the tab setup current.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the ai-science-toolkit plugin — 21 skills, 4 agents 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 skills/dgilford/ai-science-toolkit/tab-setup
Any agent
npx skills add dgilford/ai-science-toolkit --skill tab-setup
Clone the repo
git clone --depth 1 https://github.com/dgilford/ai-science-toolkit

Made for: Claude Code.

Or install ai-science-toolkit, the plugin that ships this one along with the rest of its 21 skills, 4 agents.

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 tab-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/dgilford/ai-science-toolkit/tab-setup.svg)](https://agentmods.dev/skills/dgilford/ai-science-toolkit/tab-setup)
Your own site
<a href="https://agentmods.dev/skills/dgilford/ai-science-toolkit/tab-setup"><img src="https://agentmods.dev/badge/skills/dgilford/ai-science-toolkit/tab-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 404 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.1 $0.00038 $0.00404
Opus 5 $0.00019 $0.00202
Sonnet 5 $0.00008 $0.00081
Haiku 4.5 $0.00004 $0.00040

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

Security

Grade A, and why

tab-setup 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 6d 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.

skills/tab-setup/SKILL.md · 44 lines

What it actually says

If $ARGUMENTS is update, pull the latest skill from its repo and re-install it:

bash ~/.claude/skills/tab-setup/scripts/update.sh

Report whether it updated (and from/to which commit) or was already current. Note that changes take effect on the next Claude session.


If $ARGUMENTS is all, run the bulk sync:

bash ~/.claude/skills/tab-setup/scripts/sync-all.sh

Report the output exactly as returned (list of sessions with their assigned colors and TTYs). Renames inject automatically with a short delay — no further action needed.


Otherwise, set up this session's tab:

bash ~/.claude/skills/tab-setup/scripts/setup.sh "${CLAUDE_SESSION_ID}" $ARGUMENTS

The script output is one line: color=<name> name=<tab-name>. Report to the user: "Tab set up: / ". Color applies immediately; /color and /rename fire automatically in ~4 seconds.

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. 6d ago First seen · 44 lines · 38 tokens per session scan A 8d7d73107075

Subscribe to this mod's changes

tab-setup is a skill published in the GitHub repository dgilford/ai-science-toolkit (62 stars, last pushed 17d ago), licensed MIT. It adds 38 tokens to every session and 404 once invoked, about $0.0002 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.