**Hierarchical Agent Trees**: Complex tasks decomposed into tree structures where each node can be an agent (reasoning + action) or control flow coordinator.
/plugin marketplace add Kaakati/rails-enterprise-dev/plugin install kaakati-reactree-rails-dev-plugins-reactree-rails-dev@Kaakati/rails-enterprise-devThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Hierarchical Agent Trees: Complex tasks decomposed into tree structures where each node can be an agent (reasoning + action) or control flow coordinator.
Control Flow Nodes: Three coordination patterns inspired by behavior trees:
Dual Memory Systems:
Sequence (Dependencies Exist):
Database → Models → Services → Controllers
Parallel (Independent Work):
After Models Complete:
├── Services (uses models) ┐
├── Components (uses models) ├ Run concurrently!
└── Model Tests (tests models) ┘
Fallback (Resilience):
Try fetching TailAdmin patterns:
Primary: GitHub repo
↓ (if fails)
Fallback1: Local cache
↓ (if fails)
Fallback2: Generic Tailwind
↓ (if fails)
Fallback3: Warn + Use plain HTML
Codebase Facts Cached:
current_administrator)/admin, /api)Callable concern)TailAdmin, Stimulus)Benefits: First agent verifies, all agents reuse (no redundant rg/grep)
Stored Episodes:
{
"subgoal": "stripe_payment_integration",
"patterns_applied": ["Callable service", "Retry logic"],
"learnings": ["Webhooks need idempotency keys"]
}
Next Similar Task (PayPal):
Use Parallel Nodes when:
Use Fallback Nodes when:
Use Working Memory when:
Use Episodic Memory when:
Working Memory (.claude/reactree-memory.jsonl):
{
"timestamp": "2025-01-21T10:30:00Z",
"agent": "codebase-inspector",
"knowledge_type": "pattern_discovery",
"key": "service_object_pattern",
"value": {
"pattern": "Callable concern",
"location": "app/concerns/callable.rb"
},
"confidence": "verified"
}
Episodic Memory (.claude/reactree-episodes.jsonl):
{
"episode_id": "ep-2025-01-21-001",
"timestamp": "2025-01-21T11:00:00Z",
"subgoal": "implement_stripe_payment_service",
"context": {
"feature_type": "payment_processing",
"complexity": "high"
},
"approach": {
"patterns_applied": ["Callable service", "Result object", "Retry with exponential backoff"]
},
"outcome": {
"success": true,
"duration_minutes": 45
},
"learnings": [
"Stripe webhooks require idempotency keys to prevent duplicate processing"
]
}
| Agent | Memory Role | What it Writes | What it Reads |
|---|---|---|---|
| workflow-orchestrator | Initialize | Nothing | Nothing (just inits) |
| codebase-inspector | Writer | Patterns, auth helpers, routes | Nothing (first to run) |
| rails-planner | Reader + Writer | Architecture decisions | All patterns from inspector |
| implementation-executor | Reader + Writer | Phase results, discoveries | All patterns + decisions |
Traditional Sequential Workflow:
Database: 10 min
Models: 15 min
Services: 20 min ← waiting
Components: 25 min ← waiting
Jobs: 10 min ← waiting
Controllers: 15 min ← waiting
Views: 10 min ← waiting
Tests: 20 min ← waiting
──────────────────
TOTAL: 125 min
ReAcTree Parallel Workflow:
Group 0: Database 10 min
Group 1: Models 15 min
Group 2 (PARALLEL): 25 min (max of Services:20, Components:25, Tests:15)
Group 3 (PARALLEL): 15 min (max of Jobs:10, Controllers:15)
Group 4: Views 10 min
Group 5: Integration 20 min
──────────────────────────
TOTAL: 85 min
SAVED: 40 min (32% faster)
Without Working Memory (current):
rg/grep operations × 4 agents = 20-32 operationsWith Working Memory (ReAcTree):
This plugin implements concepts from:
@article{choi2024reactree,
title={ReAcTree: Hierarchical LLM Agent Trees with Control Flow for Long-Horizon Task Planning},
author={Choi, Jae-Woo and Kim, Hyungmin and Ong, Hyobin and Jang, Minsu and Kim, Dohyung and Kim, Jaehong and Yoon, Youngwoo},
journal={arXiv preprint arXiv:2511.02424},
year={2024}
}
| Feature | rails-enterprise-dev | reactree-rails-dev |
|---|---|---|
| Execution | Sequential | Parallel ✨ |
| Memory | None | Working + Episodic ✨ |
| Speed | Baseline | 30-50% faster ✨ |
| Learning | No | Yes ✨ |
| Fallbacks | Limited | Full support ✨ |
| Skill Reuse | Own skills | Reuses rails-enterprise-dev skills |
| Approach | Fixed workflow | Adaptive hierarchy |
ReAcTree transforms Rails development workflows from:
Result: 30-50% faster, smarter workflows that improve with each use.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.