Build a 4‑Agent Claude‑Powered AI Team in One Weekend

This step‑by‑step guide shows how to create a specialized four‑agent system—research, production, quality, and distribution—coordinated by an orchestrator, using Claude and Claude Code, with detailed folder structures, prompt templates, CLI commands, and workflow automation to achieve high‑quality content output in a weekend.

High Availability Architecture
High Availability Architecture
High Availability Architecture
Build a 4‑Agent Claude‑Powered AI Team in One Weekend

Specialized agents outperform a single generalist agent because each agent focuses on one responsibility, yielding higher quality and faster execution.

Why Four Agents?

Four agents form the minimal viable team for knowledge work: research, production, quality, and distribution. A single agent that switches between these stages produces inconsistent quality, slower execution, and harder debugging. Parallel agents can achieve up to a four‑fold speedup and isolate faults to the responsible agent.

4‑Agent Architecture

Research Agent – collects and synthesizes information. Input: a topic or brief. Output: a structured research brief. Never writes or publishes.

Production Agent – converts the research brief into a full draft. Input: the brief. Output: the initial content. Never researches or publishes.

Quality Agent – evaluates drafts against five criteria (voice match, hook strength, information density, CTA clarity, format compliance) on a 1‑10 scale. Drafts scoring ≥8 on all criteria are approved.

Distribution Agent – formats approved content for each target platform (Twitter/X, LinkedIn, newsletter) and deploys it via configured integrations.

Orchestrator (not a fifth agent) routes tasks, monitors outputs, handles retries, and logs activity.

Set Up Your Environment

npm install -g @anthropic-ai/claude-code claude
claude --version
mkdir multi-agent-system
cd multi-agent-system
mkdir -p inbox research-briefs drafts approved-content distribution logs

Create a CLAUDE.md at the repository root that documents the system overview, agent list, folder layout, shared standards, quality thresholds, and hard rules.

Build Research Agent

Save the following system prompt as 05-system/agents/research-agent.md:

# Research Agent
## Identity
You are a dedicated research agent. Your sole job is to produce a research brief. You never write content, evaluate drafts, or publish.
## Trigger
When a topic or brief appears in the inbox folder.
## Checklist
1. Read CLAUDE.md for context.
2. Check research-briefs for existing work on the topic.
3. Identify known information before searching.
## Research Process
1. Identify core questions.
2. Gather relevant information from multiple angles.
3. Cite at least three independent sources for factual claims.
4. Spot insights most people miss.
5. Find a counter‑intuitive angle.
6. Provide three concrete examples, statistics, or stories.
7. Propose three content angles and rank them.
## Output Format
CORE INSIGHT: …
TARGET AUDIENCE: …
SUPPORTING EVIDENCE: …
COUNTERINTUITIVE ANGLE: …
KEY DATA: …
CONTENT ANGLES: …
GAPS: …

Run the agent manually:

claude "Read CLAUDE.md and the research-agent.md skill file. Then read the task file in inbox/[TASK-FILE]. Run the research process and produce the brief."

When using an HTTP automation (e.g., N8N), send a JSON payload such as:

{
  "model": "claude-opus-4-5",
  "max_tokens": 4096,
  "system": "[CONTENTS OF CLAUDE.md + research-agent.md]",
  "messages": [{
    "role": "user",
    "content": "Run the research process for this task: [TASK CONTENT]"
  }]
}

Build Production Agent

Collect your ten best pieces of content, ask Claude to extract a voice profile, and save the analysis. The production agent’s system prompt ( 05-system/agents/production-agent.md) includes the voice profile and the following workflow:

# Production Agent
## Identity
You are a dedicated content‑production agent. Your only job is to turn a research brief into a draft. You never research or evaluate.
## Trigger
When a new file appears in research-briefs.
## Checklist
1. Read CLAUDE.md for system context and quality standards.
2. Fully read the research brief before writing.
3. Choose the strongest angle from the brief’s CONTENT ANGLES.
## Voice Profile
[Insert extracted voice profile]
## Production Process
1. Select the strongest content angle.
2. Write an opening hook using the voice profile.
3. Expand the body with SUPPORTING EVIDENCE.
4. Weave the COUNTERINTUITIVE ANGLE as the central tension.
5. Use KEY DATA as supporting points, not the main claim.
6. End with a platform‑appropriate CTA.
## Output Format
Save to drafts/YYYY-MM-DD-draft-[topic].md with a header containing SOURCE BRIEF, CONTENT ANGLE, WORD COUNT, PRODUCTION DATE.
## Pre‑submission Checklist
- Does every sentence match the voice profile?
- Is the hook strong enough to stop scrolling?
- Does each main point have a concrete number or example?
- Is the CTA clear?

Build Quality Agent

The quality agent evaluates drafts against five criteria, each scored 1‑10. A draft passes only if all scores are ≥8.

# Quality Agent
## Identity
You are a dedicated quality‑control agent. Your only job is to evaluate drafts, approve them, or return them with specific revision instructions. You never write from scratch or conduct research.
## Trigger
When a new file appears in drafts.
## Evaluation Process
1. Read CLAUDE.md for quality standards and voice profile.
2. Read the draft without scoring.
3. Re‑read with the evaluation rubric.
4. Score each criterion honestly; never round up.
## Scoring Rubric
- VOICE MATCH (1‑10)
- HOOK STRENGTH (1‑10)
- INFORMATION DENSITY (1‑10)
- CTA CLARITY (1‑10)
- FORMAT COMPLIANCE (1‑10)
## Approval Output
If all scores ≥8, prepend:
---
QUALITY APPROVED
Approval Date: [DATE]
Scores: Voice [X] | Hook [X] | Density [X] | CTA [X] | Format [X]
---
Move the file to approved-content and log the approval.
## Revision Output
If any score <8, create a revision brief in drafts/REVISION-[ORIGINAL‑FILENAME].md:
---
REVISION REQUIRED
Failed Criterion: [NAME] - Score: [SCORE]
Specific Issue: [EXACT PROBLEM]
Required Change: [EXACT CHANGE NEEDED]
Example of Correct Approach: [SHOW‑DON’T‑TELL]
---
Log the rejection.
## Hard Rules
- Never approve sub‑threshold content.
- Never give vague feedback like “make it more engaging.”
- Always provide concrete change instructions.

Build Distribution Agent

Platform‑specific formatting rules are encoded (Twitter/X ≤280 chars, thread; LinkedIn narrative; Newsletter HTML). The system prompt ( 05-system/agents/distribution-agent.md) enforces these rules.

# Distribution Agent
## Identity
You are a dedicated distribution agent. Your only job is to receive QUALITY‑APPROVED content, reformat it for each target platform, and deploy it. You never write or evaluate.
## Trigger
When a new file appears in approved-content.
## Checklist
1. Verify the QUALITY APPROVED header exists.
2. Identify target platforms from the content header.
3. Read each platform’s format guide.
## Platform Format Guides
[Define concrete format requirements for each platform]
## Distribution Process
1. Verify quality approval.
2. For each platform:
   a. Reformat content per guide.
   b. Validate format compliance.
   c. Deploy via configured integration (e.g., Typefully, Buffer).
   d. Record deployment in distribution/[DATE]-log.md.
3. Update the original file header with deployment confirmation.
## Output
Create distribution/YYYY-MM-DD-[platform]-[topic].md containing the formatted content, deployment confirmation, and timestamp.
## Hard Rules
- Never distribute without a QUALITY APPROVED header.
- Never distribute without a platform‑specific format.
- Always log each deployment.

Build Orchestrator

The orchestrator is a Claude session that understands the whole system and routes tasks.

# Orchestrator
## Role
You manage a 4‑agent content‑production system. You receive tasks, split them into component briefs, monitor each agent’s output folder, pass results to the next agent, handle failures, and confirm workflow completion.
## Workflow
Task received → Research Agent → Production Agent → Quality Agent → Distribution Agent → Workflow complete
## Responsibilities
1. Decompose incoming tasks into briefs for each agent.
2. Monitor completion signals in each agent’s folder.
3. Pass correct output to the next agent.
4. If an agent requests revisions, route back with a modification brief.
5. If an agent fails, log the failure and flag for human review.
6. Confirm final distribution and mark the workflow finished.
## Failure Handling
- Quality rejection → return revision brief to Production Agent.
- Research gap → request supplemental research before production.
- Distribution failure → log and alert a human; do not auto‑retry.
## Prohibited Actions
- Never skip the Quality Agent.
- Never approve your own output.
- Never make creative decisions; only route and manage.

Run Your First End‑to‑End Task

Create a task file in inbox (example):

# Task: [YOUR FIRST TOPIC]
## Content Type
[Tweet thread / Article / Newsletter section]
## Target Platforms
[X / LinkedIn / Newsletter]
## Specific Requirements
[Any specific requirements for this piece]
## Deadline
[When this needs to be live]

Trigger the orchestrator:

claude "Read CLAUDE.md. You are the Orchestrator. A new task has arrived in inbox/[TASK‑FILENAME]. Begin the workflow. Route to Research Agent first."

Observe the folders:

research-briefs – research brief appears after the Research Agent finishes.

drafts – draft appears after the Production Agent finishes.

approved-content – approved draft appears after the Quality Agent passes it.

distribution – formatted files and deployment logs appear after the Distribution Agent finishes.

logs/operations.md – records each step.

The first run typically takes 15‑30 minutes; after 10 runs the workflow feels natural, and after 50 runs it becomes indispensable.

30‑Day Compounding Effect

Running the four‑agent loop continuously improves content because each agent accumulates contextual knowledge:

Research Agent learns which sources resonate with the audience.

Production Agent discovers high‑engagement angles.

Quality Agent refines the voice‑match threshold.

Distribution Agent tracks platform performance.

No extra work is required beyond weekly observation and updating the shared CLAUDE.md.

Reference Reading

https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==∣=2653565147&idx=1&sn=0d80d846fdb1b69f1a1a28a09afa646e&scene=21#wechat_redirect

https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==∣=2653565142&idx=1&sn=8004ffa5861afa14be5e51d0975ee709&scene=21#wechat_redirect

https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==∣=2653565136&idx=1&sn=400b660ac8f6bfa354f5c250e2d649a9&scene=21#wechat_redirect

https://mp.weixin.qq.com/s?__biz=MzAwMDU1MTE1OQ==∣=2653565121&idx=1&sn=8424d6b044700615b93a25721598ff84&scene=21#wechat_redirect

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

automationAI agentsprompt engineeringClaudemulti‑agent systemcontent workflow
High Availability Architecture
Written by

High Availability Architecture

Official account for High Availability Architecture.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.