2026-02-28 10:53:52 +00:00
# claude-brewcode
2026-01-27 10:38:34 +00:00
2026-02-20 14:08:17 +00:00
[](https://www.apple.com/macos/)
[](https://claude.ai)
[](https://code.claude.com)
[](https://github.com/kochetkov-ma/claude-brewcode/actions/workflows/release.yml)
[](https://github.com/kochetkov-ma/claude-brewcode/releases/latest)
2026-03-18 12:55:08 +00:00
[](https://doc-claude.brewcode.app/getting-started/)
2026-02-20 14:08:17 +00:00
2026-04-10 15:34:57 +01:00
**Claude Code plugin suite ** -- four plugins for development, documentation, text utility, and visual workflows.
2026-02-28 10:53:52 +00:00
2026-06-27 12:04:45 +01:00
A regular Claude Code session loses context during compaction. Brewcode automatically saves knowledge, passes state between compaction cycles, and continues work without restarting. Four plugins. 32 skills. 16 agents. 9 lifecycle hooks.
2026-03-18 12:55:08 +00:00
2026-04-06 10:09:49 +01:00
[**Full Documentation** ](https://doc-claude.brewcode.app/getting-started/ )
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
> **Security:** Code is scanned on every commit. No personal data is collected or transmitted.
2026-02-20 14:08:17 +00:00
>
> [](https://github.com/kochetkov-ma/claude-brewcode/actions/workflows/gitleaks.yml?query=branch%3Amain)
> [](https://github.com/kochetkov-ma/claude-brewcode/actions/workflows/codeql.yml?query=branch%3Amain)
> [](https://github.com/kochetkov-ma/claude-brewcode/actions/workflows/semgrep.yml?query=branch%3Amain)
2026-01-27 10:38:34 +00:00
2026-04-10 15:34:57 +01:00
## 🚀 Install in 30 seconds
Paste this prompt into any Claude Code session -- Claude will run the full install for you:
```
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.
```
Already installed? Update with this prompt:
```
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 update claude-brewcode
2. claude plugin update brewcode@claude-brewcode
3. claude plugin update brewdoc@claude-brewcode
4. claude plugin update brewtools@claude-brewcode
5. claude plugin update 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.
```
> After install/update, run `/reload-plugins` (or `exit` + `claude` to restart). For manual install steps see [Installation](#installation) below.
2026-04-06 10:09:49 +01:00
## Plugin Suite
2026-02-28 10:53:52 +00:00
2026-04-06 10:09:49 +01:00
| Plugin | Purpose | Skills | Install |
|--------|---------|--------|---------|
2026-04-10 15:34:57 +01:00
| [brewcode ](brewcode/README.md ) | Infinite task execution, quorum reviews, skill/agent creation, semantic search | 13 | `claude plugin install brewcode@claude-brewcode` |
2026-04-06 10:09:49 +01:00
| [brewdoc ](brewdoc/README.md ) | Documentation tools: auto-sync, memory optimization, PDF conversion, publishing | 6 | `claude plugin install brewdoc@claude-brewcode` |
2026-06-14 12:12:03 +01:00
| [brewtools ](brewtools/README.md ) | Universal text utilities: token optimization, humanization, secrets scanning, plugin updates | 13 | `claude plugin install brewtools@claude-brewcode` |
2026-06-27 12:04:45 +01:00
| [brewui ](brewui/README.md ) | UI/visual/creative tools (placeholder, currently empty) | 0 | `claude plugin install brewui@claude-brewcode` |
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
## Installation
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
### Marketplace (recommended)
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
Permanent installation through the Claude Code plugin system. Plugins load automatically with every session.
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
1. **Add marketplace ** -- registers the plugin source:
2026-01-27 10:38:34 +00:00
2026-02-28 10:53:52 +00:00
``` bash
2026-04-06 10:09:49 +01:00
claude plugin marketplace add https://github.com/kochetkov-ma/claude-brewcode
2026-02-28 10:53:52 +00:00
```
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
2. **Install plugins ** -- copies plugins to local cache:
2026-01-27 10:38:34 +00:00
2026-02-28 10:53:52 +00:00
``` bash
2026-04-06 10:09:49 +01:00
claude plugin install brewcode@claude-brewcode
claude plugin install brewdoc@claude-brewcode
claude plugin install brewtools@claude-brewcode
2026-04-10 15:34:57 +01:00
claude plugin install brewui@claude-brewcode
2026-02-28 10:53:52 +00:00
```
2026-01-27 10:38:34 +00:00
2026-04-10 15:34:57 +01:00
3. **Reload plugins ** -- run `/reload-plugins` in Claude Code, or `exit` + `claude` to restart.
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
### Already installed? Update
2026-01-27 10:38:34 +00:00
2026-04-10 15:34:57 +01:00
Use `/brewtools:plugin-update` inside Claude Code for the easiest path -- it runs all update commands and reloads automatically.
Or run manually:
2026-01-27 10:38:34 +00:00
``` bash
2026-04-06 10:09:49 +01:00
claude plugin marketplace update claude-brewcode
claude plugin update brewcode@claude-brewcode
claude plugin update brewdoc@claude-brewcode
claude plugin update brewtools@claude-brewcode
2026-04-10 15:34:57 +01:00
claude plugin update brewui@claude-brewcode
2026-01-27 10:38:34 +00:00
```
2026-04-10 15:34:57 +01:00
After updating, run `/reload-plugins` (preferred) or `exit` + `claude` to restart.
2026-04-06 10:09:49 +01:00
### Local directory (for development)
2026-01-27 10:38:34 +00:00
``` bash
2026-04-10 15:34:57 +01:00
claude --plugin-dir ./brewcode --plugin-dir ./brewdoc --plugin-dir ./brewtools --plugin-dir ./brewui
2026-01-27 10:38:34 +00:00
```
2026-04-06 10:09:49 +01:00
### Requirements
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Component | Version | Purpose |
|-----------|---------|---------|
| Claude Code CLI | latest | Plugin runtime |
| Node.js | 20+ | Hook runtime |
| macOS | 13+ | Supported OS |
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
> **macOS only.** Linux and Windows support is planned for future releases.
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
## Quick Start
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
### brewcode -- infinite task execution
2026-01-27 10:38:34 +00:00
``` bash
2026-04-06 10:09:49 +01:00
/brewcode:setup # 1. Analyze project, generate templates (one-time)
/brewcode:spec "Implement JWT authorization" # 2. Research codebase + create specification
/brewcode:plan # 3. Generate phased execution plan
/brewcode:start # 4. Execute with infinite context handoff
2026-01-27 10:38:34 +00:00
```
2026-04-06 10:09:49 +01:00
After `/brewcode:setup` , each task follows the cycle: `spec` -> `plan` -> `start` . During execution, the plugin automatically compacts knowledge at ~90% context, writes handoff state, and continues without interruption.
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
### brewdoc -- documentation tools
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
``` bash
2026-04-06 10:09:49 +01:00
/brewdoc:auto-sync # Sync all project docs with codebase
/brewdoc:my-claude # Generate Claude Code installation docs
/brewdoc:memory # Optimize memory files interactively
/brewdoc:md-to-pdf ./docs/report.md # Convert markdown to PDF
/brewdoc:publish "Hello world" # Publish to brewpage.app -- returns public URL
/brewdoc:guide # Interactive tutorial for the plugin suite
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
```
2026-04-06 10:09:49 +01:00
### brewtools -- text utilities
2026-01-27 10:38:34 +00:00
``` bash
2026-04-06 10:09:49 +01:00
/brewtools:text-optimize CLAUDE.md # Token-efficient optimization (30+ rules)
/brewtools:text-human 3be67487 # Remove AI artifacts from a commit
/brewtools:secrets-scan # Scan for leaked credentials
2026-04-10 15:34:57 +01:00
/brewtools:plugin-update # Install or update the plugin suite
```
### brewui -- visual tools
2026-06-27 12:04:45 +01:00
Placeholder plugin, currently empty. No commands yet -- coming soon.
2026-01-27 10:38:34 +00:00
## How It Works
```
2026-04-06 10:09:49 +01:00
/brewcode:spec --> 5-10 research agents + user Q&A (*) --> SPEC.md
│
/brewcode:plan <──────────────────────────────────────────────┘
2026-01-27 10:38:34 +00:00
│
2026-04-06 10:09:49 +01:00
└──> phased plan + user Q&A (*) ──────────────────> PLAN.md
2026-01-27 10:38:34 +00:00
(*) skip with -n/--noask
2026-04-06 10:09:49 +01:00
│
/brewcode:start <─────────────────────────────────────────────┘
2026-01-27 10:38:34 +00:00
│
2026-04-06 10:09:49 +01:00
v
2026-01-27 10:38:34 +00:00
┌─ Execute phases with agents ──────────────────────────────────┐
2026-04-06 10:09:49 +01:00
│ Phase 1 --> Phase 2 --> ... --> Phase N │
│ │ (context ~90%) │
│ PreCompact: compact KNOWLEDGE + write handoff │
│ │ │
│ [auto-compact] --> same session resumes --> next phase │
└────────────────────────────────────────────────────────────────┘
2026-01-27 10:38:34 +00:00
```
2026-02-28 10:53:52 +00:00
### Knowledge lifecycle
1. Agents accumulate knowledge entries during execution (KNOWLEDGE.jsonl)
2. PreCompact hook compacts and deduplicates before context handoff
3. Pre-task hook injects knowledge into every agent prompt
4. Knowledge accumulates across phases, converted to permanent rules at task end
2026-04-06 10:09:49 +01:00
## Skills Reference
2026-06-17 13:21:41 +01:00
### Brewcode (13 skills)
2026-01-27 10:38:34 +00:00
| Skill | Purpose |
|-------|---------|
2026-04-06 10:09:49 +01:00
| `/brewcode:setup` | Analyze project, check prerequisites, generate adapted templates |
2026-01-27 10:38:34 +00:00
| `/brewcode:spec` | Research codebase + user dialog -> SPEC.md |
| `/brewcode:plan` | Generate phased PLAN.md from SPEC or Plan Mode |
| `/brewcode:start` | Execute task with infinite context handoff |
2026-04-06 10:09:49 +01:00
| `/brewcode:teams` | Create and manage dynamic teams of domain-specific agents |
| `/brewcode:standards-review` | Review code for project standards compliance |
| `/brewcode:convention` | Extract etalon classes, patterns, architecture into convention docs |
2026-01-27 10:38:34 +00:00
| `/brewcode:rules` | Extract rules from KNOWLEDGE to `.claude/rules/` |
| `/brewcode:grepai` | Semantic code search (setup, status, start, stop, reindex) |
2026-04-06 10:09:49 +01:00
| `/brewcode:skills` | List, create, and upgrade skills |
2026-02-28 10:53:52 +00:00
| `/brewcode:agents` | Interactive agent creation and improvement |
2026-04-06 10:09:49 +01:00
| `/brewcode:e2e` | E2E testing orchestration with BDD scenarios |
2026-01-27 10:38:34 +00:00
| `/brewcode:teardown` | Remove plugin configuration (keeps task data) |
2026-04-06 10:09:49 +01:00
### Brewdoc (6 skills)
2026-02-28 10:53:52 +00:00
| Skill | Purpose |
|-------|---------|
| `/brewdoc:auto-sync` | Universal document sync with codebase |
| `/brewdoc:my-claude` | Generate Claude Code installation docs |
| `/brewdoc:memory` | Optimize memory files interactively |
| `/brewdoc:md-to-pdf` | Convert markdown to professional PDF |
2026-04-06 10:09:49 +01:00
| `/brewdoc:publish` | Publish to brewpage.app -- returns public URL |
| `/brewdoc:guide` | Interactive tutorial for the plugin suite |
2026-02-28 10:53:52 +00:00
2026-06-14 12:12:03 +01:00
### Brewtools (13 skills)
2026-01-27 10:38:34 +00:00
2026-04-06 10:09:49 +01:00
| Skill | Purpose |
|-------|---------|
| `/brewtools:text-optimize` | LLM token efficiency optimization (30+ rules) |
| `/brewtools:text-human` | Remove AI artifacts, humanize code |
2026-04-20 18:32:13 +01:00
| `/brewtools:think-short` | Toggle terse-output mode -- inject brevity directives via SessionStart + PreToolUse:Task hooks |
2026-04-06 10:09:49 +01:00
| `/brewtools:secrets-scan` | Scan git-tracked files for leaked secrets |
2026-04-10 15:34:57 +01:00
| `/brewtools:ssh` | SSH server management -- connect, configure, deploy |
| `/brewtools:deploy` | GitHub Actions deployment -- workflows, releases, GHCR, CI/CD |
| `/brewtools:debate` | Evidence-based multi-agent debate (Challenge, Strategy, Critic modes) |
| `/brewtools:plugin-update` | Install and update the full plugin suite |
2026-06-13 20:39:06 +01:00
| `/brewtools:skill-toggle` | Disable/enable individual plugin skills (survives updates) |
| `/brewtools:agent-toggle` | Disable/enable individual agents via native permissions.deny |
| `/brewtools:provider-switch` | Configure alternative API providers (DeepSeek, Z.ai/GLM, Qwen, MiniMax, OpenRouter) |
2026-06-14 12:12:03 +01:00
| `/brewtools:manager` | Manager mode -- codewords ++m/++mp inject a delegate-everything prompt; HARD wall (on/off/uninstall) installs a project PreToolUse guard that blocks main-session edits, forcing delegation |
| `/brewtools:task-board-init` | Deploy a file-based Kanban into ANY repo via multi-agent analysis -- task-tracker agent, task-board skill, tasks rule, .claude/features |
2026-04-10 15:34:57 +01:00
2026-06-27 12:04:45 +01:00
### Brewui (0 skills)
2026-04-10 15:34:57 +01:00
2026-06-27 12:04:45 +01:00
No skills yet -- placeholder for future UI/visual/creative tools.
2026-01-27 10:38:34 +00:00
2026-05-31 17:48:14 +01:00
### Portable skills (standalone)
Self-contained `SKILL.md` folders that ship outside the four plugins -- drop them into any compatible agent runtime. Both publish content to [brewpage.app ](https://brewpage.app ) (text, markdown, files, multi-file sites) and return a public URL.
| Skill | Runtime | Path |
|-------|---------|------|
| `brewpage-publish` | Claude Code | [`skills/brewpage-publish` ](skills/brewpage-publish/ ) |
| `brewpage-publish` | OpenClaw / AgentSkills | [`openclaw/brewpage-publish` ](openclaw/brewpage-publish/ ) |
2026-04-10 15:34:57 +01:00
## Agents (16 total)
2026-01-27 10:38:34 +00:00
| Agent | Model | Purpose |
|-------|-------|---------|
2026-04-06 10:09:49 +01:00
| developer | opus | Implement features, write code, fix bugs |
| tester | sonnet | Run tests, analyze failures, debug flaky tests |
| reviewer | opus | Code review, architecture, security, performance |
| architect | opus | Architecture analysis, patterns, trade-offs, scaling |
| skill-creator | opus | Create and improve Claude Code skills |
| agent-creator | opus | Create and improve Claude Code agents |
| hook-creator | opus | Create and debug Claude Code hooks |
| bash-expert | opus | Create professional shell scripts |
| text-optimizer | sonnet | Optimize text and docs for LLM efficiency |
2026-06-17 13:21:41 +01:00
| ssh-admin | opus | Linux server administration via SSH |
| deploy-admin | opus | GitHub Actions deployment and CI/CD |
2026-06-27 12:04:45 +01:00
| bc-coordinator | haiku | Internal: spawned by /brewcode:start + post-task hook |
| bc-knowledge-manager | haiku | Internal: spawned by /brewcode:start |
| bc-grepai-configurator | opus | Internal: spawned by /brewcode:grepai |
| bd-auto-sync-processor | sonnet | Internal: spawned by /brewdoc:auto-sync |
| bc-rules-organizer | sonnet | Internal: spawned by /brewcode:rules |
2026-01-27 10:38:34 +00:00
## Documentation
2026-04-06 10:09:49 +01:00
| Resource | Link |
|----------|------|
| Full documentation | [doc-claude.brewcode.app ](https://doc-claude.brewcode.app/getting-started/ ) |
| Quick Start guide | [Quickstart ](https://doc-claude.brewcode.app/quickstart/ ) |
| Brewcode overview | [Brewcode ](https://doc-claude.brewcode.app/brewcode/overview/ ) |
| Brewdoc overview | [Brewdoc ](https://doc-claude.brewcode.app/brewdoc/overview/ ) |
| Brewtools overview | [Brewtools ](https://doc-claude.brewcode.app/brewtools/overview/ ) |
2026-04-10 15:34:57 +01:00
| Brewui overview | [Brewui ](https://doc-claude.brewcode.app/brewui/overview/ ) |
2026-04-06 10:09:49 +01:00
| Release Notes | [RELEASE-NOTES.md ](RELEASE-NOTES.md ) |
2026-01-27 10:38:34 +00:00
## Development
``` bash
2026-04-06 10:09:49 +01:00
CLAUDE_DEBUG = 1 claude --plugin-dir ./brewcode # Debug mode
bash .claude/scripts/update-plugin.sh # Update all plugins
bash .claude/scripts/bump-version.sh X.Y.Z # Bump version everywhere
2026-01-27 10:38:34 +00:00
```
## License
2026-04-06 10:09:49 +01:00
MIT -- see [LICENSE ](LICENSE )