feat: Token consumption overhaul - lean/full profile switching #429

Merged
lmiranda merged 1 commits from feat/token-consumption-overhaul into development 2026-02-04 17:23:07 +00:00
Owner

Summary

  • Add lean/full marketplace profile switching to reduce daily token overhead from ~22k to ~8.5k tokens
  • Add conditional skill loading to /sprint-status command
  • Create scripts/switch-profile.sh for easy profile management

Changes

Profile System:

  • marketplace-lean.json - 6 core plugins (projman, git-flow, pr-review, clarity-assist, code-sentinel, doc-guardian)
  • marketplace-full.json - All 12 plugins
  • .mcp-lean.json - gitea only (~4.8k tokens)
  • .mcp-full.json - All 5 MCP servers (~16.8k tokens)

Sprint Status Optimization:

  • Only loads mcp-tools-reference.md by default
  • --diagram flag loads dependency/progress skills
  • --tokens flag loads token-budget-report skill

Default is now lean profile for reduced daily overhead.

Token Impact

Component Before After (Lean) Savings
MCP servers ~16.8k ~4.8k ~12k
Plugins ~12k ~6k ~6k
sprint-status ~5k ~1.5k ~3.5k

Test plan

  • Run ./scripts/switch-profile.sh status - shows LEAN
  • Run ./scripts/validate-marketplace.sh - passes
  • Restart session and verify reduced token count
  • Run /sprint-status - works with lean profile
  • Run ./scripts/switch-profile.sh full and verify all plugins load

🤖 Generated with Claude Code

## Summary - Add lean/full marketplace profile switching to reduce daily token overhead from ~22k to ~8.5k tokens - Add conditional skill loading to `/sprint-status` command - Create `scripts/switch-profile.sh` for easy profile management ## Changes **Profile System:** - `marketplace-lean.json` - 6 core plugins (projman, git-flow, pr-review, clarity-assist, code-sentinel, doc-guardian) - `marketplace-full.json` - All 12 plugins - `.mcp-lean.json` - gitea only (~4.8k tokens) - `.mcp-full.json` - All 5 MCP servers (~16.8k tokens) **Sprint Status Optimization:** - Only loads `mcp-tools-reference.md` by default - `--diagram` flag loads dependency/progress skills - `--tokens` flag loads token-budget-report skill **Default is now lean profile** for reduced daily overhead. ## Token Impact | Component | Before | After (Lean) | Savings | |-----------|--------|--------------|---------| | MCP servers | ~16.8k | ~4.8k | ~12k | | Plugins | ~12k | ~6k | ~6k | | sprint-status | ~5k | ~1.5k | ~3.5k | ## Test plan - [x] Run `./scripts/switch-profile.sh status` - shows LEAN - [x] Run `./scripts/validate-marketplace.sh` - passes - [ ] Restart session and verify reduced token count - [ ] Run `/sprint-status` - works with lean profile - [ ] Run `./scripts/switch-profile.sh full` and verify all plugins load 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lmiranda added 1 commit 2026-02-04 17:15:27 +00:00
- Add marketplace-lean.json (6 plugins) and marketplace-full.json (12 plugins)
- Add .mcp-lean.json (gitea only) and .mcp-full.json (5 servers)
- Create scripts/switch-profile.sh for easy profile switching
- Update sprint-status.md with conditional skill loading
- Set lean profile as default (~14k token savings)

Lean profile includes: projman, git-flow, pr-review, clarity-assist,
code-sentinel, doc-guardian

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda force-pushed feat/token-consumption-overhaul from 438653d501 to 8781179fd0 2026-02-04 17:22:45 +00:00 Compare
lmiranda merged commit 33a7c91f4f into development 2026-02-04 17:23:07 +00:00
lmiranda deleted branch feat/token-consumption-overhaul 2026-02-04 17:23:08 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#429