Brewtools Overview

Brewtools is a lightweight plugin providing universal text utilities: token-efficient optimization, AI-artifact removal, and secrets scanning. Each skill is self-contained and requires no prior setup.

Installation

claude plugin install brewtools@claude-brewcode

Brewtools ships as part of the claude-brewcode marketplace. If the marketplace has not been added yet:

claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
claude plugin install brewtools@claude-brewcode

Skills (recipes)

Commands

CommandPurposeModelArguments
/brewtools:text-optimizeOptimize text for LLM token efficiencysonnet[-l|-d] [file|folder|path1,path2]
/brewtools:text-humanRemove AI artifacts from code and docssonnet<commit-hash|path> [custom instructions]
/brewtools:secrets-scanScan for leaked secrets and credentialssonnet[--fix]

Agent

AgentModelPurpose
text-optimizersonnetLean execution engine for text optimization with rule-based validation

Plugin variable

BT_PLUGIN_ROOT — injected by the SessionStart hook into every session context. Skills in the main conversation use ${CLAUDE_SKILL_DIR} to access their own files; subagents use $BT_PLUGIN_ROOT to locate plugin resources.

Architecture

brewtools/
├── .claude-plugin/
│   └── plugin.json              # Plugin manifest
├── hooks/
│   ├── hooks.json               # Hook registry
│   ├── session-start.mjs        # BT_PLUGIN_ROOT injection
│   ├── pre-task.mjs             # BT_PLUGIN_ROOT into subagents
│   └── lib/utils.mjs            # I/O utilities
├── skills/
│   ├── text-optimize/           # Token optimization
│   ├── text-human/              # AI artifact removal
│   └── secrets-scan/            # Secrets scanning
└── agents/
    └── text-optimizer.md        # Text optimization agent

Brewtools vs Brewcode

Brewtools provides standalone text utilities: optimization, humanization, security scanning. Each skill works independently with no lifecycle dependencies.

Brewcode is a task execution engine with infinite context, lifecycle hooks, KNOWLEDGE.jsonl, and session handoff.

Both plugins install from the same claude-brewcode marketplace but operate independently.