PLUGIN brewtools / Agents
Agents
Agents are specialist roles defined in markdown with their own model, toolset and system prompt. Brewtools has 3.
Summary table
| # | Agent | Model | Description |
|---|---|---|---|
| 1 | text-optimizer | sonnet | Optimizes text/docs for LLM token efficiency. Triggers: optimize prompt, reduce tokens, compress. |
| 2 | ssh-admin | inherit | Linux server admin: SSH, Docker, systemd, Nginx, SSL. Triggers: ssh admin, server management. |
| 3 | deploy-admin | inherit | GitHub Actions deployment: workflows, releases, GHCR, CI/CD. Triggers: deploy, release. |
Scope guard: shared by all 3 agents #
Each agent sizes the task before starting. One bounded unit = one deliverable, ~5 files, ~10 steps. Anything bigger, or spanning several independent deliverables, makes the agent stop and return a split proposal: 2-N bounded subtasks, each with its scope and a suggested owner. Mid-flight the rule is the same: stop at the next clean boundary, report done / remaining / how to split.
The agent doesn’t invent a missing GOAL, SCOPE, CONTEXT, CONSUMER or acceptance criteria: it states its assumption in the report or asks once. The result is written for the CONSUMER, whoever picks it up next, not for the literal wording of the request.
Subagents have no AskUserQuestion (removed in Claude Code 2.1.233). ssh-admin and deploy-admin return a ## APPROVAL REQUIRED envelope to the caller for a destructive or privileged step, or proceed only if the prompt pre-approved it.
| Rule | Applies to |
|---|---|
| One bounded unit per run, otherwise split proposal | text-optimizer, ssh-admin, deploy-admin |
| Split per target: one agent per host / environment / service / repo, never one agent looping over all | ssh-admin, deploy-admin |
| Missing brief fields: state the assumption or ask once, never invent scope | all three |
Phrase multi-target work as separate requests: “deploy staging” + “deploy prod”, not “deploy to all environments”.
Related
Brewtools overview
Install, commands and plugin structure.
Skills
The 13 skills that spawn these agents.
View on GitHub
Agent definitions.
Update: /brewtools:plugin-update, /reload-plugins, then /brewcode:setup-status upgrade - FAQ