Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 3 min read

My AI coding agent was loading 1,587 skills and 69 browser tools on every prompt

I wondered why my coding agent kept burning quota and picking the wrong tool. Then I ran a 40-line Python script on my home directory and found 116 Azure skills, 24 Odoo ERP skills, and 9 Minecraft plugin skills sitting

I wondered why my coding agent kept burning quota and picking the wrong tool. Then I ran a 40-line Python script on my home directory and found 116 Azure skills, 24 Odoo ERP skills, and 9 Minecraft plugin skills sitting inside ~/.agents/skills. I do not use Azure, Odoo, or Minecraft.

Over the past six months I had installed a few community "awesome agent skills" mega-packs and never cleaned them up. Last night my IDE printed excluded due to context budget limits at the bottom of the system prompt on every single turn, so I measured everything actually loading across my three daily harnesses (Antigravity/Gemini, Claude Code, and Codex CLI).

What the audit found on my machine

Config surface Measured on disk Estimated metadata / schema cost
~/.agents/skills (bulk-installed packs) 1,531 skills ~53,585 tokens if fully loaded
~/.gemini/config/skills & ~/.claude/skills 70 & 73 skills ~2,450 to 2,555 tokens
Global rules + project CLAUDE.md / GEMINI.md 4 files (55 KB total) ~5,900 to 8,000 tokens per turn
Browser MCPs enabled at the same time 3 servers (69 tools total) ~13,094 schema tokens
Idle utility MCPs (blender, n8n-mcp) 2 servers (17 tools) ~6,900 schema tokens

Even after the harness truncated the skill list to fit its context budget, hundreds of irrelevant skill descriptions still sat in the system prompt on every turn and competed with the skills I actually wanted the model to pick.

The MCP side had the same drift. I had chrome-devtools-mcp (33 tools, ~6,737 schema tokens), playwright-mcp (25 tools, ~3,917 schema tokens), and my own turbo-browser-mcp (11 tools, 2,441 compact tokens) all turned on at once. That is 69 browser tools doing overlapping jobs before the agent even opens a tab.

The fix: 3-tier Progressive Disclosure + one router skill

Deleting everything felt risky because I still use specialized workflows (Three.js, Blender, Remotion, Supabase RLS) once or twice a month. Instead, I split the setup into three tiers so nothing is lost while keeping default context flat:

  1. Tier 1: Core Always-On (14 skills, ~1,010 metadata tokens). Only skills used almost every day stay in the active skill folder: debugging, TDD, verification-before-completion, frontend design, Windows shell reliability, writing cleanup (stop-slop + humanizer), turbo-browser, and one 74-line skill-router.
  2. Tier 2: On-Demand Vault (60 specialized skills, 0 default tokens). Media/video, 3D, mobile, database/security, and office document skills move into a local folder (ai-brain/skills-vault/). They never appear in the system prompt. When a task mentions Blender, Supabase RLS, or Android, the 74-line skill-router tells the agent the exact SKILL.md path to read on demand.
  3. Tier 3: Reversible Archive (1,521 unused skills, 0 tokens). Everything outside my stack moves to an archive directory with a JSON manifest so any skill can be restored in one command.

Here is the core idea of the router table inside skill-router/SKILL.md:

| Task trigger | Read this file before starting |
| :--- | :--- |
| Supabase RLS / Postgres audit | `D:\Project\ai-brain\skills-vault\supabase-postgres-best-practices\SKILL.md` |
| Security review / auth | `D:\Project\ai-brain\skills-vault\security-audit-skill\SKILL.md` |
| 3D / Three.js / WebGL | `D:\Project\ai-brain\skills-vault\threejs-fundamentals\SKILL.md` |
| Video / HyperFrames / Remotion | `D:\Project\ai-brain\skills-vault\hyperframes\SKILL.md` |

Cutting the MCP and cross-session bloat too

On the MCP side, turning off the two duplicate browser servers (playwright and chrome-devtools) and leaving only turbo-browser-mcp (11 tools, 2,441 tokens, MIT: https://github.com/Tthanh2k6/turbo-browser-mcp) drops ~10,654 schema tokens per turn. Utility MCPs like blender and n8n-mcp stay disabled: true until I actually open Blender or n8n.

To stop Claude Code, Codex, and Gemini from re-reading the same repo maps every new session, I also tested pairing this slim skill set with one shared local Markdown knowledge graph (basic-memory MCP) instead of stuffing 10,000 tokens of history into CLAUDE.md.

Numbers after the cleanup plan

  • Active skill metadata: 1,587 skills (~53,500 tokens) -> 14 skills (~1,010 tokens) (98.1% drop, zero truncation warnings).
  • Active browser MCP tools: 69 tools across 3 servers -> 11 tools on 1 server (~10,654 schema tokens saved).
  • Zero skills deleted permanently: 60 specialized skills stay one read_file away via skill-router, and 1,521 bulk-pack skills sit in an archive folder.

If your coding agent feels slower or keeps picking the wrong tool after months of installing skills and MCP servers, run a quick count on ~/.agents/skills, ~/.claude/skills, and your mcp_config.json. You might be paying for 100 Azure and Odoo skills on every prompt.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.