[Research] Multi-Agent System Patterns - Anthropic and Kilo.ai #25

Closed
opened 2026-04-05 00:49:56 +00:00 by NW · 4 comments
Owner

Overview

Research milestone for multi-agent system improvements. Key findings from Anthropics Building Effective Agents and Kilo.ai documentation.

Key Findings

Anthropic - Building Effective Agents

Core Patterns:

  1. Prompt Chaining - Sequential steps with validation
  2. Routing - Classify and route to specialized agent
  3. Parallelization - Run independent tasks simultaneously
  4. Orchestrator-Workers - Central coordinator with specialized workers
  5. Evaluator-Optimizer - Iterative improvement loop

Best Practices:

  • Most successful implementations use simple, composable patterns
  • Avoid complex frameworks when simple patterns suffice
  • Trade-off: latency and cost for better task performance
  • Workflows = predictability, Agents = flexibility

Kilo.ai - Custom Subagents

Key Concepts:

  • mode: subagent for isolated context
  • mode: primary for main agent
  • mode: all for full tool access
  • Permission system: allow, ask, deny per tool

Applied to APAW

Pattern Implementation Status
Routing orchestrator.md Done
Orchestrator-Workers workflow.md Done
Evaluator-Optimizer code-skeptic loop Needs formalization
Parallelization review phase Not implemented

References

  • Issue #21 - Implement parallelization
  • Issue #22 - Formalize evaluator-optimizer
  • Issue #23 - Add quality gate enforcement
## Overview Research milestone for multi-agent system improvements. Key findings from Anthropics Building Effective Agents and Kilo.ai documentation. ## Key Findings ### Anthropic - Building Effective Agents **Core Patterns:** 1. **Prompt Chaining** - Sequential steps with validation 2. **Routing** - Classify and route to specialized agent 3. **Parallelization** - Run independent tasks simultaneously 4. **Orchestrator-Workers** - Central coordinator with specialized workers 5. **Evaluator-Optimizer** - Iterative improvement loop **Best Practices:** - Most successful implementations use simple, composable patterns - Avoid complex frameworks when simple patterns suffice - Trade-off: latency and cost for better task performance - Workflows = predictability, Agents = flexibility ### Kilo.ai - Custom Subagents **Key Concepts:** - mode: subagent for isolated context - mode: primary for main agent - mode: all for full tool access - Permission system: allow, ask, deny per tool ## Applied to APAW | Pattern | Implementation | Status | |--------|---------------|--------| | Routing | orchestrator.md | Done | | Orchestrator-Workers | workflow.md | Done | | Evaluator-Optimizer | code-skeptic loop | Needs formalization | | Parallelization | review phase | Not implemented | ## References - https://www.anthropic.com/research/building-effective-agents - https://docs.kilo.ai/custom-subagents ## Related Issues - Issue #21 - Implement parallelization - Issue #22 - Formalize evaluator-optimizer - Issue #23 - Add quality gate enforcement
NW added the type::documentationtype::chore labels 2026-04-05 00:49:56 +00:00
Author
Owner

? Cognitive Enhancement Agents Implemented

New Agents (Based on Research)

Agent Pattern Source
@planner CoT, ToT, Plan-Execute-Reflect Lilian Weng, Anthropic
@reflector Reflexion Pattern Shinn & Labash 2023
@memory-manager Memory Systems Lilian Weng 2023

New Skills

Skill Description Source
memory-systems Short/Long/Episodic memory Lilian Weng
planning-patterns CoT, ToT, ReAct, Reflexion Multiple
tool-use ACI Design Principles Anthropic

New Rules

Rule Description
agent-patterns Core patterns from Anthropic, OpenAI, Lilian Weng

Key Research Findings Applied

Anthropic - Building Effective Agents:

  • ? Prompt Chaining - Sequential steps with validation
  • ? Routing - Classify and route to specialized agent
  • ? Parallelization - Run independent tasks (Issue #21)
  • ? Orchestrator-Workers - Central controller with workers
  • ? Evaluator-Optimizer - Iterative improvement (Issue #22)

Lilian Weng - LLM Powered Autonomous Agents:

  • ? Planning: Task decomposition, self-reflection
  • ? Memory: Short-term, long-term, episodic
  • ? Tool Use: External APIs, code execution

Commit: 774dc9a

## ? Cognitive Enhancement Agents Implemented ### New Agents (Based on Research) | Agent | Pattern | Source | |-------|---------|--------| | `@planner` | CoT, ToT, Plan-Execute-Reflect | Lilian Weng, Anthropic | | `@reflector` | Reflexion Pattern | Shinn & Labash 2023 | | `@memory-manager` | Memory Systems | Lilian Weng 2023 | ### New Skills | Skill | Description | Source | |-------|-------------|--------| | `memory-systems` | Short/Long/Episodic memory | Lilian Weng | | `planning-patterns` | CoT, ToT, ReAct, Reflexion | Multiple | | `tool-use` | ACI Design Principles | Anthropic | ### New Rules | Rule | Description | |------|-------------| | `agent-patterns` | Core patterns from Anthropic, OpenAI, Lilian Weng | ### Key Research Findings Applied **Anthropic - Building Effective Agents:** - ? Prompt Chaining - Sequential steps with validation - ? Routing - Classify and route to specialized agent - ? Parallelization - Run independent tasks (Issue #21) - ? Orchestrator-Workers - Central controller with workers - ? Evaluator-Optimizer - Iterative improvement (Issue #22) **Lilian Weng - LLM Powered Autonomous Agents:** - ? Planning: Task decomposition, self-reflection - ? Memory: Short-term, long-term, episodic - ? Tool Use: External APIs, code execution **Commit:** 774dc9a
Author
Owner

? Research Cycle Implemented

Continuous Self-Improvement Added

New Skill: research-cycle

  • Monitors agent performance
  • Identifies capability gaps
  • Researches best practices
  • Implements improvements
  • Tracks evolution in Gitea

New Command: /research

  • Manual trigger for research
  • Fetches from Anthropic, OpenAI, Lilian Weng
  • Creates agents/skills based on findings

Commits

Milestone: #47

## ? Research Cycle Implemented ### Continuous Self-Improvement Added New Skill: research-cycle - Monitors agent performance - Identifies capability gaps - Researches best practices - Implements improvements - Tracks evolution in Gitea New Command: /research - Manual trigger for research - Fetches from Anthropic, OpenAI, Lilian Weng - Creates agents/skills based on findings ### Commits - 774dc9a: Cognitive agents - 420c10f: Capability integration - 348c47f: Research cycle Milestone: #47
Author
Owner

? Research Milestone Complete

Implemented Improvements

Issue Pattern Status
#21 Parallelization ? Closed - workflow template created
#22 Evaluator-Optimizer ? Closed - iteration_loops in capability-index
#23 Quality Gates ? Closed - quality_gates configured
#24 Agent Consolidation ? Closed - deferred, capability routing added

New Cognitive Agents

Agent Pattern Source
@planner CoT, ToT, Plan-Execute-Reflect Lilian Weng, Anthropic
@reflector Reflexion Shinn & Labash 2023
@memory-manager Memory Systems Lilian Weng 2023

New Skills

Skill Description
memory-systems Short/Long/Episodic memory
planning-patterns CoT, ToT, ReAct, Reflexion
tool-use ACI Design Principles
research-cycle Continuous self-improvement

New Workflows

Workflow Pattern
parallel-review Parallel execution
evaluator-optimizer Iterative improvement
chain-of-thought Sequential decomposition

Files Modified

  • .kilo/agents/planner.md - NEW
  • .kilo/agents/reflector.md - NEW
  • .kilo/agents/memory-manager.md - NEW
  • .kilo/capability-index.yaml - Updated with cognitive agents
  • .kilo/agents/orchestrator.md - Added routing for new agents
  • AGENTS.md - Updated agent list
  • .kilo/workflows/*.md - NEW (3 templates)
  • .kilo/skills/*/SKILL.md - NEW (4 skills)

Milestone

  • Created: Milestone #47 - Cognitive Enhancement

Commits


All research findings applied. Continuous research cycle active.

## ? Research Milestone Complete ### Implemented Improvements | Issue | Pattern | Status | |-------|---------|--------| | #21 | Parallelization | ? Closed - workflow template created | | #22 | Evaluator-Optimizer | ? Closed - iteration_loops in capability-index | | #23 | Quality Gates | ? Closed - quality_gates configured | | #24 | Agent Consolidation | ? Closed - deferred, capability routing added | ### New Cognitive Agents | Agent | Pattern | Source | |--------|---------|--------| | @planner | CoT, ToT, Plan-Execute-Reflect | Lilian Weng, Anthropic | | @reflector | Reflexion | Shinn & Labash 2023 | | @memory-manager | Memory Systems | Lilian Weng 2023 | ### New Skills | Skill | Description | |-------|-------------| | memory-systems | Short/Long/Episodic memory | | planning-patterns | CoT, ToT, ReAct, Reflexion | | tool-use | ACI Design Principles | | research-cycle | Continuous self-improvement | ### New Workflows | Workflow | Pattern | |----------|--------| | parallel-review | Parallel execution | | evaluator-optimizer | Iterative improvement | | chain-of-thought | Sequential decomposition | ### Files Modified - `.kilo/agents/planner.md` - NEW - `.kilo/agents/reflector.md` - NEW - `.kilo/agents/memory-manager.md` - NEW - `.kilo/capability-index.yaml` - Updated with cognitive agents - `.kilo/agents/orchestrator.md` - Added routing for new agents - `AGENTS.md` - Updated agent list - `.kilo/workflows/*.md` - NEW (3 templates) - `.kilo/skills/*/SKILL.md` - NEW (4 skills) ### Milestone - Created: Milestone #47 - Cognitive Enhancement ### Commits - 774dc9a: Add cognitive agents - 420c10f: Integrate into capability index - 348c47f: Add research cycle - fbc1f61: Add workflow templates --- All research findings applied. Continuous research cycle active.
Author
Owner

📋 Status Update

Completed

  • Routing pattern (orchestrator.md)
  • Orchestrator-Workers (workflow.md)

Research Findings Applied

Patterns documented in .kilo/rules/agent-patterns.md:

  • Prompt Chaining
  • Routing
  • Parallelization
  • Orchestrator-Workers
  • Evaluator-Optimizer

Notes

Research milestone serves as reference for future agent improvements. Closing as research phase complete.

## 📋 Status Update ### Completed - ✅ Routing pattern (orchestrator.md) - ✅ Orchestrator-Workers (workflow.md) ### Research Findings Applied Patterns documented in `.kilo/rules/agent-patterns.md`: - Prompt Chaining - Routing - Parallelization - Orchestrator-Workers - Evaluator-Optimizer ### Notes Research milestone serves as reference for future agent improvements. Closing as research phase complete.
NW closed this issue 2026-04-05 23:25:32 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/APAW#25