enhanced_multi_agent_v4_guide_2025

enhanced_multi_agent_v4_guide_2025 is an agent for Claude Code from pr1m8/haive. It costs 0 tokens per session (3,147 once invoked), scanned A, original, MIT.

A Haive framework guide for EnhancedMultiAgentV4, a system that coordinates several AI agents in one workflow.

In plain words
What is it for?
Use it to build sequential, parallel, or conditional workflows with agents that analyze information, call tools, and format the final output.
Why use it?
It explains how to pass work between agents and produce structured results when one agent alone is not enough.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pr1m8/haive/enhanced_multi_agent_v4_guide_2025
Clone the repo
git clone --depth 1 https://github.com/pr1m8/haive

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enhanced_multi_agent_v4_guide_2025

README.md
[![agentmods](https://agentmods.dev/badge/agents/pr1m8/haive/enhanced_multi_agent_v4_guide_2025.svg)](https://agentmods.dev/agents/pr1m8/haive/enhanced_multi_agent_v4_guide_2025)
Your own site
<a href="https://agentmods.dev/agents/pr1m8/haive/enhanced_multi_agent_v4_guide_2025"><img src="https://agentmods.dev/badge/agents/pr1m8/haive/enhanced_multi_agent_v4_guide_2025.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,147 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03147
Opus 5 $0.00000 $0.01573
Sonnet 5 $0.00000 $0.00629
Haiku 4.5 $0.00000 $0.00315

Measured 6d ago against content hash 62b9f3ef9638, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

enhanced_multi_agent_v4_guide_2025 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

project_docs/guides/agents/enhanced_multi_agent_v4_guide_2025.md · 531 lines

How it starts

The opening of the file, as written. The whole thing — 531 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EnhancedMultiAgentV4 Guide - Haive Framework

Date: August 7, 2025
Version: 1.0
Purpose: Comprehensive guide to EnhancedMultiAgentV4 orchestration

🚀 Overview

EnhancedMultiAgentV4 is the state-of-the-art multi-agent orchestrator in Haive that enables:

  • Sequential, parallel, and conditional agent execution
  • Clean list-based initialization
  • Dynamic agent composition
  • Structured data flow between agents
  • Full integration with enhanced agent architecture

📋 Quick Start

Basic Sequential Workflow

from haive.agents.multi.enhanced_multi_agent_v4 import EnhancedMultiAgentV4
from haive.agents.react.agent_v4 import ReactAgentV4
from haive.agents.simple.agent_v3 import SimpleAgentV3
from pydantic import BaseModel

# Define structured output
class AnalysisResult(BaseModel):
    summary: str
    key_points: list[str]
    confidence: float

# Create agents
analyzer = ReactAgentV4(
    name="analyzer",
    tools=[research_tool, calculator]
)

formatter = SimpleAgentV3(
    name="formatter",
    structured_output_model=AnalysisResult
)

# Create workflow - just pass a list!
workflow = EnhancedMultiAgentV4(
    name="analysis_workflow",
    agents=[analyzer, formatter],  # Simple list initialization
    execution_mode="sequential"
)

# Execute
result = await workflow.arun({
    "task": "Analyze market trends for AI in 2025"
})
# result.summary, result.key_points, result.confidence available!

🏗️ Architecture

Class Hierarchy

Agent (base with enhanced features)
└── EnhancedMultiAgentV4
    ├── Implements build_graph()
    ├── Uses AgentNodeV3 for state projection
    └── Integrates all enhanced agent features

Key Components

  1. MultiAgentState - Container for all agent states
  2. AgentNodeV3 - Handles state projection to individual agents
  3. Execution Modes - Different orchestration patterns
  4. Build Modes - Control when graph is constructed

🎯 Execution Modes

1. Sequential Mode

Agents execute one after another in order.

Read the full file on GitHub · 531 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 531 lines · 0 tokens per session scan A 62b9f3ef9638

Subscribe to this mod's changes

enhanced_multi_agent_v4_guide_2025 is an agent published in the GitHub repository pr1m8/haive (23 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,147 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.