moflo 4.10.5 → 4.10.7
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/.claude/agents/analysis/analyze-code-quality.md +14 -0
- package/.claude/agents/analysis/code-analyzer.md +14 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +14 -0
- package/.claude/agents/base-template-generator.md +14 -0
- package/.claude/agents/core/coder.md +14 -0
- package/.claude/agents/core/planner.md +14 -0
- package/.claude/agents/core/researcher.md +14 -0
- package/.claude/agents/core/reviewer.md +14 -0
- package/.claude/agents/core/tester.md +14 -0
- package/.claude/agents/custom/test-long-runner.md +14 -0
- package/.claude/agents/development/dev-backend-api.md +14 -0
- package/.claude/agents/development/dev-database.md +13 -0
- package/.claude/agents/development/dev-frontend.md +13 -0
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +14 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +14 -0
- package/.claude/agents/security/security-auditor.md +13 -0
- package/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +5 -3
- package/.claude/guidance/shipped/moflo-cli-reference.md +17 -31
- package/.claude/guidance/shipped/moflo-task-icons.md +10 -6
- package/.claude/guidance/shipped/moflo-yaml-reference.md +16 -2
- package/.claude/helpers/gate.cjs +101 -1
- package/.claude/helpers/subagent-bootstrap.json +1 -1
- package/.claude/helpers/subagent-start.cjs +1 -1
- package/bin/gate.cjs +101 -1
- package/bin/session-start-launcher.mjs +205 -16
- package/bin/setup-project.mjs +38 -58
- package/dist/src/cli/commands/daemon.js +31 -10
- package/dist/src/cli/commands/doctor-checks-deep.js +105 -0
- package/dist/src/cli/commands/doctor-fixes.js +24 -0
- package/dist/src/cli/commands/doctor-registry.js +5 -1
- package/dist/src/cli/commands/retire.js +22 -17
- package/dist/src/cli/config/moflo-config.js +11 -0
- package/dist/src/cli/init/claudemd-generator.js +6 -2
- package/dist/src/cli/init/helpers-generator.js +36 -1
- package/dist/src/cli/init/moflo-init.js +13 -21
- package/dist/src/cli/init/settings-generator.js +4 -1
- package/dist/src/cli/services/claudemd-injection.js +173 -0
- package/dist/src/cli/services/hook-block-hash.js +8 -2
- package/dist/src/cli/services/subagent-bootstrap.js +1 -1
- package/dist/src/cli/version.js +1 -1
- package/package.json +2 -2
- package/retired-files.json +305 -112
|
@@ -3,6 +3,20 @@ name: "code-analyzer"
|
|
|
3
3
|
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
|
|
4
4
|
color: "purple"
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Code Quality Analyzer
|
|
7
21
|
|
|
8
22
|
You are a Code Quality Analyzer performing comprehensive code reviews and analysis.
|
|
@@ -3,6 +3,20 @@ name: analyst
|
|
|
3
3
|
description: "Advanced code quality analysis agent for comprehensive code reviews and improvements"
|
|
4
4
|
color: indigo
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Code Analyzer Agent
|
|
7
21
|
|
|
8
22
|
An advanced code quality analysis specialist that performs comprehensive code reviews, identifies improvements, and ensures best practices are followed throughout the codebase.
|
|
@@ -3,6 +3,20 @@ name: "system-architect"
|
|
|
3
3
|
description: "Expert agent for system architecture design, patterns, and high-level technical decisions"
|
|
4
4
|
color: "purple"
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# System Architecture Designer
|
|
7
21
|
|
|
8
22
|
You are a System Architecture Designer responsible for high-level technical decisions and system design.
|
|
@@ -3,6 +3,20 @@ name: base-template-generator
|
|
|
3
3
|
description: Use this agent when you need to create foundational templates, boilerplate code, or starter configurations for new projects, components, or features. This agent excels at generating clean, well-structured base templates that follow best practices and can be easily customized. Examples: <example>Context: User needs to start a new React component and wants a solid foundation. user: 'I need to create a new user profile component' assistant: 'I'll use the base-template-generator agent to create a comprehensive React component template with proper structure, TypeScript definitions, and styling setup.' <commentary>Since the user needs a foundational template for a new component, use the base-template-generator agent to create a well-structured starting point.</commentary></example> <example>Context: User is setting up a new API endpoint and needs a template. user: 'Can you help me set up a new REST API endpoint for user management?' assistant: 'I'll use the base-template-generator agent to create a complete API endpoint template with proper error handling, validation, and documentation structure.' <commentary>The user needs a foundational template for an API endpoint, so use the base-template-generator agent to provide a comprehensive starting point.</commentary></example>
|
|
4
4
|
color: orange
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
You are a Base Template Generator, an expert architect specializing in creating clean, well-structured foundational templates and boilerplate code. Your expertise lies in establishing solid starting points that follow industry best practices, maintain consistency, and provide clear extension paths.
|
|
7
21
|
|
|
8
22
|
Your core responsibilities:
|
|
@@ -3,6 +3,20 @@ name: coder
|
|
|
3
3
|
color: "#FF6B35"
|
|
4
4
|
description: Implementation specialist for writing clean, efficient code
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Code Implementation Agent
|
|
7
21
|
|
|
8
22
|
You are a senior software engineer specialized in writing clean, maintainable, and efficient code following best practices and design patterns.
|
|
@@ -3,6 +3,20 @@ name: planner
|
|
|
3
3
|
color: "#4ECDC4"
|
|
4
4
|
description: Strategic planning and task orchestration agent
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Strategic Planning Agent
|
|
7
21
|
|
|
8
22
|
You are a strategic planning specialist responsible for breaking down complex tasks into manageable components and creating actionable execution plans.
|
|
@@ -3,6 +3,20 @@ name: researcher
|
|
|
3
3
|
color: "#9B59B6"
|
|
4
4
|
description: Deep research and information gathering specialist
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Research and Analysis Agent
|
|
7
21
|
|
|
8
22
|
You are a research specialist focused on thorough investigation, pattern analysis, and knowledge synthesis for software development tasks.
|
|
@@ -3,6 +3,20 @@ name: reviewer
|
|
|
3
3
|
color: "#E74C3C"
|
|
4
4
|
description: Code review and quality assurance specialist
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Code Review Agent
|
|
7
21
|
|
|
8
22
|
You are a senior code reviewer responsible for ensuring code quality, security, and maintainability through thorough review processes.
|
|
@@ -3,6 +3,20 @@ name: tester
|
|
|
3
3
|
color: "#F39C12"
|
|
4
4
|
description: Comprehensive testing and quality assurance specialist
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Testing and Quality Assurance Agent
|
|
7
21
|
|
|
8
22
|
You are a QA specialist focused on ensuring code quality through comprehensive testing strategies and validation techniques.
|
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
name: test-long-runner
|
|
3
3
|
description: Test agent that can run for 30+ minutes on complex tasks
|
|
4
4
|
---
|
|
5
|
+
|
|
6
|
+
## Operating context (moflo)
|
|
7
|
+
|
|
8
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
9
|
+
|
|
10
|
+
Search these namespaces depending on your task:
|
|
11
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
12
|
+
- `code-map` — file structure and module relationships
|
|
13
|
+
- `patterns` — proven solutions and reusable approaches
|
|
14
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
15
|
+
- `tests` — test inventory and coverage
|
|
16
|
+
|
|
17
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
18
|
+
|
|
5
19
|
# Test Long-Running Agent
|
|
6
20
|
|
|
7
21
|
You are a specialized test agent designed to handle long-running tasks that may take 30 minutes or more to complete.
|
|
@@ -3,6 +3,20 @@ name: "backend-dev"
|
|
|
3
3
|
description: "Specialized agent for backend API development with self-learning and pattern recognition"
|
|
4
4
|
color: "blue"
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# Backend API Developer v2.0.0-alpha
|
|
7
21
|
|
|
8
22
|
You are a specialized Backend API Developer agent with **self-learning** and **continuous improvement** capabilities powered by Agentic-Flow v2.0.0-alpha.
|
|
@@ -4,6 +4,19 @@ description: Database specialist for schema design, migrations, query optimizati
|
|
|
4
4
|
color: green
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
7
20
|
You are a Database Developer agent. Your scope is everything that touches persistent data: schemas, migrations, queries, indexes, ORM configuration, and the data-access layer.
|
|
8
21
|
|
|
9
22
|
## Core responsibilities
|
|
@@ -4,6 +4,19 @@ description: Frontend development specialist for UI components, styling, accessi
|
|
|
4
4
|
color: cyan
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
7
20
|
You are a Frontend Developer agent. Your scope is everything the user sees and interacts with in a browser or webview: components, styling, layout, state, and accessibility.
|
|
8
21
|
|
|
9
22
|
## Core responsibilities
|
|
@@ -3,6 +3,20 @@ name: "cicd-engineer"
|
|
|
3
3
|
description: "Specialized agent for GitHub Actions CI/CD pipeline creation and optimization"
|
|
4
4
|
color: "cyan"
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# GitHub CI/CD Pipeline Engineer
|
|
7
21
|
|
|
8
22
|
You are a GitHub CI/CD Pipeline Engineer specializing in GitHub Actions workflows.
|
|
@@ -3,6 +3,20 @@ name: "api-docs"
|
|
|
3
3
|
description: "Expert agent for creating and maintaining OpenAPI/Swagger documentation"
|
|
4
4
|
color: "indigo"
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
6
20
|
# OpenAPI Documentation Specialist
|
|
7
21
|
|
|
8
22
|
You are an OpenAPI Documentation Specialist focused on creating comprehensive API documentation.
|
|
@@ -4,6 +4,19 @@ description: Security audit specialist for vulnerability scanning, threat modeli
|
|
|
4
4
|
color: red
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## Operating context (moflo)
|
|
8
|
+
|
|
9
|
+
This project uses moflo memory. **Your first tool call must be `mcp__moflo__memory_search`** before any Read, Grep, Glob, or read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents).
|
|
10
|
+
|
|
11
|
+
Search these namespaces depending on your task:
|
|
12
|
+
- `guidance` — coding rules, architectural decisions, project conventions
|
|
13
|
+
- `code-map` — file structure and module relationships
|
|
14
|
+
- `patterns` — proven solutions and reusable approaches
|
|
15
|
+
- `learnings` — past corrections, anti-patterns, gotchas
|
|
16
|
+
- `tests` — test inventory and coverage
|
|
17
|
+
|
|
18
|
+
On chunk hits where `navigation` is non-null, traverse via `mcp__moflo__memory_get_neighbors`. Bulk `mcp__moflo__memory_retrieve` is a protocol violation — see `.claude/guidance/moflo-memory-protocol.md`.
|
|
19
|
+
|
|
7
20
|
You are a Security Auditor agent. Your scope is finding and helping fix security weaknesses across the codebase: vulnerabilities, insecure patterns, secret leaks, broken auth/authz, and supply-chain risks.
|
|
8
21
|
|
|
9
22
|
## Core responsibilities
|
|
@@ -26,12 +26,14 @@ Use these icons in `subject` and `activeForm` when creating tasks so the user ca
|
|
|
26
26
|
| 💻 | coder | 💻 Writing code |
|
|
27
27
|
| 🧪 | tester | 🧪 Writing tests |
|
|
28
28
|
| 👀 | reviewer | 👀 Reviewing code |
|
|
29
|
-
| 🛡️ | security-
|
|
30
|
-
|
|
|
29
|
+
| 🛡️ | security-auditor | 🛡️ Security audit |
|
|
30
|
+
| 🔬 | analyst / code-analyzer | 🔬 Analyzing performance hotspots |
|
|
31
31
|
| 📚 | api-docs | 📚 Documenting API |
|
|
32
32
|
| 📋 | planner | 📋 Planning tasks |
|
|
33
|
+
| ⚙️ | backend-dev | ⚙️ Building REST endpoints |
|
|
34
|
+
| 🎨 | frontend-dev | 🎨 Building UI components |
|
|
35
|
+
| 🗄️ | database-dev | 🗄️ Designing schema |
|
|
33
36
|
| 🤝 | consensus (hive-mind) | 🤝 Evaluating tradeoffs |
|
|
34
|
-
| 🔬 | analyzer | 🔬 Analyzing code |
|
|
35
37
|
|
|
36
38
|
See `.claude/guidance/moflo-task-icons.md` for the full ICON + [Role] format and how it applies to the `Agent` tool's `description` field.
|
|
37
39
|
|
|
@@ -59,45 +59,31 @@ npx flo daemon start
|
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
62
|
-
## Available Agents
|
|
62
|
+
## Available Agents
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
`coder`, `reviewer`, `tester`, `planner`, `researcher`
|
|
66
|
-
|
|
67
|
-
### Specialized Agents
|
|
68
|
-
`security-architect`, `security-auditor`, `memory-specialist`, `performance-engineer`
|
|
69
|
-
|
|
70
|
-
### Swarm Coordination
|
|
71
|
-
`hierarchical-coordinator`, `mesh-coordinator`, `adaptive-coordinator`, `collective-intelligence-coordinator`, `swarm-memory-manager`
|
|
72
|
-
|
|
73
|
-
### Consensus & Distributed
|
|
74
|
-
`byzantine-coordinator`, `raft-manager`, `gossip-coordinator`, `consensus-builder`, `crdt-synchronizer`, `quorum-manager`, `security-manager`
|
|
64
|
+
The shipped agent roster — each is invoked via the `Agent` tool with `subagent_type: <name>`. The canonical handle is the `name:` frontmatter inside `.claude/agents/**/*.md` (filename may differ from agent name). Aspirational agents that never shipped were retired in #932 — `retired-files.json` enforces auto-prune on consumer upgrade.
|
|
75
65
|
|
|
76
|
-
###
|
|
77
|
-
`
|
|
78
|
-
|
|
79
|
-
### GitHub & Repository
|
|
80
|
-
`github-modes`, `pr-manager`, `code-review-swarm`, `issue-tracker`, `release-manager`, `workflow-automation`, `project-board-sync`, `repo-architect`, `multi-repo-swarm`
|
|
81
|
-
|
|
82
|
-
### SPARC Methodology
|
|
83
|
-
`sparc-coord`, `sparc-coder`, `specification`, `pseudocode`, `architecture`, `refinement`
|
|
66
|
+
### Core Development
|
|
67
|
+
`coder`, `reviewer`, `tester`, `planner`, `researcher`, `analyst`
|
|
84
68
|
|
|
85
69
|
### Specialized Development
|
|
86
|
-
`backend-dev`, `
|
|
70
|
+
`backend-dev`, `frontend-dev`, `database-dev`, `cicd-engineer`, `api-docs`, `system-architect`, `code-analyzer`, `base-template-generator`
|
|
87
71
|
|
|
88
|
-
###
|
|
89
|
-
`
|
|
72
|
+
### Quality & Security
|
|
73
|
+
`security-auditor`, `test-long-runner`
|
|
90
74
|
|
|
91
75
|
### Agent Routing (Anti-Drift)
|
|
92
76
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
|
96
|
-
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
77
|
+
The orchestrator is the calling Claude, not a named agent. Pick specialists from the roster above.
|
|
78
|
+
|
|
79
|
+
| Code | Task | Agents |
|
|
80
|
+
|------|-------------|---------------------------------------------------|
|
|
81
|
+
| 1 | Bug Fix | researcher, coder, tester |
|
|
82
|
+
| 3 | Feature | system-architect, coder, tester, reviewer |
|
|
83
|
+
| 5 | Refactor | analyst, coder, reviewer |
|
|
84
|
+
| 7 | Performance | analyst, coder |
|
|
85
|
+
| 9 | Security | security-auditor, code-analyzer |
|
|
86
|
+
| 11 | Docs | researcher, api-docs |
|
|
101
87
|
|
|
102
88
|
**Codes 1-9: hierarchical/specialized (anti-drift). Code 11: mesh/balanced.**
|
|
103
89
|
|
|
@@ -29,16 +29,20 @@ description: "ICON [Role] Brief description"
|
|
|
29
29
|
| Agent Type | Icon | Example subject |
|
|
30
30
|
|------------|------|----------------|
|
|
31
31
|
| Explore | 🔍 | `🔍 [Explorer] Find entity files` |
|
|
32
|
-
| coder
|
|
33
|
-
| tester | 🧪 | `🧪 [Tester] Run unit test suite` |
|
|
32
|
+
| coder | 💻 | `💻 [Coder] Implement auth service` |
|
|
33
|
+
| tester / test-long-runner | 🧪 | `🧪 [Tester] Run unit test suite` |
|
|
34
34
|
| reviewer | 📋 | `📋 [Reviewer] Review PR changes` |
|
|
35
35
|
| researcher | 🔬 | `🔬 [Researcher] Analyze dependencies` |
|
|
36
36
|
| planner / Plan | 📐 | `📐 [Planner] Design migration plan` |
|
|
37
|
-
| security-
|
|
38
|
-
|
|
|
37
|
+
| security-auditor | 🛡️ | `🛡️ [Security] Audit auth middleware` |
|
|
38
|
+
| system-architect | 🏗️ | `🏗️ [Architect] Design API structure` |
|
|
39
39
|
| backend-dev | ⚙️ | `⚙️ [Backend] Build REST endpoints` |
|
|
40
|
-
|
|
|
41
|
-
|
|
|
40
|
+
| frontend-dev | 🎨 | `🎨 [Frontend] Build login component` |
|
|
41
|
+
| database-dev | 🗄️ | `🗄️ [Database] Design schema migration` |
|
|
42
|
+
| analyst / code-analyzer | 🔬 | `🔬 [Analyst] Profile query bottleneck` |
|
|
43
|
+
| api-docs | 📚 | `📚 [Docs] Write OpenAPI spec` |
|
|
44
|
+
| cicd-engineer | 🚦 | `🚦 [CICD] Wire GitHub Actions matrix` |
|
|
45
|
+
| base-template-generator | 🧱 | `🧱 [Template] Scaffold new component` |
|
|
42
46
|
| general-purpose | 🤖 | `🤖 [Agent] Execute multi-step task` |
|
|
43
47
|
|
|
44
48
|
## Wrong vs Right Examples
|
|
@@ -77,7 +77,7 @@ model_routing:
|
|
|
77
77
|
cost_optimization: true # Prefer cheaper models when confident
|
|
78
78
|
circuit_breaker: true # Penalize models that fail repeatedly
|
|
79
79
|
# agent_overrides:
|
|
80
|
-
# security-
|
|
80
|
+
# security-auditor: opus
|
|
81
81
|
# researcher: sonnet
|
|
82
82
|
|
|
83
83
|
# Status line display
|
|
@@ -101,9 +101,17 @@ status_line:
|
|
|
101
101
|
sandbox:
|
|
102
102
|
enabled: false # Set to true to wrap bash steps in an OS sandbox
|
|
103
103
|
tier: auto # auto | denylist-only | full
|
|
104
|
+
|
|
105
|
+
# Auto-update on session start (refreshes consumer assets when moflo upgrades)
|
|
106
|
+
auto_update:
|
|
107
|
+
enabled: true # Master toggle for version-change auto-sync
|
|
108
|
+
scripts: true # Sync .claude/scripts/ from moflo bin/
|
|
109
|
+
helpers: true # Sync .claude/helpers/ from moflo source
|
|
110
|
+
hook_block_drift: warn # warn | regenerate | off
|
|
111
|
+
claudemd_injection_drift: regenerate # warn | regenerate | off
|
|
104
112
|
```
|
|
105
113
|
|
|
106
|
-
If your `moflo.yaml` predates the `sandbox:`
|
|
114
|
+
If your `moflo.yaml` predates the `sandbox:` or `auto_update:` blocks, they are auto-appended on the next session start — you never need to re-run `moflo init` after a version bump.
|
|
107
115
|
|
|
108
116
|
### Key Behaviors
|
|
109
117
|
|
|
@@ -128,6 +136,12 @@ If your `moflo.yaml` predates the `sandbox:` block, it is auto-appended on the n
|
|
|
128
136
|
| `sandbox.enabled: true` | Wrap bash steps in an OS sandbox (macOS/Linux/WSL) — absolute disable when `false`, regardless of tier |
|
|
129
137
|
| `sandbox.tier: full` | Require OS sandbox; throw at runtime if the platform tool is unavailable |
|
|
130
138
|
| `sandbox.tier: denylist-only` | Keep Layer 1 denylist only; skip OS isolation even when enabled |
|
|
139
|
+
| `auto_update.enabled: false` | Disable all on-session auto-sync (scripts, helpers, drift checks) |
|
|
140
|
+
| `auto_update.hook_block_drift: regenerate` | Auto-repair drift in `.claude/settings.json` hook block on session start (#881) |
|
|
141
|
+
| `auto_update.hook_block_drift: off` | Skip hook-block drift detection entirely |
|
|
142
|
+
| `auto_update.claudemd_injection_drift: regenerate` | Auto-refresh the MoFlo block in `CLAUDE.md` when it drifts from the current generator (#1142, default) |
|
|
143
|
+
| `auto_update.claudemd_injection_drift: warn` | Print a drift notice on session start but leave `CLAUDE.md` unchanged |
|
|
144
|
+
| `auto_update.claudemd_injection_drift: off` | Skip CLAUDE.md injection drift detection entirely |
|
|
131
145
|
|
|
132
146
|
---
|
|
133
147
|
|
package/.claude/helpers/gate.cjs
CHANGED
|
@@ -82,6 +82,53 @@ var command = process.argv[2];
|
|
|
82
82
|
|
|
83
83
|
var EXEMPT = ['.claude/', '.claude\\', 'CLAUDE.md', 'MEMORY.md', 'workflow-state', 'node_modules', 'moflo.yaml'];
|
|
84
84
|
var DANGEROUS = ['rm -rf /', 'format c:', 'del /s /q c:\\', ':(){:|:&};:', 'mkfs.', '> /dev/sda'];
|
|
85
|
+
|
|
86
|
+
// #1132 — Bash memory-first gate.
|
|
87
|
+
//
|
|
88
|
+
// CREDIT: the legacy detector that marks the gate satisfied when Claude
|
|
89
|
+
// manually invokes a memory-search CLI (flo-search, the moflo MCP search via
|
|
90
|
+
// shell, etc.). Preserved verbatim from the pre-#1132 behaviour so existing
|
|
91
|
+
// recipes keep crediting the gate.
|
|
92
|
+
var CREDIT_MEMORY_SEARCH_RE = /semantic-search|memory search|memory retrieve|memory-search/;
|
|
93
|
+
// BLOCK: read-like Bash commands that bypass the existing check-before-read /
|
|
94
|
+
// check-before-scan gates by going through the shell. Anchored to the start of
|
|
95
|
+
// the line so subcommands inside pipelines or `npm install grep` don't trip.
|
|
96
|
+
// Covers POSIX read/search tools, Windows cmd `type`, and PowerShell readers.
|
|
97
|
+
var READ_LIKE_BASH_RE = new RegExp([
|
|
98
|
+
'^\\s*(?:cat|head|tail|less|more|bat|xxd|od|hexdump)\\b',
|
|
99
|
+
'^\\s*(?:grep|rg|ag|fgrep|egrep|find|fd)\\b',
|
|
100
|
+
'^\\s*sed\\s+-n\\b',
|
|
101
|
+
'^\\s*awk\\s+(?!.*<<)',
|
|
102
|
+
// `type <path>` on Windows. No `$` anchor so a piped form
|
|
103
|
+
// (`type src\foo.ts | grep x`) still matches and gets blocked. The argument
|
|
104
|
+
// must contain a slash, backslash, or dot — otherwise it's the shell-builtin
|
|
105
|
+
// command-lookup form (`type ls`, `type cd`) which the gate has no business
|
|
106
|
+
// blocking. False-negative trade: extension-less filenames like `type Makefile`
|
|
107
|
+
// pass through. Acceptable — source files all have extensions, and the
|
|
108
|
+
// primary risk pattern is leaking past the gate via `type src\foo.ts`.
|
|
109
|
+
'^\\s*type\\s+\\S*[\\\\/.]',
|
|
110
|
+
'^\\s*(?:Get-Content|gc|Select-String|sls)\\b',
|
|
111
|
+
].join('|'), 'i');
|
|
112
|
+
// CARVE-OUT: commands that LOOK read-like but are operational. Anchored to the
|
|
113
|
+
// LEADING command — the pipe-filter case (`npm test | grep FAIL`) is already
|
|
114
|
+
// handled by READ_LIKE's `^\s*` anchor never matching the leading `npm`, so
|
|
115
|
+
// there is intentionally no pipe arm here: catching the leading command lets
|
|
116
|
+
// `grep -r TODO src/ | head -5` reach the BLOCK exit (which it must, that's
|
|
117
|
+
// the gap the ticket exists to close). #1132.
|
|
118
|
+
var BASH_CARVE_OUT_RE = new RegExp([
|
|
119
|
+
'^\\s*(npm|npx|pnpm|yarn|bun|node|deno|tsx|ts-node)\\s',
|
|
120
|
+
'^\\s*(git|gh|hub)\\s',
|
|
121
|
+
'^\\s*(docker|kubectl|helm|terraform)\\s',
|
|
122
|
+
'^\\s*(curl|wget|http|fetch)\\s',
|
|
123
|
+
'^\\s*(jq|yq|xq)\\s',
|
|
124
|
+
'^\\s*(echo|printf|true|false|sleep|test|\\[)\\s',
|
|
125
|
+
'^\\s*cat\\s+(<<|<<<)',
|
|
126
|
+
'^\\s*cat\\s+[^|]*\\s*>',
|
|
127
|
+
'^\\s*tee\\b',
|
|
128
|
+
// Lazy `.+?` instead of `.+\s` to avoid catastrophic backtracking on long
|
|
129
|
+
// `find` commands that lack a `-delete` / `-exec rm` suffix.
|
|
130
|
+
'^\\s*find\\s+.+?-(delete|exec\\s+rm)\\b',
|
|
131
|
+
].join('|'));
|
|
85
132
|
var DIRECTIVE_RE = /^(yes|no|yeah|yep|nope|sure|ok|okay|correct|right|exactly|perfect)\b/i;
|
|
86
133
|
var TASK_RE = /\b(fix|bug|error|implement|add|create|build|write|refactor|debug|test|feature|issue|security|optimi)\b/i;
|
|
87
134
|
|
|
@@ -146,6 +193,29 @@ function classifyNamespaceHint(promptText) {
|
|
|
146
193
|
return '';
|
|
147
194
|
}
|
|
148
195
|
|
|
196
|
+
// #1132 — command-shape namespace classifier for the bash-BLOCK message.
|
|
197
|
+
// Used when the prompt-derived `lastNamespaceHint` is empty (e.g. subagents,
|
|
198
|
+
// which never see the user prompt) so the block message still routes to a
|
|
199
|
+
// useful namespace rather than the generic "pick one of five" list. Returns a
|
|
200
|
+
// full sentence in the same shape as classifyNamespaceHint so the BLOCK arm
|
|
201
|
+
// can write either source's hint without branching on format.
|
|
202
|
+
//
|
|
203
|
+
// SYNC: duplicated verbatim in src/cli/init/helpers-generator.ts.
|
|
204
|
+
function classifyBashNamespaceHint(cmd) {
|
|
205
|
+
// Search-like tools — the user is hunting for a symbol/file, code-map wins.
|
|
206
|
+
if (/^\s*(?:grep|rg|ag|fgrep|egrep|find|fd|Select-String|sls)\b/i.test(cmd)) {
|
|
207
|
+
return 'Memory namespace hint: use "code-map" for codebase navigation.';
|
|
208
|
+
}
|
|
209
|
+
// Reading a .md / RST / TXT, or a well-known doc file — guidance/learnings win.
|
|
210
|
+
// `.*` (not `\S*`) so flag-prefixed forms like `head -50 README.md` match.
|
|
211
|
+
// Anchored on the leading reader so a piped `cmd | grep foo.md` doesn't trip.
|
|
212
|
+
if (/^\s*(?:cat|head|tail|less|more|bat|type|Get-Content|gc)\b.*\.(?:md|mdx|rst|txt)\b/i.test(cmd)
|
|
213
|
+
|| /^\s*(?:cat|head|tail|less|more|bat|type|Get-Content|gc)\b.*\b(?:README|CLAUDE|CHANGELOG|CONTRIBUTING|LICENSE)\b/i.test(cmd)) {
|
|
214
|
+
return 'Memory namespace hint: search "guidance" and "learnings" for project rules and decisions.';
|
|
215
|
+
}
|
|
216
|
+
return '';
|
|
217
|
+
}
|
|
218
|
+
|
|
149
219
|
// Apply per-prompt state reset shared by `prompt-reminder` (full) and
|
|
150
220
|
// `prompt-state-reset` (defensive safety-net, no emission). Idempotent — both
|
|
151
221
|
// UserPromptSubmit hooks can run it without compounding any field. Caller
|
|
@@ -402,11 +472,41 @@ switch (command) {
|
|
|
402
472
|
break;
|
|
403
473
|
}
|
|
404
474
|
case 'check-bash-memory': {
|
|
475
|
+
// #1132 — preserve CREDIT side-effect AND add a BLOCK arm for read-like
|
|
476
|
+
// Bash commands. Wired as PreToolUse[Bash] (was PostToolUse before #1132)
|
|
477
|
+
// so process.exit(2) actually prevents the read from reaching the shell.
|
|
405
478
|
var cmd = process.env.TOOL_INPUT_command || '';
|
|
406
|
-
|
|
479
|
+
|
|
480
|
+
// 1) CREDIT — preserved behavior. A real memory-search invocation flips
|
|
481
|
+
// the gate flag so subsequent Read/Grep/Glob within this prompt pass.
|
|
482
|
+
if (CREDIT_MEMORY_SEARCH_RE.test(cmd)) {
|
|
407
483
|
var s = readState();
|
|
408
484
|
if (markMemorySearched(s)) writeState(s);
|
|
485
|
+
break;
|
|
409
486
|
}
|
|
487
|
+
|
|
488
|
+
// 2) BLOCK — new behavior. Cheap regex checks come BEFORE readState() so
|
|
489
|
+
// the overwhelming majority of Bash invocations (git/npm/curl/echo/etc.)
|
|
490
|
+
// never touch the filesystem. Order: config flag → command-shape regexes
|
|
491
|
+
// → state read → memory gate.
|
|
492
|
+
if (!config.memory_first) break;
|
|
493
|
+
if (!READ_LIKE_BASH_RE.test(cmd)) break;
|
|
494
|
+
if (BASH_CARVE_OUT_RE.test(cmd)) break;
|
|
495
|
+
var s2 = readState();
|
|
496
|
+
if (!s2.memoryRequired || isMemorySearchedFor(s2)) break;
|
|
497
|
+
// Hint precedence: prompt-derived classification (set by applyPromptStateReset
|
|
498
|
+
// from the user prompt text) → command-shape classification (works for
|
|
499
|
+
// subagents that never saw the user prompt). Either source returns a full
|
|
500
|
+
// "Memory namespace hint: ..." sentence so the BLOCK message stays uniform.
|
|
501
|
+
var hint = s2.lastNamespaceHint || classifyBashNamespaceHint(cmd) || '';
|
|
502
|
+
process.stderr.write(
|
|
503
|
+
'BLOCKED: Search memory before reading files via Bash.\n' +
|
|
504
|
+
'Example: mcp__moflo__memory_search { query: "<topic>", namespace: "<one of: guidance | code-map | patterns | learnings | tests>" }\n' +
|
|
505
|
+
(hint ? hint + '\n' : '') +
|
|
506
|
+
'On chunk hits, traverse via mcp__moflo__memory_get_neighbors — see .claude/guidance/moflo-memory-protocol.md\n' +
|
|
507
|
+
'Disable per-gate via moflo.yaml: gates: memory_first: false\n'
|
|
508
|
+
);
|
|
509
|
+
process.exit(2);
|
|
410
510
|
break;
|
|
411
511
|
}
|
|
412
512
|
case 'check-task-transition': {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
{
|
|
2
|
-
"directive": "MANDATORY FIRST ACTION: Your very first tool call MUST be mcp__moflo__memory_search (any query, any namespace). The memory-first gate WILL BLOCK all Glob, Grep, and
|
|
2
|
+
"directive": "MANDATORY FIRST ACTION: Your very first tool call MUST be mcp__moflo__memory_search (any query, any namespace). The memory-first gate WILL BLOCK all Glob, Grep, Read, and read-like Bash (cat/head/tail/grep/find/sed/awk and the Windows/PowerShell equivalents) calls until you do this. Pick the namespace by task: `guidance` for rules and conventions, `code-map` for file structure, `patterns` for proven solutions, `learnings` for past corrections, `tests` for test inventory. After memory search, follow `.claude/guidance/moflo-subagents.md` protocol. When a search hit carries `navigation`, you MUST call mcp__moflo__memory_get_neighbors to traverse — calling mcp__moflo__memory_retrieve on every hit is a protocol violation. See `.claude/guidance/moflo-memory-protocol.md`."
|
|
3
3
|
}
|