create-merlin-brain 3.5.10 → 3.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/bin/install.cjs +32 -2
  2. package/files/CLAUDE.md +55 -1065
  3. package/files/agents/code-organization-supervisor.md +3 -0
  4. package/files/agents/context-guardian.md +2 -0
  5. package/files/agents/docs-keeper.md +3 -0
  6. package/files/agents/dry-refactor.md +3 -0
  7. package/files/agents/elite-code-refactorer.md +3 -0
  8. package/files/agents/hardening-guard.md +3 -0
  9. package/files/agents/implementation-dev.md +3 -0
  10. package/files/agents/merlin-api-designer.md +3 -0
  11. package/files/agents/merlin-codebase-mapper.md +3 -0
  12. package/files/agents/merlin-debugger.md +3 -0
  13. package/files/agents/merlin-executor.md +3 -0
  14. package/files/agents/merlin-frontend.md +3 -0
  15. package/files/agents/merlin-integration-checker.md +3 -0
  16. package/files/agents/merlin-migrator.md +3 -0
  17. package/files/agents/merlin-milestone-auditor.md +3 -0
  18. package/files/agents/merlin-performance.md +3 -0
  19. package/files/agents/merlin-planner.md +3 -0
  20. package/files/agents/merlin-researcher.md +3 -0
  21. package/files/agents/merlin-reviewer.md +3 -0
  22. package/files/agents/merlin-security.md +3 -0
  23. package/files/agents/merlin-verifier.md +3 -0
  24. package/files/agents/merlin-work-verifier.md +3 -0
  25. package/files/agents/merlin.md +4 -0
  26. package/files/agents/ops-railway.md +3 -0
  27. package/files/agents/orchestrator-retrofit.md +3 -0
  28. package/files/agents/product-spec.md +3 -0
  29. package/files/agents/remotion.md +2 -0
  30. package/files/agents/system-architect.md +3 -0
  31. package/files/agents/tests-qa.md +3 -0
  32. package/files/hooks/pre-compact.sh +27 -0
  33. package/files/hooks/session-start.sh +1 -1
  34. package/files/merlin/VERSION +1 -1
  35. package/package.json +1 -1
@@ -4,6 +4,9 @@ description: Use this agent when you need to ensure code quality standards are m
4
4
  model: haiku
5
5
  color: blue
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  You are an elite Code Organization Supervisor with deep expertise in software architecture, clean code principles, and maintainable project structures. Your primary mission is to ensure codebases remain organized, readable, and maintainable by enforcing strict file size limits and logical folder hierarchies.
@@ -5,6 +5,8 @@ tools: Glob, Grep, Read, WebFetch, TodoWrite, WebSearch
5
5
  model: haiku
6
6
  color: green
7
7
  version: "1.0.0"
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 30
8
10
  ---
9
11
 
10
12
  You are the Context Guardian, an expert project analyst and architectural advisor whose mission is to ensure developers have complete contextual awareness before writing any code. Your role is critical in preventing code duplication, maintaining architectural consistency, and maximizing reuse of existing functionality.
@@ -4,6 +4,9 @@ description: Keeps claude.md documentation files up to date for each service or
4
4
  model: sonnet
5
5
  color: green
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 50
7
10
  ---
8
11
 
9
12
  You are the Documentation Keeper for a vibe coded system.
@@ -4,6 +4,9 @@ description: Keeps the codebase DRY, small, and maintainable by finding duplicat
4
4
  model: sonnet
5
5
  color: purple
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  You are an elite Code Organization and DRY Supervisor with deep expertise in software architecture, clean code principles, and maintainable project structures.
@@ -4,6 +4,9 @@ description: "Use this agent when you need to transform existing code into produ
4
4
  model: opus
5
5
  color: green
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  You are the Elite Code Refactorer—the most senior, meticulous, and uncompromising software architect on any engineering team. You possess deep expertise across the entire stack: backend systems, frontend applications, databases, APIs, and infrastructure. Your singular mission is to transform functional code into flawless, production-grade software that exemplifies engineering excellence.
@@ -4,6 +4,9 @@ description: Reviews features for security, error handling, validation, and reli
4
4
  model: sonnet
5
5
  color: green
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  You are the Hardening Guard.
@@ -4,6 +4,9 @@ description: Implements features and changes across the codebase, following the
4
4
  model: sonnet
5
5
  color: blue
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  You are the primary implementation developer working with a strong product minded vibe coder.
@@ -4,6 +4,9 @@ description: Designs clean, consistent REST and GraphQL APIs with proper documen
4
4
  tools: Read, Write, Grep, Glob
5
5
  color: blue
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Explores codebase and writes structured analysis documents. Spawned
4
4
  tools: Read, Bash, Grep, Glob, Write
5
5
  color: cyan
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 150
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Investigates bugs using scientific method, manages debug sessions,
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
5
5
  color: orange
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 150
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Executes Merlin plans with atomic commits, deviation handling, chec
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob
5
5
  color: yellow
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 200
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Frontend specialist for React, Vue, and modern web development with
4
4
  tools: Read, Write, Grep, Glob, Bash
5
5
  color: cyan
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Verifies cross-phase integration and E2E flows. Checks that phases
4
4
  tools: Read, Bash, Grep, Glob
5
5
  color: blue
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Plans and executes safe database schema migrations with rollback st
4
4
  tools: Read, Write, Bash, Grep, Glob
5
5
  color: yellow
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Orchestrates milestone-level verification. Spawns phase verifiers i
4
4
  tools: Read, Bash, Grep, Glob, Task
5
5
  color: blue
6
6
  version: "1.0.0"
7
+ model: opus
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 50
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: Analyzes code for performance issues and provides optimization reco
4
4
  tools: Read, Grep, Glob, Bash
5
5
  color: red
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  <role>
@@ -5,6 +5,9 @@ tools: Read, Write, Bash, Grep, Glob, AskUserQuestion, WebFetch, mcp__context7__
5
5
  color: blue
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit, Bash]
8
+ model: opus
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 100
8
11
  ---
9
12
 
10
13
  <role>
@@ -4,6 +4,9 @@ description: Conducts comprehensive research using systematic methodology, sourc
4
4
  tools: Read, Write, Bash, Grep, Glob, WebSearch, WebFetch, mcp__context7__*
5
5
  color: cyan
6
6
  version: "1.0.0"
7
+ model: opus
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  <role>
@@ -5,6 +5,9 @@ tools: Read, Grep, Glob, Bash
5
5
  color: orange
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit]
8
+ model: sonnet
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 50
8
11
  ---
9
12
 
10
13
  <role>
@@ -5,6 +5,9 @@ tools: Read, Grep, Glob, Bash
5
5
  color: red
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit]
8
+ model: sonnet
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 80
8
11
  ---
9
12
 
10
13
  <role>
@@ -5,6 +5,9 @@ tools: Read, Bash, Grep, Glob
5
5
  color: green
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit]
8
+ model: sonnet
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 100
8
11
  ---
9
12
 
10
13
  <role>
@@ -4,6 +4,9 @@ description: Validates built features through conversational UAT with persistent
4
4
  tools: Read, Bash, Grep, Glob, Edit, Write, AskUserQuestion
5
5
  color: green
6
6
  version: "1.0.0"
7
+ model: sonnet
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 50
7
10
  ---
8
11
 
9
12
  <role>
@@ -4,6 +4,9 @@ description: The Merlin Brain - Master AI orchestrator. Routes to specialist age
4
4
  model: opus
5
5
  color: magenta
6
6
  version: "1.0.0"
7
+ tools: Read, Glob, Grep, Bash, WebSearch
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 50
7
10
  ---
8
11
 
9
12
  # Merlin — Master Orchestrator
@@ -188,6 +191,7 @@ Activated by: "get shit done", "Merlin mode", "move fast", "just build it", "shi
188
191
 
189
192
  ## Anti-Patterns (NEVER Do These)
190
193
 
194
+ - **Never** run `claude --agent` via Bash — it FAILS inside Claude Code sessions. Use `Skill("merlin:route")` instead
191
195
  - **Never** read ref files yourself (plan-format.md, tdd.md) — the sub-agent reads them
192
196
  - **Never** do specialist work in the orchestrator context — always route
193
197
  - **Never** use Task() — it shares parent context and causes overflow
@@ -4,6 +4,9 @@ description: Manages deployment, environments, and configuration on Railway and
4
4
  model: sonnet
5
5
  color: red
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  You are the ops and infrastructure guide focusing on Railway and Google Cloud for a small, fast moving team.
@@ -4,6 +4,9 @@ description: Orchestrator used to audit and improve existing projects by applyin
4
4
  model: opus
5
5
  color: purple
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 80
7
10
  ---
8
11
 
9
12
  You are the retrofit orchestrator for existing projects that were already built, usually through vibe coding.
@@ -5,6 +5,9 @@ model: opus
5
5
  color: white
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit, Bash]
8
+ tools: Read, Grep, Glob, WebSearch
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 30
8
11
  ---
9
12
 
10
13
  You are a product specifier for a very strong product thinker and vibe coder.
@@ -5,6 +5,8 @@ model: sonnet
5
5
  tools: Read, Write, Edit, Bash, Grep, Glob, WebSearch
6
6
  color: red
7
7
  version: "1.0.0"
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
8
10
  ---
9
11
 
10
12
  <role>
@@ -5,6 +5,9 @@ model: opus
5
5
  color: black
6
6
  version: "1.0.0"
7
7
  disallowedTools: [Edit, Write, NotebookEdit, Bash]
8
+ tools: Read, Grep, Glob, Bash, WebSearch
9
+ permissionMode: bypassPermissions
10
+ maxTurns: 50
8
11
  ---
9
12
 
10
13
  You are a system architect for a vibe coder who tends to create many microservices.
@@ -4,6 +4,9 @@ description: Designs and implements lightweight but meaningful tests and manual
4
4
  model: sonnet
5
5
  color: yellow
6
6
  version: "1.0.0"
7
+ tools: Read, Write, Edit, Bash, Grep, Glob
8
+ permissionMode: bypassPermissions
9
+ maxTurns: 100
7
10
  ---
8
11
 
9
12
  You are a tests and QA designer for a busy founder and vibe coder.
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env bash
2
+ #
3
+ # Merlin Hook: PreCompact
4
+ # Saves session state before Claude Code compacts the context window.
5
+ # This preserves what was being worked on so it survives compaction.
6
+ # Always exits 0 — never blocks compaction.
7
+ #
8
+ set -euo pipefail
9
+ trap 'echo "{}"; exit 0' ERR
10
+
11
+ HOOKS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
12
+
13
+ # Source shared libraries
14
+ # shellcheck source=lib/analytics.sh
15
+ . "${HOOKS_DIR}/lib/analytics.sh"
16
+
17
+ # Log compaction event
18
+ log_event "pre_compact" '{}'
19
+
20
+ # If merlin CLI is available, save checkpoint in background
21
+ if command -v merlin >/dev/null 2>&1; then
22
+ merlin save-checkpoint "Pre-compaction checkpoint" >/dev/null 2>&1 &
23
+ fi
24
+
25
+ # Claude Code command hooks must output valid JSON to stdout
26
+ echo '{}'
27
+ exit 0
@@ -133,7 +133,7 @@ cat <<'CONTEXT_JSON'
133
133
  {
134
134
  "hookSpecificOutput": {
135
135
  "hookEventName": "SessionStart",
136
- "additionalContext": "You are a Merlin-powered session. Before working: (1) call merlin_get_selected_repo to connect Sights, (2) call merlin_get_project_status to load state, (3) show numbered options. Check Sights before every edit. Route complex tasks to specialists via /merlin:route. Save checkpoints before stopping."
136
+ "additionalContext": " MANDATORY: Before responding to the user, you MUST: (1) call merlin_get_selected_repo to connect Sights, (2) call merlin_get_project_status to load state, (3) show status + numbered options. Do NOT skip these steps. Do NOT start working without Merlin context. Route complex tasks via Skill(\"merlin:route\") — NEVER run claude --agent via Bash. Check merlin_get_context before every edit."
137
137
  }
138
138
  }
139
139
  CONTEXT_JSON
@@ -1 +1 @@
1
- 3.5.10
1
+ 3.5.12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-merlin-brain",
3
- "version": "3.5.10",
3
+ "version": "3.5.12",
4
4
  "description": "Merlin - The Ultimate AI Brain for Claude Code. One install: workflows, agents, loop, and Sights MCP server.",
5
5
  "type": "module",
6
6
  "main": "./dist/server/index.js",