2026-02-28 10:53:52 +00:00
# Brewcode
2026-01-27 10:38:34 +00:00
2026-06-29 18:53:40 +01:00
> Lean skill + prompt-injection toolkit for Claude Code -- specification authoring, semantic code search, and lifecycle hooks.
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Field | Value |
|-------|-------|
2026-06-29 18:53:40 +01:00
| Version | 3.19.0 |
| Skills | 2 |
| Agents | 9 |
| Hooks | 5 |
2026-04-06 10:09:49 +01:00
| Model | opus |
2026-02-28 10:53:52 +00:00
2026-04-10 15:34:57 +01:00
## Install
Paste this into a Claude Code session:
```
Execute these commands in this session, one by one, show full output for each, do not skip any:
1. claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
2. claude plugin install brewcode@claude-brewcode
After install, run `/reload-plugins` (or `exit` + `claude`).
```
<details>
<summary>Or install the whole suite</summary>
```
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 brewcode@claude-brewcode
3. claude plugin install brewdoc@claude-brewcode
4. claude plugin install brewtools@claude-brewcode
5. claude plugin install brewui@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.
```
</details>
Update anytime with `/brewtools:plugin-update` .
2026-04-06 10:09:49 +01:00
## Overview
2026-01-27 10:38:34 +00:00
2026-06-29 18:53:40 +01:00
Brewcode is a lean skill plus prompt-injection toolkit. Two focused skills cover specification authoring and semantic code search, backed by a small set of lifecycle hooks that inject plugin context, auto-start grepai, and steer search toward semantic queries. Nine specialized agents handle implementation, testing, review, architecture, and asset creation (skills, agents, hooks, scripts).
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
## Installation
2026-03-05 17:52:26 +00:00
``` bash
2026-04-06 10:09:49 +01:00
# Marketplace (recommended)
2026-03-05 17:52:26 +00:00
claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
claude plugin install brewcode@claude-brewcode
2026-04-06 10:09:49 +01:00
# Already installed? Update
2026-03-05 17:52:26 +00:00
claude plugin marketplace update claude-brewcode
claude plugin update brewcode@claude-brewcode
2026-04-06 10:09:49 +01:00
# Dev mode (no install)
claude --plugin-dir ./brewcode
2026-03-05 17:52:26 +00:00
```
2026-01-27 10:38:34 +00:00
## Quick Start
``` bash
2026-06-29 18:53:40 +01:00
/brewcode:spec "Implement JWT authorization" # Research + specification
/brewcode:grepai setup # Semantic code search
2026-01-27 10:38:34 +00:00
```
2026-04-06 10:09:49 +01:00
## Skills
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Skill | Purpose |
|-------|---------|
| [`/brewcode:spec` ](skills/spec/README.md ) | Research codebase + user dialog -> SPEC.md |
v3.4.14: brewtools plugin, teams skill, mode switcher, hook-creator v2.1.89+
brewtools (new plugin):
- text-optimize, text-human, secrets-scan skills + text-optimizer agent
- BT_PLUGIN_ROOT injection via session-start hook
brewcode:
- /brewcode:teams — dynamic agent team creation/management
- Mode Switcher system (modes/, getActiveMode(), hooks injection)
- plan: Dynamic Agent Resolution from .claude/teams/ roster
- skills: Step 2.5 mode-switcher detection
- skill-creator: Mode Switcher pattern docs
- hook-creator: v2.1.89+ (PermissionDenied event, defer, 26 events)
- removed: text-optimize, text-human, secrets-scan → brewtools
- convention P5: fallback when brewtools not installed
2026-04-02 08:22:13 +01:00
| [`/brewcode:grepai` ](skills/grepai/README.md ) | Semantic code search (setup, status, start, stop, reindex) |
2026-01-27 10:38:34 +00:00
v3.4.14: brewtools plugin, teams skill, mode switcher, hook-creator v2.1.89+
brewtools (new plugin):
- text-optimize, text-human, secrets-scan skills + text-optimizer agent
- BT_PLUGIN_ROOT injection via session-start hook
brewcode:
- /brewcode:teams — dynamic agent team creation/management
- Mode Switcher system (modes/, getActiveMode(), hooks injection)
- plan: Dynamic Agent Resolution from .claude/teams/ roster
- skills: Step 2.5 mode-switcher detection
- skill-creator: Mode Switcher pattern docs
- hook-creator: v2.1.89+ (PermissionDenied event, defer, 26 events)
- removed: text-optimize, text-human, secrets-scan → brewtools
- convention P5: fallback when brewtools not installed
2026-04-02 08:22:13 +01:00
## Agents
2026-04-06 10:09:49 +01:00
| Agent | Model | Purpose |
|-------|-------|---------|
| [developer ](agents/developer.md ) | opus | Implement features, write code, fix bugs |
| [tester ](agents/tester.md ) | sonnet | Run tests, analyze failures, debug flaky tests |
| [reviewer ](agents/reviewer.md ) | opus | Code review, architecture, security, performance |
| [architect ](agents/architect.md ) | opus | Architecture analysis, patterns, trade-offs, scaling |
| [skill-creator ](agents/skill-creator.md ) | opus | Create and improve Claude Code skills |
| [agent-creator ](agents/agent-creator.md ) | opus | Create and improve Claude Code agents |
| [hook-creator ](agents/hook-creator.md ) | opus | Create and debug Claude Code hooks |
| [bash-expert ](agents/bash-expert.md ) | opus | Create professional shell scripts |
2026-06-27 12:04:45 +01:00
| bc-grepai-configurator | opus | Internal: spawned by /brewcode:grepai |
2026-04-06 10:09:49 +01:00
## Architecture
2026-01-27 10:38:34 +00:00
```
2026-04-06 10:09:49 +01:00
brewcode/
+-- .claude-plugin/plugin.json # Plugin manifest
2026-06-29 18:53:40 +01:00
+-- hooks/ # 5 lifecycle hooks
2026-04-06 10:09:49 +01:00
| +-- session-start.mjs # Session initialization
| +-- grepai-session.mjs # Auto-start grepai watch
| +-- grepai-reminder.mjs # grepai reminder
| +-- forced-eval.mjs # Skill activation
2026-06-17 13:21:41 +01:00
| +-- permission-guard.sh # Manager-mode edit guard
2026-06-29 18:53:40 +01:00
+-- agents/ # 9 agents
+-- skills/ # 2 skills
2026-04-06 10:09:49 +01:00
+-- templates/ # Rule templates
2026-01-27 10:38:34 +00:00
```
2026-04-06 10:09:49 +01:00
## Hook Lifecycle
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Hook | Event | Purpose |
|------|-------|---------|
| session-start | SessionStart | Initialize session, inject plugin path |
| grepai-session | SessionStart | Auto-start grepai watch process |
2026-06-29 18:53:40 +01:00
| grepai-reminder | PreToolUse:Bash | Remind to prefer semantic search |
2026-04-06 10:09:49 +01:00
| forced-eval | UserPromptSubmit | Skill activation |
2026-06-17 13:21:41 +01:00
| permission-guard | PreToolUse | Manager-mode edit guard for main session |
2026-01-27 10:38:34 +00:00
## Documentation
2026-04-06 10:09:49 +01:00
Full docs: [doc-claude.brewcode.app/brewcode/overview ](https://doc-claude.brewcode.app/brewcode/overview/ )
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Resource | Link |
|----------|------|
| Skills reference | [Skills ](https://doc-claude.brewcode.app/brewcode/skills/ ) |
| Agents reference | [Agents ](https://doc-claude.brewcode.app/brewcode/agents/ ) |
| Hooks reference | [Hooks ](https://doc-claude.brewcode.app/brewcode/hooks/ ) |
| Release Notes | [RELEASE-NOTES.md ](../RELEASE-NOTES.md ) |
2026-01-27 10:38:34 +00:00
Author: Maksim Kochetkov | License: MIT