PLUGIN brewtools

Brewtools Overview

Brewtools is a utility plugin for Claude Code: token-efficient text optimization, AI-artifact removal, secrets scanning, SSH management, GitHub Actions deployment, and opt-in guards for subagents. The utility skills work with no setup; the -setup skills install their mechanism first.

13 skills · 3 agents · 1 registered hook command.

Install

Install prompt- if Claude refuses, paste this into the chat

Execute these commands in this Claude Code session, one by one, show full output for each, do not skip any, do not summarize:

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

After all commands succeed, run `/reload-plugins`. If `/reload-plugins` is unavailable, tell me to type `exit` and run `claude` again. Run the commands now.

What you get

  • Text and security: text-optimize, text-human, secrets-scan.
  • Ops: ssh, deploy, plugin-update, provider-switch, context-slim.
  • Opt-in guards: manager-setup (delegation wall), agent-deadline-setup, agent-return-setup, agent-router-setup (experimental).
  • Task board: task-board-setup, a file-based Kanban with anti-drift timers.

Per-skill detail: Skills. Agents: text-optimizer, ssh-admin, deploy-admin (Agents).

Example

/brewtools:text-optimize -s docs/
/brewtools:secrets-scan --fix
/brewtools:manager-setup install level strict

The manager hard wall fails closed: an unparseable payload, a missing or corrupt state.json and an unrecognised MCP tool name are denied, and a registered guard script that is missing blocks every tool call (Claude Code 2.1.295 or newer). Leave the wall with disable or uninstall, never by deleting files.

brewcode mods: Prompt placeholders · Plan-mode effort · Reminders · all mods

How it fits

Each skill is self-contained and needs no Brewcode or Brewdoc. Brewtools covers text, ops and subagent control; Brewcode covers skill and agent authoring, semantic search and the setup dashboard. Both install from the same claude-brewcode marketplace. The prompt codewords ++m ++a ++rr ++r +++ come from the placeholders mod, not this plugin.

Technical details

Commands, models and arguments #
CommandModelArguments
/brewtools:text-optimizesonnet[prompt] [-l|-s|-d|-x|--max] [file|folder|path1,path2]
/brewtools:text-humansonnet[prompt] [path|commit|folder|text] [custom instructions]
/brewtools:secrets-scansonnet[prompt] [--fix]
/brewtools:sshopus[prompt] [setup|connect|configure|update-agent]
/brewtools:deployopus[prompt] [setup|create|release|deploy|monitor|update-agent]
/brewtools:plugin-updatesonnet[prompt] [update|check|all]
/brewtools:provider-switchopus[prompt] [status|install|verify|model-check|help|<provider-name>]
/brewtools:context-slimopus[prompt] [measure|preview|slim|hard|bodies|restore] [--target=N%] [--global] [--memory] [--noask] [ts]
/brewtools:agent-deadline-setupsonnet[prompt] [status|install|upgrade|enable|disable|uninstall|purge] [project|global] [minutes]
/brewtools:agent-return-setupsonnet[prompt] [status|install|upgrade|enable|disable|uninstall|purge] [project|global] [pass] [file]
/brewtools:agent-router-setupsonnet[prompt] [status|install|upgrade|enable|disable|uninstall|purge] [level fast|strict]
/brewtools:manager-setupsonnet[prompt] [status|install|upgrade|enable|disable|uninstall|purge] [level strict|balanced]
/brewtools:task-board-setupopus[prompt] [status|install|upgrade|enable|disable|uninstall|purge] [repo path] [free-text directive]
Naming and invocation rules #

A -setup suffix marks a skill that installs a mechanism you afterwards use instead of the skill. Every -setup skill shares one mode set, in this order: status | install | upgrade | enable | disable | uninstall | purge; task-board-setup defaults to install when absent, the others to read-only status. text-optimize and text-human are model-invocable; the rest run only when you type them (see the FAQ).

Task methodology and anti-drift #

Shared methodology, hourly anti-drift timers and the +++ plan hook are described on Task Board Setup.

Artifact metadata #

Every -setup skill stamps what it writes with version, content_version and generated_by; the five fields and five carriers are documented once in Brewcode: Artifact metadata. /brewcode:setup-status reads the stamps back across all eleven -setup skills and reports installs running on an older brewtools version; the fix is that skill’s own upgrade mode.

Plugin variables #

${CLAUDE_PLUGIN_ROOT} and ${CLAUDE_SKILL_DIR} are text substitutions Claude Code performs on the prompt, not environment variables. Skills use ${CLAUDE_SKILL_DIR} for their own files; agent definitions get ${CLAUDE_PLUGIN_ROOT} substituted at spawn and cannot read it as a shell variable.

Plugin structure and hooks #

brewtools/ holds skills/ (13), agents/ (3) and hooks/. The only registered hook is session-start.mjs (SessionStart): it prints the wall notice and the exit (/brewtools:manager-setup disable) when armed, otherwise it is silent. hardmode-guard.mjs is a template that manager-setup copies into a project.

Skills

All 13 brewtools skills.

Agents

The three specialist agents and the shared scope guard.

brewcode mods

Prompt placeholders and plan-mode effort.

View on GitHub

Source, README and configuration.

Update: /brewtools:plugin-update, /reload-plugins, then /brewcode:setup-status upgrade - FAQ