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.
- package/bin/install.cjs +32 -2
- package/files/CLAUDE.md +55 -1065
- package/files/agents/code-organization-supervisor.md +3 -0
- package/files/agents/context-guardian.md +2 -0
- package/files/agents/docs-keeper.md +3 -0
- package/files/agents/dry-refactor.md +3 -0
- package/files/agents/elite-code-refactorer.md +3 -0
- package/files/agents/hardening-guard.md +3 -0
- package/files/agents/implementation-dev.md +3 -0
- package/files/agents/merlin-api-designer.md +3 -0
- package/files/agents/merlin-codebase-mapper.md +3 -0
- package/files/agents/merlin-debugger.md +3 -0
- package/files/agents/merlin-executor.md +3 -0
- package/files/agents/merlin-frontend.md +3 -0
- package/files/agents/merlin-integration-checker.md +3 -0
- package/files/agents/merlin-migrator.md +3 -0
- package/files/agents/merlin-milestone-auditor.md +3 -0
- package/files/agents/merlin-performance.md +3 -0
- package/files/agents/merlin-planner.md +3 -0
- package/files/agents/merlin-researcher.md +3 -0
- package/files/agents/merlin-reviewer.md +3 -0
- package/files/agents/merlin-security.md +3 -0
- package/files/agents/merlin-verifier.md +3 -0
- package/files/agents/merlin-work-verifier.md +3 -0
- package/files/agents/merlin.md +4 -0
- package/files/agents/ops-railway.md +3 -0
- package/files/agents/orchestrator-retrofit.md +3 -0
- package/files/agents/product-spec.md +3 -0
- package/files/agents/remotion.md +2 -0
- package/files/agents/system-architect.md +3 -0
- package/files/agents/tests-qa.md +3 -0
- package/files/hooks/pre-compact.sh +27 -0
- package/files/hooks/session-start.sh +1 -1
- package/files/merlin/VERSION +1 -1
- 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: 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>
|
package/files/agents/merlin.md
CHANGED
|
@@ -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.
|
package/files/agents/remotion.md
CHANGED
|
@@ -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.
|
package/files/agents/tests-qa.md
CHANGED
|
@@ -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": "
|
|
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
|
package/files/merlin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.5.
|
|
1
|
+
3.5.12
|
package/package.json
CHANGED