Brewcode Overview
Install 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 add https://github.com/kochetkov-ma/claude-brewcode
2. claude plugin install brewcode@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. Install the entire suite:
Install 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 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. Brewcode is a plugin for Claude Code that turns single sessions into an infinite task pipeline with automatic context handoff between sessions. The name is a nod to brewing: skills (recipes) define what to brew, agents (brewers) do the work, and hooks (processes) manage the lifecycle.
Key Features
Infinite context
Automatic knowledge transfer between sessions via KNOWLEDGE.jsonl and the handoff mechanism. Tasks continue after compaction without losing progress.
13 skills (recipes)
Full cycle: from project analysis (/brewcode:setup) to task execution (/brewcode:start) and code review (/brewcode:standards-review).
12+ agents (brewers)
Specialized agents: developer, tester, reviewer, architect, skill-creator, agent-creator, and coordinators.
8 hooks (processes)
Lifecycle hooks for context management: knowledge injection, grepai integration, exit blocking when a task is still active.
Semantic search
Integration with grepai β AI-powered code search via Ollama + bge-m3. Auto-start, reminders, configurator.
Code quality
Standards-review, convention analysis. Rules are automatically synced to .claude/rules/.
Dynamic teams
Create project-specific agent teams (5-20) with self-selection, performance tracking, and automatic tuning.
Architecture
Brewcode works as a layer on top of Claude Code through the hook system. The plugin has no external runtime β all context is managed through built-in Claude Code events.
Brewcode Plugin
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β Skills (recipes) Agents (brewers) β
β ββββββββββββββββ ββββββββββββββββββββ β
β β setup, spec β β developer, tester β β
β β plan, start β ββββββ> β reviewer, architectβ β
β β convention,. β β + dynamic teams β β
β ββββββββββββββββ ββββββββββββββββββββ β
β β β β
β v v β
β Hooks (processes) Templates + Knowledge β
β ββββββββββββββββ ββββββββββββββββββββ β
β β session-startβ β PLAN.md.template β β
β β pre-task β <ββββββ> β KNOWLEDGE.jsonl β β
β β pre-compact β β SPEC.md.template β β
β β stop β β artifacts/ β β
β ββββββββββββββββ ββββββββββββββββββββ β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Task execution flow
PLAN.md --> phases (phases/) --> agents execute --> hooks manage
β β β
β Phase Registry β Task API β SessionStart
β (phase table) β (create/update) β PreToolUse
β β β PostToolUse
v v β PreCompact
artifacts/{P}-{N}{T}/ KNOWLEDGE.jsonl β Stop
{AGENT}_output.md (knowledge accumulation) v
handoff (auto)
Plugin structure
brewcode/
βββ .claude-plugin/
β βββ plugin.json # Plugin manifest
βββ hooks/
β βββ hooks.json # Binding 8 hooks to events
β βββ session-start.mjs # Session initialization
β βββ grepai-session.mjs # Auto-start grepai watch
β βββ pre-task.mjs # Knowledge injection into agents
β βββ grepai-reminder.mjs # grepai reminder
β βββ post-task.mjs # Session binding, 2-step protocol
β βββ pre-compact.mjs # Knowledge compaction, handoff
β βββ stop.mjs # Exit blocking
β βββ forced-eval.mjs # Skill activation (84%)
β βββ lib/
β βββ utils.mjs # I/O, lock files, configuration
β βββ knowledge.mjs # KNOWLEDGE.jsonl operations
βββ agents/ # 12 agents
β βββ developer.md # Feature implementation (opus)
β βββ tester.md # Testing (sonnet)
β βββ reviewer.md # Code review (opus)
β βββ architect.md # Architecture (opus)
β βββ skill-creator.md # Skill creation (opus)
β βββ agent-creator.md # Agent creation (opus)
β βββ hook-creator.md # Hook creation (opus)
β βββ bash-expert.md # Bash scripts (opus)
β βββ bc-coordinator.md # Task coordinator (haiku)
β βββ bc-knowledge-manager.md # Knowledge manager (haiku)
β βββ bc-grepai-configurator.md # grepai configurator (opus)
β βββ bc-rules-organizer.md # Rules organizer (sonnet)
βββ skills/ # 13 skills
β βββ setup/ # Project analysis, templates
β βββ spec/ # Specification creation
β βββ plan/ # Plan creation
β βββ start/ # Task execution
β βββ convention/ # Convention analysis
β βββ rules/ # Rule extraction
β βββ grepai/ # Semantic search
β βββ teardown/ # Cleanup
β βββ standards-review/ # Standards review
β βββ skills/ # Skill management
β βββ agents/ # Agent management
β βββ teams/ # Dynamic agent teams
β βββ e2e/ # E2E testing orchestration
βββ templates/ # Rule templates
Target project structure
After running /brewcode:setup and /brewcode:start, the following appears in your project:
{PROJECT}/
βββ .claude/
βββ tasks/
βββ cfg/
β βββ brewcode.config.json # Plugin configuration
β βββ brewcode.state.json # Execution state
βββ templates/ # Adapted templates
β βββ PLAN.md.template
β βββ SPEC.md.template
β βββ phase*.template
βββ logs/
β βββ brewcode.log # Hook log
βββ sessions/
β βββ {session_id}.info # Session information
βββ {TS}_{NAME}_task/ # Task directory
βββ PLAN.md # Execution plan
βββ SPEC.md # Specification
βββ KNOWLEDGE.jsonl # Accumulated knowledge
βββ phases/ # Phase files
β βββ 1-create-entity.md
β βββ 1V-verify-entity.md
β βββ FR-final-review.md
βββ artifacts/ # Agent reports
β βββ FINAL.md
β βββ {P}-{N}{T}/
βββ backup/ # Backups
βββ .lock # Session lock file
Components in detail
13 skills (recipes) cover the full task lifecycle. See Skills for details.
| Group | Skills | Purpose |
|---|---|---|
| Core cycle | setup, spec, plan, start | Task creation and execution |
| Quality | standards-review, convention, rules | Code analysis and review |
| Dynamic | teams | Agent team creation and management |
| Testing | e2e | E2E testing orchestration with BDD scenarios |
| Utilities | grepai, teardown, skills, agents | Tools and configuration |
12+ agents (brewers) with different models and specializations. See the Agents section for details.
| Role | Agents | Model |
|---|---|---|
| Implementation | developer, tester, architect | opus/sonnet |
| Review | reviewer | opus |
| Creation | skill-creator, agent-creator, hook-creator | opus |
| Optimization | bash-expert | opus |
| Coordination | bc-coordinator, bc-knowledge-manager, bc-grepai-configurator, bc-rules-organizer | haiku/sonnet/opus |
- dynamic project agents created by
/brewcode:teams
8 hooks (processes) manage the lifecycle through Claude Code events. See the Hooks section for details.
| Event | Hooks | Purpose |
|---|---|---|
| UserPromptSubmit | forced-eval | Skill activation |
| SessionStart | session-start, grepai-session | Initialization |
| PreToolUse | pre-task, grepai-reminder | Context injection |
| PostToolUse | post-task | Session binding |
| PreCompact | pre-compact | Knowledge handoff |
| Stop | stop | Exit blocking |
Recommended launch order
- Project setup/brewcode:setup
Install prerequisites (Phase 0), analyze the project and generate adapted templates.
- Specification/brewcode:spec
Parallel codebase research, SPEC.md creation.
- Plan/brewcode:plan
Phase generation, quorum review, requirements tracing.
- Execution/brewcode:start
Launch the task with infinite context and automatic handoff.
- Team Creation (optional)/brewcode:teams
Create a project-specific agent team with trace system. Agents auto-integrate with spec/plan/start.
Latest Release
Download, changelog, and installation instructions.
Installation Guide
Full setup, update, and troubleshooting instructions.
View on GitHub
Source code, README, and configuration files.